提交 d3f8dc42 编写于 作者: A Alexandre Belloni 提交者: Vinod Koul

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: NAlexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: NNicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: NLudovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: NVinod Koul <vinod.koul@intel.com>
上级 bd2c6636
...@@ -221,7 +221,6 @@ struct at_xdmac { ...@@ -221,7 +221,6 @@ struct at_xdmac {
int irq; int irq;
struct clk *clk; struct clk *clk;
u32 save_gim; u32 save_gim;
u32 save_gs;
struct dma_pool *at_xdmac_desc_pool; struct dma_pool *at_xdmac_desc_pool;
struct at_xdmac_chan chan[0]; struct at_xdmac_chan chan[0];
}; };
...@@ -1895,7 +1894,6 @@ static int atmel_xdmac_resume(struct device *dev) ...@@ -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_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) { list_for_each_entry_safe(chan, _chan, &atxdmac->dma.channels, device_node) {
atchan = to_at_xdmac_chan(chan); atchan = to_at_xdmac_chan(chan);
at_xdmac_chan_write(atchan, AT_XDMAC_CC, atchan->save_cc); at_xdmac_chan_write(atchan, AT_XDMAC_CC, atchan->save_cc);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册