]> git.karo-electronics.de Git - karo-tx-linux.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)
commit8be78c6ad4d38ae555065b2778205d310300c8b0
tree7270360ed1b42e5d035981ab54a197015d3c74e9
parentc09df940ebe0167dcf13d52ea122c99b9bb8365a
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