]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
platform/chrome: cros_usbpd_notify: defer probe when parent EC driver isn't ready
authorJameson Thies <jthies@google.com>
Tue, 7 Oct 2025 00:40:43 +0000 (00:40 +0000)
committerTzung-Bi Shih <tzungbi@kernel.org>
Mon, 13 Oct 2025 02:53:44 +0000 (02:53 +0000)
commite4ee0bb077cd7d70207647a0106f6ea6a74c2636
tree79643a91a1d49e329a880274448de0507b77a6e6
parent3a8660878839faadb4f1a6dd72c3179c1df56787
platform/chrome: cros_usbpd_notify: defer probe when parent EC driver isn't ready

The cros-usbpd-notify-acpi probe currently does not exit when it fails
to get a pointer to the ChromeOS EC device. It is expected behavior on
older devices, where GOOG0004 is not a parent of GOOG0003.

Update the cros-usbpd-notify-acpi probe to check for a GOOG0004 parent
fwnode. If the device has correct device hierarchy and fails to get an
EC device pointer, defer the probe function.

Signed-off-by: Jameson Thies <jthies@google.com>
Reviewed-by: Benson Leung <bleung@chromium.org>
Link: https://lore.kernel.org/r/20251007004043.4109957-1-jthies@google.com
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
drivers/platform/chrome/cros_usbpd_notify.c