]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci: Remove redundant ADMA page boundary warnings
authorAndrew Gabbasov <andrew_gabbasov@mentor.com>
Mon, 22 Dec 2014 12:23:21 +0000 (06:23 -0600)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 19 Jan 2015 08:56:24 +0000 (09:56 +0100)
commit2bc6411f36cb5b174140c74d30d6f064b141519d
treeacc2dc3b14bcda61afc2e1bc4a66837695266482
parent216300ddda8bbc096b4456cd23781f06744f7c2d
mmc: sdhci: Remove redundant ADMA page boundary warnings

The bounce buffer, used for misaligned bytes for ADMA access,
resides wholly within the (align_sz)-aligned word, just by construction.
The page addresses are aligned to (align_sz), either for 4 or 8 bytes
alignment, so that the aligned word resides wholly within a single page
and can't cross the page boundary. So, the bounce buffer can't cross
the page boundary too. That's why the warnings are never hit, and can
be safely removed.

Signed-off-by: Andrew Gabbasov <andrew_gabbasov@mentor.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c