]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: davinci: use mmc_of_parse to parse common mmc configuration
authorahaslam@baylibre.com <ahaslam@baylibre.com>
Tue, 15 Nov 2016 16:28:21 +0000 (17:28 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 29 Nov 2016 08:04:39 +0000 (09:04 +0100)
commitd81d8f885736302596070a83699548c60363ec6e
treea8a3814e3db393925f8a4bd953971573bda25928
parentc8893c1cdb2554a8660959183f9ea709cc06dc89
mmc: davinci: use mmc_of_parse to parse common mmc configuration

Card detect and write protect are currently not working on a DT
boot, and the driver relies on polling to get the state
of the card. The current code depends on platform data callbacks
to register and get the state of the gpios.

mmc core provides a generic way to parse device tree configuration,
which will take care of registering the gpios for us, lets use it
so that we don't need to poll, and parse the same properties.

Signed-off-by: Axel Haslam <ahaslam@baylibre.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: David Lechner <david@lechnology.com>
drivers/mmc/host/davinci_mmc.c