]> git.karo-electronics.de Git - linux-beck.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)
commit69d1fe18e92afb4687605a1ab2ec73fbc3bae344
treef9cf934890b958d1d593405c8399d5ba973c11e7
parent52c6182a47fa66ad5f2647a831efa99c05b0a54e
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