Skip to content

Commit df9a825

Browse files
Chimstazgregkh
authored andcommitted
usb: typec: intel_pmc_mux: Defer probe if SCU IPC isn't present
If pmc_usb_probe is called before SCU IPC is registered, pmc_usb_probe will fail. Return -EPROBE_DEFER when pmc_usb_probe doesn't get SCU IPC device, so the probe function can be called again after SCU IPC is initialized. Signed-off-by: Tomasz Michalec <[email protected]> Reviewed-by: Heikki Krogerus <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 503bbde commit df9a825

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/typec/mux/intel_pmc_mux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ static int pmc_usb_probe(struct platform_device *pdev)
754754

755755
pmc->ipc = devm_intel_scu_ipc_dev_get(&pdev->dev);
756756
if (!pmc->ipc)
757-
return -ENODEV;
757+
return -EPROBE_DEFER;
758758

759759
pmc->dev = &pdev->dev;
760760

0 commit comments

Comments
 (0)