]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: typec: intel_pmc_mux: Defer probe if SCU IPC isn't present
authorTomasz Michalec <tmichalec@google.com>
Tue, 10 Jun 2025 15:40:58 +0000 (17:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:28:18 +0000 (16:28 +0200)
commit0455858931ff56da05253e01b73ac40b23729b20
treefd43881850a211aadae4526a6f1d5dac522aae94
parent41f53afe53a57a7c50323f99424b598190acf192
usb: typec: intel_pmc_mux: Defer probe if SCU IPC isn't present

[ Upstream commit df9a825f330e76c72d1985bc9bdc4b8981e3d15f ]

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 <tmichalec@google.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20250610154058.1859812-1-tmichalec@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/typec/mux/intel_pmc_mux.c