]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcf423e999c3c0e1d511f0d20e3f45d1c71a8218f
treeb487ffa582fc2a95553e44cdbc80b4799b531c5a
parentfd60c73dc7971319fb66281aa4a1a72b6b53f694
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