]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: core: expose RPMB partition only for CMD23 capable hosts
authorBalaji T K <balajitk@ti.com>
Fri, 25 Jan 2013 11:30:30 +0000 (17:00 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Feb 2013 13:38:40 +0000 (05:38 -0800)
commit2c3c78916a91b01d0571fbc1ae7434ca3c2d2288
tree75f906669d48c83f1cbfc2e5b014321fff63125e
parent2f98d7620e47046548073bf3029f1af7a0f2d7b0
mmc: core: expose RPMB partition only for CMD23 capable hosts

commit d0123ccac55088811bde4f76c4a3fdbd39c3cfba upstream.

SET_BLOCK_COUNT CMD23 is needed for all access to RPMB partition.  If
block count is not set by CMD23, all subsequent read/write commands fail
as per eMMC specification. So, If the host does not support CMD23, do not
expose RPMB partition.

Accessing RPMB partition can cause hang / huge delay for hosts which do
not support CMD23.

Signed-off-by: Balaji T K <balajitk@ti.com>
Reported-and-Tested-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/core/mmc.c