]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: pwrseq: convert to proper platform device
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Thu, 14 Apr 2016 13:02:16 +0000 (14:02 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 2 May 2016 08:33:30 +0000 (10:33 +0200)
commit2728ccde19c7aeb0e9bfaa951eafbb377d5d4470
tree7e0d4ee36b583c9371e1b4867a5c50f445f962c4
parent02f2c977688af2450e817326739d848dc17ecf00
mmc: pwrseq: convert to proper platform device

simple-pwrseq and emmc-pwrseq drivers rely on platform_device
structure from of_find_device_by_node(), this works mostly. But, as there
is no driver associated with this devices, cases like default/init pinctrl
setup would never be performed by pwrseq. This becomes problem when the
gpios used in pwrseq require pinctrl setup.

Currently most of the common pinctrl setup is done in
drivers/base/pinctrl.c by pinctrl_bind_pins().

There are two ways to solve this issue on either convert pwrseq drivers
to a proper platform drivers or copy the exact code from
pcintrl_bind_pins(). I prefer converting pwrseq to proper drivers so that
other cases like setting up clks/parents from dt would also be possible.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/Kconfig
drivers/mmc/core/Makefile
drivers/mmc/core/pwrseq.c
drivers/mmc/core/pwrseq.h
drivers/mmc/core/pwrseq_emmc.c
drivers/mmc/core/pwrseq_simple.c