2020-09-17 21:20:10 +00:00
|
|
|
From e1d0615633bb751f4b5fee62790b8dace6061177 Mon Sep 17 00:00:00 2001
|
2020-07-24 09:29:13 +00:00
|
|
|
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
|
|
|
|
Date: Sun, 5 Jul 2020 14:56:20 +0300
|
2020-08-18 04:01:34 +00:00
|
|
|
Subject: [PATCH 02/10] surface3-touchscreen-dma-fix
|
2020-07-24 09:29:13 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
drivers/dma/dw/core.c | 12 ------------
|
|
|
|
1 file changed, 12 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/drivers/dma/dw/core.c b/drivers/dma/dw/core.c
|
2020-09-12 14:08:25 +00:00
|
|
|
index 055d83b6cb68..acf64302a2b2 100644
|
2020-07-24 09:29:13 +00:00
|
|
|
--- a/drivers/dma/dw/core.c
|
|
|
|
+++ b/drivers/dma/dw/core.c
|
|
|
|
@@ -180,9 +180,6 @@ static void dwc_initialize(struct dw_dma_chan *dwc)
|
|
|
|
{
|
|
|
|
struct dw_dma *dw = to_dw_dma(dwc->chan.device);
|
|
|
|
|
|
|
|
- if (test_bit(DW_DMA_IS_INITIALIZED, &dwc->flags))
|
|
|
|
- return;
|
|
|
|
-
|
|
|
|
if (dw->pdata->is_idma32)
|
|
|
|
dwc_initialize_chan_idma32(dwc);
|
|
|
|
else
|
|
|
|
@@ -191,8 +188,6 @@ static void dwc_initialize(struct dw_dma_chan *dwc)
|
|
|
|
/* Enable interrupts */
|
|
|
|
channel_set_bit(dw, MASK.XFER, dwc->mask);
|
|
|
|
channel_set_bit(dw, MASK.ERROR, dwc->mask);
|
|
|
|
-
|
|
|
|
- set_bit(DW_DMA_IS_INITIALIZED, &dwc->flags);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
@@ -1091,8 +1086,6 @@ static void idma32_fifo_partition(struct dw_dma *dw)
|
|
|
|
|
|
|
|
static void dw_dma_off(struct dw_dma *dw)
|
|
|
|
{
|
|
|
|
- unsigned int i;
|
|
|
|
-
|
|
|
|
dma_writel(dw, CFG, 0);
|
|
|
|
|
|
|
|
channel_clear_bit(dw, MASK.XFER, dw->all_chan_mask);
|
|
|
|
@@ -1103,9 +1096,6 @@ static void dw_dma_off(struct dw_dma *dw)
|
|
|
|
|
|
|
|
while (dma_readl(dw, CFG) & DW_CFG_DMA_EN)
|
|
|
|
cpu_relax();
|
|
|
|
-
|
|
|
|
- for (i = 0; i < dw->dma.chancnt; i++)
|
|
|
|
- clear_bit(DW_DMA_IS_INITIALIZED, &dw->chan[i].flags);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void dw_dma_on(struct dw_dma *dw)
|
|
|
|
@@ -1170,8 +1160,6 @@ static void dwc_free_chan_resources(struct dma_chan *chan)
|
|
|
|
/* Clear custom channel configuration */
|
|
|
|
memset(&dwc->dws, 0, sizeof(struct dw_dma_slave));
|
|
|
|
|
|
|
|
- clear_bit(DW_DMA_IS_INITIALIZED, &dwc->flags);
|
|
|
|
-
|
|
|
|
/* Disable interrupts */
|
|
|
|
channel_clear_bit(dw, MASK.XFER, dwc->mask);
|
|
|
|
channel_clear_bit(dw, MASK.BLOCK, dwc->mask);
|
|
|
|
--
|
2020-07-30 18:32:52 +00:00
|
|
|
2.28.0
|
2020-07-24 09:29:13 +00:00
|
|
|
|