OSDN Git Service

dmaengine: at_xdmac: rework slave configuration part
authorLudovic Desroches <ludovic.desroches@atmel.com>
Mon, 8 Jun 2015 08:33:15 +0000 (10:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jun 2015 00:03:27 +0000 (17:03 -0700)
commit9bbdcea36556f0496d99f577da106e002f6f1bfb
tree5b25ddaadf6ec9bf54eded143a812bbedfcb0183
parent33e642277a3c35c0ab2d0ee431c9fbe2586df798
dmaengine: at_xdmac: rework slave configuration part

commit 765c37d876698268eea8b820081ac8fc9d0fc8bc upstream.

Rework slave configuration part in order to more report wrong errors
about the configuration.
Only maxburst and addr width values are checked when doing the slave
configuration. The validity of the channel configuration is done at
prepare time.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/at_xdmac.c