phy: qcom-qmp-combo: Extend phy_mutex to all phy_ops
authorBjorn Andersson <quic_bjorande@quicinc.com>
Mon, 15 May 2023 03:27:38 +0000 (20:27 -0700)
committerVinod Koul <vkoul@kernel.org>
Fri, 19 May 2023 17:47:19 +0000 (23:17 +0530)
commit77cbca3a12d3b9501973bdecd28f28b5c2184bf2
tree85cab4aa5947be54b16cf7b69d1a12bbb370ec60
parent02545aa31008e1f4fb6875cdd13c415ddf95a24c
phy: qcom-qmp-combo: Extend phy_mutex to all phy_ops

The phy core ensures mutual exclusion across the ops for a given phy,
but the upcoming introduction of USB Type-C orientation switching might
race with the DisplayPort phy operations. So extend the mutual exclusion
to cover the remaining ops as well, to avoid concurrent reconfiguration
of the hardware.

Reported-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Johan Hovold <johan+linaro@kernel.org>
Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Link: https://lore.kernel.org/r/20230515032743.400170-4-quic_bjorande@quicinc.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-qmp-combo.c