mirror of
https://github.com/commaai/agnos-kernel-sdm845.git
synced 2026-06-13 22:04:48 +08:00
The eMMC 4.5 spec for RPMB accesses is not very clear on whether user parition accesses can be allowed in the middle of RPMB accesses. Due to this ambiguity, it turns out this is implementation defined and certain cards support it while others do not. In order to allow this feature to function across a wide variety of cards, this patch takes the pessimistic approach and ensures that any RPMB access is completed before user partition can be accessed. Change-Id: I77959f462c874771a0a854d9a2bc48df446eff56 Signed-off-by: Krishna Konda <kkonda@codeaurora.org> Signed-off-by: Oluwafemi Adeyemi <aadeyemi@codeaurora.org> Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org> [merez@codeaurora: fix conflicts due to changes in 3.14] Signed-off-by: Maya Erez <merez@codeaurora.org> [subhashj@codeaurora.org: fixed merge conflicts and fixed compilation errors] Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org> [xiaonian@codeaurora.org: fixed trivial merge conflicts and fixed compilation errors] Signed-off-by: Xiaonian Wang <xiaonian@codeaurora.org>