]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci: Record what command is using the data lines
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 29 Jun 2016 13:24:23 +0000 (16:24 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 25 Jul 2016 08:34:38 +0000 (10:34 +0200)
commit568142ad1127c5dd29a822d9b2777ec32ab0c425
treeadceb9d00ccedde49d5c10ba10efa2aee54bf874
parentc6239d4a5bd784ded7732bd395f8176bbb0c041b
mmc: sdhci: Record what command is using the data lines

In order to support commands during data transfer, there must be a
distinction between the command that is using the command line (and
for which a command interrupt is expected) and the command that is
using the data lines (for which a data interrupt is expected).

There is host->cmd for the command line, but there is only host->data
for the data lines, which is a different structure, does not represent
the command in use, and is anyway NULL in the case of commands that use
the data lines for busy signalling instead of data transfer.

Introduce host->data_cmd to record what command is using the data lines,
and use that instead of host->cmd when referring to the data command.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.h