[COMMON] ufs: exynos: fix race of error recovery
authorhgchu <hg.chu@samsung.com>
Fri, 12 Jan 2018 04:24:38 +0000 (13:24 +0900)
committerJaeHun Jung <jh0801.jung@samsung.com>
Tue, 8 May 2018 08:20:26 +0000 (17:20 +0900)
commit57579a4a2a81634c0189b7e0df1c7766fd1b605b
tree65476dafe758383de63c31cc82ffbeb962dc2dcf
parent44c2727949a3858ffdd267f753327994cecbf6bb
[COMMON] ufs: exynos: fix race of error recovery

There are some race condition.when hci sfr dump starts in error handler,
if hibernation exit function send uic cmd with uic errors then race happens.
Therefore we make hibernation exit skip to send uic cmd when uic errors
happens.

Change-Id: I261f1cecca4210ddda6088d784790923373ae18d
Signed-off-by: hgchu <hg.chu@samsung.com>
drivers/scsi/ufs/ufshcd.c