diff options
| author | 2025-06-10 17:37:47 +0200 | |
|---|---|---|
| committer | 2025-06-11 02:12:53 +0000 | |
| commit | 8866f4e557eba43e991f99711515217a95f62d2e (patch) | |
| tree | bc1b0b9d05cec9a971191b3beaf437573ef4f0a0 /rust/kernel/debugfs/git:/ssh:/git@git.zx2c4.com | |
| parent | Linux 6.16-rc1 (diff) | |
| download | wireguard-linux-8866f4e557eba43e991f99711515217a95f62d2e.tar.xz wireguard-linux-8866f4e557eba43e991f99711515217a95f62d2e.zip | |
platform/chrome: cros_ec_typec: Defer probe on missing EC parent
If cros_typec_probe is called before EC device is registered,
cros_typec_probe will fail. It may happen when cros-ec-typec.ko is
loaded before EC bus layer module (e.g. cros_ec_lpcs.ko,
cros_ec_spi.ko).
Return -EPROBE_DEFER when cros_typec_probe doesn't get EC device, so
the probe function can be called again after EC device is registered.
Signed-off-by: Tomasz Michalec <tmichalec@google.com>
Reviewed-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Link: https://lore.kernel.org/r/20250610153748.1858519-1-tmichalec@google.com
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Diffstat (limited to 'rust/kernel/debugfs/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
