]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: renesas_sdhi: limit block count to 16 bit for old revisions
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 19 Mar 2019 10:12:59 +0000 (11:12 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 21 Mar 2019 10:41:46 +0000 (11:41 +0100)
commit18987bc7d517683859e0355be5e275cb85b1d8a9
tree52064d064e2e427b2f22439dfd953516d39ec4df
parent3ab08dfe8c60abd138b15027383c7244c578dcf0
mmc: renesas_sdhi: limit block count to 16 bit for old revisions

R-Car Gen2 has two different SDHI incarnations in the same chip. The
older one does not support the recently introduced 32 bit register
access to the block count register. Make sure we use this feature only
after the first known version.

Thanks to the Renesas Testing team for this bug report!

Fixes: 6d141a124a37 ("mmc: tmio: fix access width of Block Count Register")
Reported-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Tested-by: Phong Hoang <phong.hoang.wz@renesas.com>
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/renesas_sdhi_core.c