dm: mmc: fsl_esdhc: Detect reset failure
authorSimon Glass <sjg@chromium.org>
Sat, 29 Jul 2017 17:35:19 +0000 (11:35 -0600)
committerJaehoon Chung <jh80.chung@samsung.com>
Thu, 17 Aug 2017 07:44:17 +0000 (16:44 +0900)
commit446e077a21024edb3d8636a979a99abbcaec9846
treeb3d358ccca450e4ac64d5b90770ab89e07f5f8af
parent9586aa6ea3958dc0dd608e41c27d79d66309ba12
dm: mmc: fsl_esdhc: Detect reset failure

Since esdhc_reset() can fail it should return an error code. Update this
and also adjust the timeout mechanism to use get_timer(), which is a more
common approach.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/mmc/fsl_esdhc.c