mmc: sdhci: Reduce the use of host->mrq
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 29 Jun 2016 13:24:25 +0000 (16:24 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 25 Jul 2016 08:34:39 +0000 (10:34 +0200)
commita4c73aba0463800f5e1c33c94c2a7e553e26a4eb
tree8a3332126f6d0387e5653864ebf98830d61c2e5f
parentea96802384cd062361f758f711c22010238d47f3
mmc: sdhci: Reduce the use of host->mrq

In order to support commands during data transfer, there will have to be up
to two active requests (mrqs) at a time, instead of just one. That means
host->mrq will not be able to be used.

In several places, host->mrq is used when instead the mrq can be determined
from the cmd or data pointers. Reduce the use of host->mrq by doing that.

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