]> 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)
committerChris Ball <cjb@laptop.org>
Tue, 12 Feb 2013 15:41:59 +0000 (10:41 -0500)
commit30bedc8b4c99b0da585a8e983d6346773cb50794
tree00b6a7c84b7f47fbfbc0c1578c1b428cb4418a51
parent31965c2d0a9d62bdc2f660b7cb0848953bc4ace6
mmc: core: expose RPMB partition only for CMD23 capable hosts

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>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/mmc.c