summaryrefslogtreecommitdiffstats
path: root/drivers/dma/at_xdmac.c
diff options
context:
space:
mode:
authorAlexandre Belloni2016-12-01 11:49:03 +0100
committerVinod Koul2016-12-06 06:15:48 +0100
commitd3f8dc42024b09974a4a1501d4e8852a025f1c15 (patch)
tree31fb638fb6d3c857ca2fb0342dec750ec37df2ce /drivers/dma/at_xdmac.c
parentdmaengine: DW DMAC: add multi-block property to device tree (diff)
downloadkernel-qcow2-linux-d3f8dc42024b09974a4a1501d4e8852a025f1c15.tar.gz
kernel-qcow2-linux-d3f8dc42024b09974a4a1501d4e8852a025f1c15.tar.xz
kernel-qcow2-linux-d3f8dc42024b09974a4a1501d4e8852a025f1c15.zip
dmaengine: at_xdmac: don't restore unsaved status
save_gs is supposed to save the channel status in order to be restored at resume time but it is never updated and is always 0. Anyway, the channel status is updated in the per channel loop later in the resume function. Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Acked-by: Ludovic Desroches <ludovic.desroches@atmel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/at_xdmac.c')
-rw-r--r--drivers/dma/at_xdmac.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/dma/at_xdmac.c b/drivers/dma/at_xdmac.c
index 40287ff92768..7d4e0bcda9af 100644
--- a/drivers/dma/at_xdmac.c
+++ b/drivers/dma/at_xdmac.c
@@ -221,7 +221,6 @@ struct at_xdmac {
int irq;
struct clk *clk;
u32 save_gim;
- u32 save_gs;
struct dma_pool *at_xdmac_desc_pool;
struct at_xdmac_chan chan[0];
};
@@ -1895,7 +1894,6 @@ static int atmel_xdmac_resume(struct device *dev)
}
at_xdmac_write(atxdmac, AT_XDMAC_GIE, atxdmac->save_gim);
- at_xdmac_write(atxdmac, AT_XDMAC_GE, atxdmac->save_gs);
list_for_each_entry_safe(chan, _chan, &atxdmac->dma.channels, device_node) {
atchan = to_at_xdmac_chan(chan);
at_xdmac_chan_write(atchan, AT_XDMAC_CC, atchan->save_cc);