]> git.ipfire.org Git - thirdparty/linux.git/commit
phy: qcom-qmp-usb: Set regulator load before enabling
authorFaisal Hassan <faisal.hassan@oss.qualcomm.com>
Fri, 5 Sep 2025 10:12:43 +0000 (15:42 +0530)
committerVinod Koul <vkoul@kernel.org>
Tue, 23 Dec 2025 17:41:04 +0000 (23:11 +0530)
commit346ba84646355d651bb301f66137ad4418381a8e
treec6b5a740ece98f98bf545348e6d6b59c00fddc26
parente5b4d5935f758c6d685c624343d7615d76bdc931
phy: qcom-qmp-usb: Set regulator load before enabling

Set the regulator load before enabling the regulators to ensure stable
operation and proper power management on platforms where regulators are
shared between the QMP USB PHY and other IP blocks.

Introduce a regulator data structure with explicit enable load values and
use the regulator framework's `init_load_uA` field along with
`devm_regulator_bulk_get_const()` to ensure that `regulator_set_load()` is
applied automatically before the first enable, providing consistent power
management behavior across platforms.

Signed-off-by: Faisal Hassan <faisal.hassan@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://patch.msgid.link/20250905101243.14815-1-faisal.hassan@oss.qualcomm.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-qmp-usb.c