diff options
author | Stanley Chu <[email protected]> | 2020-08-09 13:07:34 +0800 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2020-08-17 21:52:45 -0400 |
commit | 93b6c5db06028a3b55122bbb74d0715dd8ca4ae0 (patch) | |
tree | 19b62b1c83a5534c7f6ea6a46deffc9a2e55d2a4 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | fa39ab5184d64563cd36f2fb5f0d3fbad83a432c (diff) |
scsi: ufs: Fix possible infinite loop in ufshcd_hold
In ufshcd_suspend(), after clk-gating is suspended and link is set
as Hibern8 state, ufshcd_hold() is still possibly invoked before
ufshcd_suspend() returns. For example, MediaTek's suspend vops may
issue UIC commands which would call ufshcd_hold() during the command
issuing flow.
Now if UFSHCD_CAP_HIBERN8_WITH_CLK_GATING capability is enabled,
then ufshcd_hold() may enter infinite loops because there is no
clk-ungating work scheduled or pending. In this case, ufshcd_hold()
shall just bypass, and keep the link as Hibern8 state.
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Avri Altman <[email protected]>
Co-developed-by: Andy Teng <[email protected]>
Signed-off-by: Andy Teng <[email protected]>
Signed-off-by: Stanley Chu <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions