diff mbox series

i2c: mlxbf: I2C_MLXBF should depend on MELLANOX_PLATFORM

Message ID 20201005124949.26810-1-geert+renesas@glider.be
State Accepted
Commit 9890923be3a6d5e606cf4ae4f4e632a5e38cb37c
Headers show
Series i2c: mlxbf: I2C_MLXBF should depend on MELLANOX_PLATFORM | expand

Commit Message

Geert Uytterhoeven Oct. 5, 2020, 12:49 p.m. UTC
The Mellanox BlueField I2C controller is only present on Mellanox
BlueField SoCs.  Hence add a dependency on MELLANOX_PLATFORM, to prevent
asking the user about this driver when configuring a kernel without
Mellanox platform support.

Fixes: b5b5b32081cd206b ("i2c: mlxbf: I2C SMBus driver for Mellanox BlueField SoC")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 drivers/i2c/busses/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Wolfram Sang Oct. 10, 2020, 11:19 a.m. UTC | #1
On Mon, Oct 05, 2020 at 02:49:49PM +0200, Geert Uytterhoeven wrote:
> The Mellanox BlueField I2C controller is only present on Mellanox
> BlueField SoCs.  Hence add a dependency on MELLANOX_PLATFORM, to prevent
> asking the user about this driver when configuring a kernel without
> Mellanox platform support.
> 
> Fixes: b5b5b32081cd206b ("i2c: mlxbf: I2C SMBus driver for Mellanox BlueField SoC")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

Usually, I wait for maintainer acks before I apply driver patches. I
make an exception here to have it sorted out before the merge window.

Applied to for-next, thanks!
Wolfram Sang Nov. 6, 2020, 2:58 p.m. UTC | #2
On Sat, Oct 10, 2020 at 01:19:42PM +0200, Wolfram Sang wrote:
> On Mon, Oct 05, 2020 at 02:49:49PM +0200, Geert Uytterhoeven wrote:

> > The Mellanox BlueField I2C controller is only present on Mellanox

> > BlueField SoCs.  Hence add a dependency on MELLANOX_PLATFORM, to prevent

> > asking the user about this driver when configuring a kernel without

> > Mellanox platform support.

> > 

> > Fixes: b5b5b32081cd206b ("i2c: mlxbf: I2C SMBus driver for Mellanox BlueField SoC")

> > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

> 

> Usually, I wait for maintainer acks before I apply driver patches. I

> make an exception here to have it sorted out before the merge window.

> 

> Applied to for-next, thanks!


Strange, this one got missing, too. Applied again to for-current!
diff mbox series

Patch

diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig
index 96685b273f637176..424dee8b33600057 100644
--- a/drivers/i2c/busses/Kconfig
+++ b/drivers/i2c/busses/Kconfig
@@ -732,7 +732,7 @@  config I2C_LPC2K
 
 config I2C_MLXBF
         tristate "Mellanox BlueField I2C controller"
-        depends on ARM64
+        depends on MELLANOX_PLATFORM && ARM64
         help
           Enabling this option will add I2C SMBus support for Mellanox BlueField
           system.