]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Jul 2024 11:21:25 +0000 (13:21 +0200)
commit5bfec9c2b8d6aa26a542dccf1edf2147f42da43b
tree094297204e4ef3fa939248cd280e140d4ce72281
parentc1bf973f57b7ca62e868c5bc7f3cbdf8ea8d5dc5
i2c: rcar: bring hardware to known state when probing

[ Upstream commit 4e36c0f20cb1c74c7bd7ea31ba432c1c4a989031 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/i2c/busses/i2c-rcar.c