phy: qcom-qmp-usb: make QPHY_PCS_MISC_CLAMP_ENABLE access conditional
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Thu, 24 Aug 2023 21:19:40 +0000 (00:19 +0300)
committerVinod Koul <vkoul@kernel.org>
Thu, 21 Sep 2023 13:53:58 +0000 (15:53 +0200)
commit6e9402261e8c85ec386b473ce3738d6e9d3e5013
treed497b7899f652f0a3ae79a67bb34502d8120c12b
parentfcf63482f6a9d383f04e409bc50f00eecb74ae73
phy: qcom-qmp-usb: make QPHY_PCS_MISC_CLAMP_ENABLE access conditional

The register QPHY_V[34]_PCS_MISC_CLAMP_ENABLE is present only on some
SoC families. Other platforms (qcm2290) can have PCS_MISC region, but do
not have this register. Add it to the register layout table and check
that it is defined before toggling CLAMP settings.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20230824211952.1397699-5-dmitry.baryshkov@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-qmp-usb.c