Linux-i2c Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] i2c: mlxbf: I2C_MLXBF should depend on MELLANOX_PLATFORM
@ 2020-10-05 12:49 Geert Uytterhoeven
  2020-10-10 11:19 ` Wolfram Sang
  0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2020-10-05 12:49 UTC (permalink / raw)
  To: Khalil Blaiech, Vadim Pasternak, Wolfram Sang
  Cc: linux-i2c, linux-kernel, Geert Uytterhoeven

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(-)

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.
-- 
2.17.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] i2c: mlxbf: I2C_MLXBF should depend on MELLANOX_PLATFORM
  2020-10-05 12:49 [PATCH] i2c: mlxbf: I2C_MLXBF should depend on MELLANOX_PLATFORM Geert Uytterhoeven
@ 2020-10-10 11:19 ` Wolfram Sang
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfram Sang @ 2020-10-10 11:19 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Khalil Blaiech, Vadim Pasternak, linux-i2c, linux-kernel


[-- Attachment #1: Type: text/plain, Size: 646 bytes --]

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!


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-05 12:49 [PATCH] i2c: mlxbf: I2C_MLXBF should depend on MELLANOX_PLATFORM Geert Uytterhoeven
2020-10-10 11:19 ` Wolfram Sang

Linux-i2c Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-i2c/0 linux-i2c/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-i2c linux-i2c/ https://lore.kernel.org/linux-i2c \
		linux-i2c@vger.kernel.org
	public-inbox-index linux-i2c

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-i2c


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git