OSDN Git Service

mmc: core: fix debugfs path to read ext_csd
authorSahitya Tummala <stummala@codeaurora.org>
Thu, 5 Nov 2015 08:50:08 +0000 (14:20 +0530)
committerSubhash Jadavani <subhashj@codeaurora.org>
Tue, 31 May 2016 22:27:58 +0000 (15:27 -0700)
commit035148f45e7e02ee692800ea73c90b0a0e7c0ecc
tree9e190b0b23ffb9163f38d3a31f44f0d8c29840b5
parent31c01a3450f309561149bcbd30948542094c7755
mmc: core: fix debugfs path to read ext_csd

After reading ext_csd, the host is not claimed while
doing unhalt if the card is in CQ mode. This may race
with RPMB context which tries to halt and disable CQ
in the card. This may unhalt the controller while RPMB
is still going on, resulting in software request timeout
for RPMB commands that are supposed to be sent in
legacy mode with controller in halt state.

Fix this by claiming the host till the unhalt is done
in mmc_ext_csd_open() so as to prevent race with RPMB
context.

CRs-Fixed: 935719
Change-Id: I6d2738b21c3cd44c8fb6c99f63291059d5b18ee1
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
[subhashj@codeaurora.org: fixed trivial merge conflicts]
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
drivers/mmc/core/debugfs.c