mmc: mmci: Clarify comments and some code for busy detection
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 23 Jul 2019 12:28:09 +0000 (14:28 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 11 Sep 2019 13:58:39 +0000 (15:58 +0200)
commita9cbd79c7ec307edc0d6f7fb28bb8ccf5fe85309
treeb487ffa582fc2a95553e44cdbc80b4799b531c5a
parentdeaa53989537c62f15ed2570a95e10539ae2c877
mmc: mmci: Clarify comments and some code for busy detection

The code dealing with busy detection is somewhat complicated. In a way to
make it a bit clearer, let's try to clarify the comments in the code about
it.

Additionally, move the part for clearing the so called busy start IRQ, to
the place where the IRQ is actually delivered. Ideally, this should make
the code a bit more robust.

Finally, to improve understanding of the code and the sequence of the busy
detection, move the corresponding code around a bit in mmci_cmd_irq().

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Jean Nicolas GRAUX <jean-nicolas.graux@st.com>
Reviewed-by: Jean Nicolas GRAUX <jean-nicolas.graux@st.com>
drivers/mmc/host/mmci.c