[PATCH v1] scsi: ufs: core: Hold a clock reference across the probe

Martin K. Petersen (Oracle) mkp at kernel.org
Mon Oct 5 19:43:52 PDT 2026


On Wed, 09 Sep 2026 17:10:45 +0800, Naomi Chu wrote:

> Clock gating becomes possible as soon as ufshcd_init_clk_gating() has
> run, and from that point on the probe keeps accessing host registers
> without ever taking a clock reference. This has been safe only because
> of the state check in __ufshcd_release(): gate_work is not queued
> unless hba->ufshcd_state is UFSHCD_STATE_OPERATIONAL, and the promotion
> to that state used to happen after the last register access of the
> probe, at the end of ufshcd_probe_hba().
> 
> [...]

Applied to 7.3/scsi-fixes, thanks!

[1/1] scsi: ufs: core: Hold a clock reference across the probe
      https://git.kernel.org/mkp/scsi/c/02a317831963

-- 
Martin K. Petersen



More information about the Linux-mediatek mailing list