mmc: sdhci: Support cap_cmd_during_tfr requests
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 16 Aug 2016 10:44:13 +0000 (13:44 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 26 Sep 2016 19:31:29 +0000 (21:31 +0200)
commit20845beff7d74f2021a60abe3789bb9c8881c2c1
treea28077380c4ac604eb890e4c22e703a277a40f4a
parent4bbb9aac9a9a6cd4b2718e43f998c5e4e3b382cd
mmc: sdhci: Support cap_cmd_during_tfr requests

Now SDHCI supports commands during transfer, enable support for the core
API.

There are 3 small changes needed:

First, auto-CMD12 cannot be used with a cap_cmd_during_tfr request because
the host controller cannot expect the command line to be available.

Secondly, a cap_cmd_during_tfr request must not send a stop command, again
because the host controller cannot expect the command line to be available.

Thirdly, when a cap_cmd_during_tfr command completes, use
mmc_command_complete() to notify the upper layers that the command line is
now available for further commands.

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