On Wed, Aug 20, 2025 at 03:58:25AM +0530, Nitin Rawat wrote: > On certain SoCs, power regulators are shared between the QMP UFS PHY > and other IP blocks. To ensure proper operation, the regulator > framework must be informed of the UFS PHY's load requirements. > This is essential because the regulator's operating mode—whether Low > Power or High Power—depends on the maximum expected load at any given > time, which the regulator driver needs to manage accordingly. > > To support this, replace devm_regulator_bulk_get() with > devm_regulator_bulk_get_const() and inline the qmp_ufs_vreg_init() > function. additionally replace the array of regulator names with a > bulk regulator data structure, and utilize the init_load_uA field > provided by the regulator framework. This ensures that > regulator_set_load() is automatically invoked before the > first enable operation. > > Signed-off-by: Nitin Rawat <quic_nitirawa@xxxxxxxxxxx> > --- > drivers/phy/qualcomm/phy-qcom-qmp-ufs.c | 29 +++++++------------------ > 1 file changed, 8 insertions(+), 21 deletions(-) > Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxxxxxxxx> -- With best wishes Dmitry