]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: pwrseq: Use highest priority for eMMC restart handler
authorJavier Martinez Canillas <javier@osg.samsung.com>
Wed, 21 Oct 2015 15:15:40 +0000 (17:15 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 27 Oct 2015 10:11:06 +0000 (11:11 +0100)
commit0d7de1b6b4a58a6e7e7606e7659f47eb3387bb8f
treeabf81570242ef8abbbed36804c2fe1c5e1375a46
parent39bacae8336c17aa75b5a6afb15e15cc012dd12e
mmc: pwrseq: Use highest priority for eMMC restart handler

The pwrseq_emmc driver does a eMMC card reset before a system reboot to
allow broken or limited ROM boot-loaders (that don't have an eMMC reset
logic) to be able to read the second stage from the eMMC.

But this has to be called before a system reboot handler and while most
of them use the priority 128, there are other restart handlers (such as
the syscon-reboot one) that use a higher priority. So, use the highest
priority to make sure that the eMMC hw is reset before a system reboot.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Tested-by: Markus Reichl <m.reichl@fivetechno.de>
Tested-by: Anand Moon <linux.amoon@gmail.com>
Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
Tested-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/pwrseq_emmc.c