Skip to content

Commit 522a58a

Browse files
bigunclemaxtrini
authored andcommitted
i2c: designware_i2c: Don't warn if reset DT property is not present
If reset property is missing in DT, then we get this warning: designware_i2c@0: Can't get reset: -2 Avoid this by checking if reset DT property is present, first. Fixes: 622597d ("i2c: designware: add reset ctrl to driver") Signed-off-by: Maksim Kiselev <[email protected]> Reviewed-by: Heiko Schocher <[email protected]> Reviewed-by: Peng Fan <[email protected]>
1 parent 07b7259 commit 522a58a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/i2c/designware_i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ int designware_i2c_of_to_plat(struct udevice *bus)
764764

765765
ret = reset_get_bulk(bus, &priv->resets);
766766
if (ret) {
767-
if (ret != -ENOTSUPP)
767+
if (ret != -ENOTSUPP && ret != -ENOENT)
768768
dev_warn(bus, "Can't get reset: %d\n", ret);
769769
} else {
770770
reset_deassert_bulk(&priv->resets);

0 commit comments

Comments
 (0)