]> git.baikalelectronics.ru Git - kernel.git/commit
clk: sunxi-ng: sun5i: Fix ahb_bist_clk definition
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 24 May 2017 16:34:29 +0000 (18:34 +0200)
committerMichael Turquette <mturquette@baylibre.com>
Thu, 25 May 2017 21:04:19 +0000 (14:04 -0700)
commit5fbe7ef6bff2cdcfd63a0c2c8f4c5f827259476a
tree3ac40c3372214f9d893754185c9446bd9ccba134
parent81e0e7134ab085ac5d0890177bfed38a0f2be4f8
clk: sunxi-ng: sun5i: Fix ahb_bist_clk definition

AHB BIST gate is actually controlled with bit 7.

This bug was detected while trying to use the NAND controller which is
using the DMA engine to transfer data to the NAND.
Since the ahb_bist_clk gate bit conflicts with the ahb_dma_clk gate bit,
the core was disabling the DMA engine clock as part of its 'disable
unused clks' procedure, which was causing all DMA transfers to fail after
this point.

Fixes: 0b8d5e70d239 ("clk: sunxi-ng: Add sun5i CCU driver")
Cc: stable@vger.kernel.org
Reported-by: Angus Ainslie <angus@akkea.ca>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Tested-by: Angus Ainslie <angus@akkea.ca>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Link: lkml.kernel.org/r/1495643669-28221-1-git-send-email-boris.brezillon@free-electrons.com
drivers/clk/sunxi-ng/ccu-sun5i.c