dmaengine/amba-pl08x: Simplify pl08x_ensure_on()
authorViresh Kumar <viresh.kumar@st.com>
Fri, 5 Aug 2011 10:02:34 +0000 (15:32 +0530)
committerVinod Koul <vinod.koul@intel.com>
Thu, 25 Aug 2011 14:03:38 +0000 (19:33 +0530)
commit48a59ef3579492855d41405f8bf0a2983e061976
tree71f73aef26d74054dee11dcbeebdcd7a0ced57d7
parentb7b6018bad6fd7ebe5a78bda5f2a71a6ecf5406a
dmaengine/amba-pl08x: Simplify pl08x_ensure_on()

Simply writing 1 on bit 0 is sufficient instead of reading and clearing bits.
Also as per manual, for bit 3-31 of DMACConfiguration register:
"read undefined, write as 0"

So, we must not rely on values read from this registers bit 3-31.

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