]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: edma: Fix clearing of unused list for DT DMA resources
authorJoel Fernandes <joelf@ti.com>
Thu, 26 Sep 2013 21:55:46 +0000 (16:55 -0500)
committerOlof Johansson <olof@lixom.net>
Mon, 30 Sep 2013 16:30:13 +0000 (09:30 -0700)
commited84c17f52682a7f4f88d83cdbc16f55acb3c005
tree7fa3723241e95afcba4ded18fcd0b56767abc3ae
parent7a5b7f49d02b81a1fbbcedcdfdf59febe5cef403
ARM: edma: Fix clearing of unused list for DT DMA resources

HWMOD removal for MMC is breaking edma_start as the events are being manually
triggered due to unused channel list not being clear.

The above issue is fixed by reading the "dmas" property from the DT node if it
exists and clearing the bits in the unused channel list if the dma controller
used by any device is EDMA. For this purpose we use the of_* helpers to parse
the arguments in the dmas phandle list.

Also introduced is a minor clean up of a checkpatch error in old code.

Reviewed-by: Sekhar Nori <nsekhar@ti.com>
Reported-by: Balaji T K <balajitk@ti.com>
Cc: Sekhar Nori <nsekhar@ti.com>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Olof Johansson <olof@lixom.net>
Cc: Nishanth Menon <nm@ti.com>
Cc: Pantel Antoniou <panto@antoniou-consulting.com>
Cc: Jason Kridner <jkridner@beagleboard.org>
Cc: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Joel Fernandes <joelf@ti.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/common/edma.c