mmc: sunxi: Add card busy detection
authorHans de Goede <hdegoede@redhat.com>
Tue, 22 Sep 2015 15:30:26 +0000 (17:30 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 26 Oct 2015 15:00:02 +0000 (16:00 +0100)
commitc1590dd86d6e34df214f30a501682e392be0ba3c
treedc6cd8ccc960fa5ddd5c16947c2c6a4edc6281a5
parent5d3f6ef04d65dda92a3573841a7215fb05c347de
mmc: sunxi: Add card busy detection

Some sdio wifi modules have not been working reliable with the sunxi-mmc
host code. This turns out to be caused by starting new io-rw commands while
the card signals that it is still busy processing a previous command.

This commit adds card-busy detection to the sunxi-mmc driver which together
with recent core changes to check card-busy before starting io-rw commands
fixes the wifi reliability issues on the Cubietruck and other sunxi boards
using sdio wifi.

Reported-by: Eugene K <sigintmailru@gmail.com>
Suggested-by: Eugene K <sigintmailru@gmail.com>
Cc: Eugene K <sigintmailru@gmail.com>
Cc: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sunxi-mmc.c