]> git.baikalelectronics.ru Git - kernel.git/commit
staging: mt7621-mmc: Make msdc_clr_fifo a function and relax cpu
authorChristian Lütke-Stetzkamp <christian@lkamp.de>
Sat, 16 Jun 2018 14:14:54 +0000 (16:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jun 2018 12:48:04 +0000 (21:48 +0900)
commit4f2d1cc20e23362ad491d71defafaa63c0ac4c93
treef5044c114bd54200559a77d36b3e6533768923f3
parent12343b85affa5ce8c7b032fefba1d78e34da7c7e
staging: mt7621-mmc: Make msdc_clr_fifo a function and relax cpu

In the current code, msdc_clr_fifo is a macro and just busy waits for
a limited amount of time for the fifo clear to finish. That is not
correct, the programming manual hits, that the user should wait until
the bit is cleared by hardware and not a limited amount of time.

So the code is changed to a function, that also relaxes the cpu while
busy waiting.

Signed-off-by: Christian Lütke-Stetzkamp <christian@lkamp.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-mmc/sd.c