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)
commit7c89a3d9082c316f898ec2c3c6c1689e0cad6117
treeadceb9d00ccedde49d5c10ba10efa2aee54bf874
parente0a5640a9996bd9afef81dcdc62a82e59321a96f
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