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: 1009c96f15 ("drivers: i3c: Add driver for MIPI DWI3C")
Signed-off-by: Pranav Tilak <pranav.vinaytilak@amd.com>
Reviewed-by: Dinesh Maniyam <dinesh.maniyam@altera.com>
This commit is contained in:
Pranav Tilak
2026-07-22 13:09:54 -06:00
committed by Tom Rini
parent 964a26cc6d
commit f077a6b07b
+1 -1
View File
@@ -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;
}