]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaa136b7635c43da68e1b5d7012f34403da0254cf
tree8a3332126f6d0387e5653864ebf98830d61c2e5f
parent7ae552422792b8ae88e423683ed06a41d2cb1189
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