Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 9615a0a7 authored by Can Guo's avatar Can Guo
Browse files

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: default avatarCan Guo <cang@codeaurora.org>
parent 5431ddf1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment