scsi: ufs: fix clock ungate checks for AH8 error in err handler
Change 71cae0a3 ('scsi: ufs: fix a race condition between err handler and clock gate work') fixes a race condition but it makes err_handler skip ufshcd_hold for auto hibern8 error scenarios. This change fixes it by setting eh_in_progress flags in link recovery path before it starts err_handler, so that when err_handler tries to ungate clocks, ufshcd_hold only increases the clock usage counter without actually flushing the gate work. Change-Id: I599c5f15de32e1c2601d8589324b6b858a1ac747 Signed-off-by:Can Guo <cang@codeaurora.org>
Loading
Please register or sign in to comment