]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: tmio: only access registers above 0xff, if available
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Wed, 9 Mar 2011 16:28:55 +0000 (17:28 +0100)
committerChris Ball <cjb@laptop.org>
Fri, 25 Mar 2011 14:39:49 +0000 (10:39 -0400)
commit0ace5acf7f9cff60529c64add4b10e8c212126b8
treef9cf934890b958d1d593405c8399d5ba973c11e7
parent812fa89e0500e99528ce33d51ae9c15307394dc2
mmc: tmio: only access registers above 0xff, if available

Not all tmio implementations have registers above oxff. Accessing
them on thise platforms is dangerous. In some cases it leads to
address wrapping to addresses below 0x100, which corrupts random
unrelated registers.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/tmio_mmc_pio.c