phy: qcom-qmp-combo: Square out 8550 POWER_STATE_CONFIG1
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Mon, 11 Sep 2023 20:07:14 +0000 (22:07 +0200)
committerVinod Koul <vkoul@kernel.org>
Thu, 21 Sep 2023 14:23:13 +0000 (16:23 +0200)
commit112c23705c6dc59a05290c8e3e597e1b4e9c23fc
treec71c612c931adacaba845132efac56b9c7b23036
parentecec1de5c58f8f3ab6959fcf8d68752eeb65311d
phy: qcom-qmp-combo: Square out 8550 POWER_STATE_CONFIG1

There are two instances of the POWER_STATE_CONFIG1 register: one in
the PCS space and another one in PCS_USB.

The downstream init sequence pokes the latter one while we've been poking
the former one (and misnamed it as the latter one, impostor!). Fix that
up to avoid UB.

Fixes: 49742e9edab3 ("phy: qcom-qmp-combo: Add support for SM8550")
Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20230829-topic-8550_usbphy-v3-1-34ec434194c5@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-qmp-combo.c
drivers/phy/qualcomm/phy-qcom-qmp-pcs-usb-v6.h