]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: meson-gx: remove open coded read with timeout
authorJerome Brunet <jbrunet@baylibre.com>
Tue, 23 Apr 2019 09:02:29 +0000 (11:02 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 6 May 2019 09:55:39 +0000 (11:55 +0200)
commit82638213abf266b49b2b3663f4aca1a96024fb1d
treeb5c51dab07533936bb72f3a16e33d62e73ae8475
parent8a56a3e3e2a05693b15294a9dfef0805e926151d
mmc: meson-gx: remove open coded read with timeout

There is already a function available to poll a register until a
condition is met. Let's use it instead of open coding it.

Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/meson-gx-mmc.c