Skip to content

Commit

Permalink
spi: pxa2xx: Reset DMA bits in CR1 in reset_sccr1()
Browse files Browse the repository at this point in the history
In order to allow reset_sccr1() to be reused in DMA paths,
reset DMA bits in CR1 in this function.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210719074842.36060-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Andy Shevchenko authored and Mark Brown committed Jul 19, 2021
1 parent e0a6512 commit cdcb26c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/spi-pxa2xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ static int u32_reader(struct driver_data *drv_data)
static void reset_sccr1(struct driver_data *drv_data)
{
struct chip_data *chip = spi_get_ctldata(drv_data->controller->cur_msg->spi);
u32 mask = drv_data->int_cr1;
u32 mask = drv_data->int_cr1 | drv_data->dma_cr1;

switch (drv_data->ssp_type) {
case QUARK_X1000_SSP:
Expand Down

0 comments on commit cdcb26c

Please sign in to comment.