]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci: Fix ADMA page boundary warnings
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 4 Nov 2014 10:42:36 +0000 (12:42 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 10 Nov 2014 11:40:49 +0000 (12:40 +0100)
commitaad1932a3b487d46ab466c8531130195f19abf27
tree7270360ed1b42e5d035981ab54a197015d3c74e9
parentf925754deac2ebb4cd823cce31d94326fcb33df5
mmc: sdhci: Fix ADMA page boundary warnings

Bytes are being copied from/to a single page.  The intent
of the warning is to warn if the page boundary is crossed.
There are two problems.  First, PAGE_MASK is mistaken for
(PAGE_SIZE - 1).  Secondly, instead of using the number
of bytes to copy, the warning is using the maximum that
that value could be.  Fix both.

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