DMA ENGINE: Do not reset 'private' of channel
authorJassi Brar <jassi.brar@samsung.com>
Tue, 4 May 2010 09:22:15 +0000 (18:22 +0900)
committerDan Williams <dan.j.williams@intel.com>
Mon, 17 May 2010 08:33:56 +0000 (01:33 -0700)
commitcc05ea0cd63437da2033b3ce6e033b1f1aaaf640
tree78b2786870053f56d3ba077c628d2cc975a4c737
parent8d318a50b3d72e3daf94131f91e1ab799a8d5ad4
DMA ENGINE: Do not reset 'private' of channel

The member 'private' of 'struct dma_chan' is meant for passing
data between client and the controller driver.

The DMA client driver may point it to platform specific stuff after
acquiring the channel. So, it is the responsiblity of the same code
to reset it, if it must.

The DMA engine doesn't set it and hence, shouldn't reset it either.

This reseting of private by DMA Engine comes in the way of implementing
default channel settings during DMAC probe. That capability is useful
for not having the clients to always provide platform specific data,
like Rx/Tx FIFO addresses, which usually doesn't change across channel
requests.

Signed-off-by: Jassi Brar <jassi.brar@samsung.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/dmaengine.c