]> 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)
commite9d32c66e8cab7121352b36a98f56360e3578dd7
treeadceb9d00ccedde49d5c10ba10efa2aee54bf874
parent5c1b3ade7ad7d19c350cda7641e764f548366d8f
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