]> git.ipfire.org Git - thirdparty/u-boot.git/commit
i2c: designware_i2c: Don't warn if reset DT property is not present
authorMaksim Kiselev <bigunclemax@gmail.com>
Fri, 26 Sep 2025 10:05:26 +0000 (13:05 +0300)
committerTom Rini <trini@konsulko.com>
Mon, 29 Sep 2025 14:01:15 +0000 (08:01 -0600)
commit522a58af836598918758b41b110a73f35b9335ba
treed65b93a72720838487fd46c6bf2682acac591bc4
parent07b7259b8b668e49d413f6ace3d1fe098a67c5fa
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: 622597dee4f ("i2c: designware: add reset ctrl to driver")
Signed-off-by: Maksim Kiselev <bigunclemax@gmail.com>
Reviewed-by: Heiko Schocher <hs@nabladev.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
drivers/i2c/designware_i2c.c