]> git.baikalelectronics.ru Git - kernel.git/commit
clk: sunxi: sun9i-mmc: Implement reset callback for reset controls
authorChen-Yu Tsai <wens@csie.org>
Mon, 18 Dec 2017 03:57:51 +0000 (11:57 +0800)
committerMichael Turquette <mturquette@baylibre.com>
Tue, 19 Dec 2017 19:50:46 +0000 (11:50 -0800)
commit9d8ef3ff1c5ec00f1c92ccd56527878d9e8325f0
tree7880c93c3fbb67d2d87e7422a5df1ae2450648ab
parentbfa27d52686fb311af289ff7f017b5d777a74c0a
clk: sunxi: sun9i-mmc: Implement reset callback for reset controls

Our MMC host driver now issues a reset, instead of just deasserting
the reset control, since commit 02facbd25751 ("mmc: sunxi: Reset the
device at probe time"). The sun9i-mmc clock driver does not support
this, and will fail, which results in MMC not probing.

This patch implements the reset callback by asserting the reset control,
then deasserting it after a small delay.

Fixes: 986b7a6f1693 ("clk: sunxi: Add driver for A80 MMC config clocks/resets")
Cc: <stable@vger.kernel.org> # 4.14.x
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Link: lkml.kernel.org/r/20171218035751.20661-1-wens@csie.org
drivers/clk/sunxi/clk-sun9i-mmc.c