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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user