]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
i2c: rcar: Auto select RESET_CONTROLLER
authorDirk Behme <dirk.behme@de.bosch.com>
Thu, 27 Aug 2020 09:23:30 +0000 (11:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Oct 2020 08:57:53 +0000 (09:57 +0100)
[ Upstream commit 5b9bacf28a973a6b16510493416baeefa2c06289 ]

The i2c-rcar driver utilizes the Generic Reset Controller kernel
feature, so select the RESET_CONTROLLER option when the I2C_RCAR
option is selected with a Gen3 SoC.

Fixes: 2b16fd63059ab9 ("i2c: rcar: handle RXDMA HW behaviour on Gen3")
Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com>
Signed-off-by: Andy Lowe <andy_lowe@mentor.com>
[erosca: Add "if ARCH_RCAR_GEN3" per Wolfram's request]
Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/i2c/busses/Kconfig

index 146ce40d8e0aa1d53e5ebe1d3d7e7c9bde5fe2ef..2d08a8719506c4fd8b32a2449eecea68723be72d 100644 (file)
@@ -1162,6 +1162,7 @@ config I2C_RCAR
        tristate "Renesas R-Car I2C Controller"
        depends on ARCH_RENESAS || COMPILE_TEST
        select I2C_SLAVE
+       select RESET_CONTROLLER if ARCH_RCAR_GEN3
        help
          If you say yes to this option, support will be included for the
          R-Car I2C controller.