Re: [PATCH V5 3/4] scsi: ufs: core Enforce minimum pm level for sysfs configuration
From: Bart Van Assche
Date: Tue Jan 20 2026 - 12:44:44 EST
On 1/13/26 12:00 AM, Ram Kumar Dwivedi wrote:
Some UFS platforms only support a limited subset of power levels.
Currently, the sysfs interface allows users to set any pm level
without validating the minimum supported value. If an unsupported
level is selected, suspend may fail.
Introduce an pm_lvl_min field in the ufs_hba structure and use it
to clamp the pm level requested via sysfs so that only supported
levels are accepted. Platforms that require a minimum pm level
can set this field during probe.
Reviewed-by: Bart Van Assche <bvanassche@xxxxxxx>