From: Tomasz Michalec Date: Tue, 10 Jun 2025 15:40:58 +0000 (+0200) Subject: usb: typec: intel_pmc_mux: Defer probe if SCU IPC isn't present X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=df9a825f330e76c72d1985bc9bdc4b8981e3d15f;p=users%2Fjedix%2Flinux-maple.git 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 Reviewed-by: Heikki Krogerus Link: https://lore.kernel.org/r/20250610154058.1859812-1-tmichalec@google.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/typec/mux/intel_pmc_mux.c b/drivers/usb/typec/mux/intel_pmc_mux.c index 65dda9183e6f..1698428654ab 100644 --- a/drivers/usb/typec/mux/intel_pmc_mux.c +++ b/drivers/usb/typec/mux/intel_pmc_mux.c @@ -754,7 +754,7 @@ static int pmc_usb_probe(struct platform_device *pdev) pmc->ipc = devm_intel_scu_ipc_dev_get(&pdev->dev); if (!pmc->ipc) - return -ENODEV; + return -EPROBE_DEFER; pmc->dev = &pdev->dev;