Re: [PATCH 3/3] scsi: ufs: core: Report the current clock frequency to devfreq

From: Stanley Jhu

Date: Thu Sep 03 2026 - 21:33:07 EST


Thanks for digging into this, Bean.

> That holds up the queue for up to a second only to set the same OPP and the same
> gear again. This happens today, without my patch.

In Non-OPP mode (!use_pm_opp), devfreq_profile.initial_freq also needs to be
initialized to clki->max_freq. Otherwise, devfreq->previous_freq remains 0 and
devfreq_update_status() drops the initial time_in_state accounting.

Thanks,
Stanley Jhu