phy: qcom-qmp-combo: fix runtime suspend
authorJohan Hovold <johan+linaro@kernel.org>
Mon, 14 Nov 2022 08:13:45 +0000 (09:13 +0100)
committerVinod Koul <vkoul@kernel.org>
Thu, 24 Nov 2022 15:32:59 +0000 (21:02 +0530)
commitc7b98de745cffdceefc077ad5cf9cda032ef8959
treedb4196ef5faa57c0475f3180ae33fcf4f3c3a083
parent7a7d86d14d073dfa3429c550667a8e78b99edbd4
phy: qcom-qmp-combo: fix runtime suspend

Drop the confused runtime-suspend type check which effectively broke
runtime PM if the DP child node happens to be parsed before the USB
child node during probe (e.g. due to order of child nodes in the
devicetree).

Instead use the new driver data USB PHY pointer to access the USB
configuration and resources.

Fixes: 52e013d0bffa ("phy: qcom-qmp: Add support for DP in USB3+DP combo phy")
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20221114081346.5116-6-johan+linaro@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-qmp-combo.c