From: Pranav Tilak Date: Thu, 9 Jul 2026 09:12:52 +0000 (+0530) Subject: i3c: dw: make resets optional in probe X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f077a6b07be1939eb5865fb6afe60ed3c545edb0;p=thirdparty%2Fu-boot.git i3c: dw: make resets optional in probe Treat -ENOENT and -ENOTSUPP from reset_get_bulk() as non-fatal to support platforms where no resets are defined in the DTS. The resets property is not yet documented in the DT binding. Fixes: 1009c96f1590 ("drivers: i3c: Add driver for MIPI DWI3C") Signed-off-by: Pranav Tilak Reviewed-by: Dinesh Maniyam --- diff --git a/drivers/i3c/master/dw-i3c-master.c b/drivers/i3c/master/dw-i3c-master.c index 0c4af7e528a..c6ce54a1d3b 100644 --- a/drivers/i3c/master/dw-i3c-master.c +++ b/drivers/i3c/master/dw-i3c-master.c @@ -972,7 +972,7 @@ static int dw_i3c_probe(struct udevice *dev) } ret = reset_get_bulk(dev, &master->resets); - if (ret) { + if (ret && ret != -ENOTSUPP && ret != -ENOENT) { dev_err(dev, "Can't get reset: %d\n", ret); return ret; }