summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-pxa2xx.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2021-07-19 10:48:41 +0300
committerMark Brown <broonie@kernel.org>2021-07-19 12:58:53 +0100
commitcdcb26ce747a5ec665a98fd6c303248a12418140 (patch)
tree51f3a0622b360b73ea8cb55753f2efc60b34933b /drivers/spi/spi-pxa2xx.c
parente0a6512d29126901dd16dfede314616b57ec8210 (diff)
downloadlinux-cdcb26ce747a5ec665a98fd6c303248a12418140.tar.gz
spi: pxa2xx: Reset DMA bits in CR1 in reset_sccr1()
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>
Diffstat (limited to 'drivers/spi/spi-pxa2xx.c')
-rw-r--r--drivers/spi/spi-pxa2xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c
index 7c4c8179a329..833eb52ed305 100644
--- a/drivers/spi/spi-pxa2xx.c
+++ b/drivers/spi/spi-pxa2xx.c
@@ -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: