]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: sdio: Fix sdio wait busy implement limitation
authorjiajie.hao@mediatek.com <jiajie.hao@mediatek.com>
Sun, 23 Apr 2017 09:38:27 +0000 (17:38 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 24 Apr 2017 19:45:09 +0000 (21:45 +0200)
commitf328c76e568d13c9fee21b5cf7411c96285f0f89
tree1e2733aeea34d890052e527b2defa74f3c344b78
parentd9370424c9482d0ca2722627309c6f6bae131d97
mmc: sdio: Fix sdio wait busy implement limitation

The host may issue an I/O abort by writing to the CCCR at any time
during I/O read operation via CMD52. And host may need suspend
transcation during write busy stage in SDIO suspend/resume scenario.
>From other side, a card may accept CMD52 during data transfer phase.

Previous implement would block issuing above command in busy stage.
It cause function driver can't implement as proper way and has no
opportunity to do some coverage in error case via I/O abort etc.

We need bypass some necessary operation during busy check stage.

Signed-off-by: Jiajie Hao <jiajie.hao@mediatek.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/core.c
drivers/mmc/core/sdio_ops.h