Skip to content

Commit

Permalink
Merge tag 'phy-fixes3-6.8' of git://git.kernel.org/pub/scm/linux/kern…
Browse files Browse the repository at this point in the history
…el/git/phy/linux-phy

Pull phy fixes from Vinod Koul:

 - fixes for Qualcomm qmp-combo driver for ordering of drm and type-c
   switch registartion due to drivers might not probe defer after having
   registered child devices to avoid triggering a probe deferral loop.

   This fixes internal display on Lenovo ThinkPad X13s

* tag 'phy-fixes3-6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy:
  phy: qcom-qmp-combo: fix type-c switch registration
  phy: qcom-qmp-combo: fix drm bridge registration
  • Loading branch information
Linus Torvalds committed Mar 10, 2024
2 parents 137e0ec + 47b412c commit 210ee63
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions drivers/phy/qualcomm/phy-qcom-qmp-combo.c
Original file line number Diff line number Diff line change
Expand Up @@ -3562,14 +3562,6 @@ static int qmp_combo_probe(struct platform_device *pdev)
if (ret)
return ret;

ret = qmp_combo_typec_switch_register(qmp);
if (ret)
return ret;

ret = drm_aux_bridge_register(dev);
if (ret)
return ret;

/* Check for legacy binding with child nodes. */
usb_np = of_get_child_by_name(dev->of_node, "usb3-phy");
if (usb_np) {
Expand All @@ -3589,6 +3581,14 @@ static int qmp_combo_probe(struct platform_device *pdev)
if (ret)
goto err_node_put;

ret = qmp_combo_typec_switch_register(qmp);
if (ret)
goto err_node_put;

ret = drm_aux_bridge_register(dev);
if (ret)
goto err_node_put;

pm_runtime_set_active(dev);
ret = devm_pm_runtime_enable(dev);
if (ret)
Expand Down

0 comments on commit 210ee63

Please sign in to comment.