phy: qcom-qmp-combo: clean up common initialisation
authorJohan Hovold <johan+linaro@kernel.org>
Mon, 14 Nov 2022 08:13:46 +0000 (09:13 +0100)
committerVinod Koul <vkoul@kernel.org>
Thu, 24 Nov 2022 15:33:00 +0000 (21:03 +0530)
commitc209b1b0e1e87e862099482e62a2f2d0bef8e989
treea1a598f3d0ec824271be01665c3a6f8f2125548f
parentc7b98de745cffdceefc077ad5cf9cda032ef8959
phy: qcom-qmp-combo: clean up common initialisation

Commit 52e013d0bffa ("phy: qcom-qmp: Add support for DP in USB3+DP combo
phy") added support for the DisplayPort part of QMP PHYs but
unfortunately did so by duplicating parts of the shared configuration,
something which has lead to subtle bugs depending on probe order.

As the resources have always been requested based on the USB
configuration, make sure to not rely on fields from the DP configuration
when using them (e.g. in case they get out of sync) and remove the now
unused fields from the DP configurations.

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-7-johan+linaro@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-qmp-combo.c