Re: [PATCH] i2c: cros-ec-tunnel: defer probe if parent EC is not present
From: Andi Shyti
Date: Sun Apr 13 2025 - 16:01:32 EST
Hi,
On Mon, Apr 07, 2025 at 05:33:34PM -0300, Thadeu Lima de Souza Cascardo wrote:
> When i2c-cros-ec-tunnel and the EC driver are built-in, the EC parent
> device will not be found, leading to NULL pointer dereference.
>
> That can also be reproduced by unbinding the controller driver and then
> loading i2c-cros-ec-tunnel module (or binding the device).
...
> Returning -EPROBE_DEFER will allow the device to be bound once the
> controller is bound, in the case of built-in drivers.
>
> Fixes: 9d230c9e4f4e ("i2c: ChromeOS EC tunnel driver")
> Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@xxxxxxxxxx>
merged in i2c/i2c-host-fixes.
Thanks,
Andi