]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sunxi: Reset the device at probe time
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Fri, 25 Aug 2017 09:49:53 +0000 (11:49 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 30 Aug 2017 13:03:52 +0000 (15:03 +0200)
commitc7b786a6b5ed45596484c6fe925c5a423fd9762b
treeeba0d0639e7bf1c5d4d964cb6d2f61422c57ac6a
parentcbed2153f35ae01bac80360420b0cf6454c3ba3a
mmc: sunxi: Reset the device at probe time

We might be into some troubles if the bootloader misconfigured the MMC
controller.

We currently only de-assert the reset line at probe time, which means that
if the device was already out of reset, we're going to keep whatever state
was set already.

Switch to a reset instead of the deassert to have a device in a pristine
state when we start operating.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sunxi-mmc.c