]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i2c: rcar: bring hardware to known state when probing
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sun, 7 Jul 2024 08:28:46 +0000 (10:28 +0200)
committerAndi Shyti <andi.shyti@kernel.org>
Mon, 8 Jul 2024 23:18:29 +0000 (01:18 +0200)
commit4e36c0f20cb1c74c7bd7ea31ba432c1c4a989031
tree2e7225f384f1eb5673cce0d93ef079f80659ccad
parent256abd8e550ce977b728be79a74e1729438b4948
i2c: rcar: bring hardware to known state when probing

When probing, the hardware is not brought into a known state. This may
be a problem when a hypervisor restarts Linux without resetting the
hardware, leaving an old state running. Make sure the hardware gets
initialized, especially interrupts should be cleared and disabled.

Reported-by: Dirk Behme <dirk.behme@de.bosch.com>
Reported-by: Geert Uytterhoeven <geert+renesas@glider.be>
Closes: https://lore.kernel.org/r/20240702045535.2000393-1-dirk.behme@de.bosch.com
Fixes: 6ccbe607132b ("i2c: add Renesas R-Car I2C driver")
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/i2c-rcar.c