phy: qcom-qmp-usb: fix v3 offsets data
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tue, 13 Feb 2024 13:38:24 +0000 (15:38 +0200)
committerVinod Koul <vkoul@kernel.org>
Fri, 16 Feb 2024 11:35:48 +0000 (17:05 +0530)
commitd4c08d8b23b22807c712208cd05cb047e92e7672
tree048908c28535e81ae905f3f59d6097ee41807fa5
parent734550d60cdf634299f0eac7f7fe15763ed990bb
phy: qcom-qmp-usb: fix v3 offsets data

The MSM8996 platform has registers setup different to the rest of QMP v3
USB platforms. It has PCS region at 0x600 and no PCS_MISC region, while
other platforms have PCS region at 0x800 and PCS_MISC at 0x600.  This
results in the malfunctioning USB host on some of the platforms.  The
commit f74c35b630d4 ("phy: qcom-qmp-usb: fix register offsets for
ipq8074/ipq6018") fixed the issue for IPQ platforms, but missed the
SDM845 which has the same register layout.

To simplify future platform addition and to make the driver more future
proof, rename qmp_usb_offsets_v3 to qmp_usb_offsets_v3_msm8996 (to mark
its peculiarity), rename qmp_usb_offsets_ipq8074 to qmp_usb_offsets_v3
and use it for SDM845 platform.

Fixes: 2be22aae6b18 ("phy: qcom-qmp-usb: populate offsets configuration")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20240213133824.2218916-1-dmitry.baryshkov@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-qmp-usb.c