]> 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)
commit22b2d8f1ee8b0056907943bf98163a495266d657
treea8a3814e3db393925f8a4bd953971573bda25928
parent767c461af520c6bf956eecebd75fc728c396ca2a
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