On 7/30/25 5:55 AM, Peter Wang (王信友) wrote:
Another idea is to only start ufshcd_devfreq_init when shost->async_scan = 0.
Hmm ... I don't think that this is a solution. There are multiple ways for triggering a LUN scan and my understanding is that the clock scaling code should be serialized against LUN scanning. Here is an example of how LUN scanning can be triggered from user space by writing into the 'scan' sysfs attribute, even if shost->async_scan = 0: echo "- - -" > /sys/class/scsi_host/host.../scan Bart.