Loading
scsi: ufs: fix unclocked register access during UFS card detection
UFS card detect function (ufshcd_card_detect_handler()) holds the runtime
PM reference during UFS card detection and releases the reference on exit.
But ufshcd_probe_hba() (which is indirectly called during card detection)
also releases the runtime PM reference. If we do multiple card
insertion-removal, this may lead to runtime suspend getting triggered while
we are in the middle of card detection phase.
Fix this by not releasing the runtime PM reference again in UFS card detect
function.
Change-Id: Ia779b2ece6440d230d5dec5e8f0144462e048b2d
Signed-off-by:
Subhash Jadavani <subhashj@codeaurora.org>