dmaengine/amba-pl08x: Choose peripheral bus as master bus
authorViresh Kumar <viresh.kumar@st.com>
Fri, 5 Aug 2011 10:02:41 +0000 (15:32 +0530)
committerVinod Koul <vinod.koul@intel.com>
Thu, 25 Aug 2011 14:03:39 +0000 (19:33 +0530)
commit036f05fd6dcdb6a6b9e55703cb663112fa4c4e42
tree073bb36d9d6da0b8687e14f8690a7c0e9a2bcdff
parente0719165801fad04073e7dcd90e4afd02aba3fb7
dmaengine/amba-pl08x: Choose peripheral bus as master bus

When we have DMA transfers between peripheral and memory, then we shouldn't
reduce width of peripheral at all, as that may be a strict requirement. But we
can always reduce width of memory access, with some compromise in performance.
Thus, we must select peripheral as master and not memory.

Also this rearranges code to make it shorter.

Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/amba-pl08x.c