netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/7] i2c: designware: Group all DesignWare drivers under a single option
@ 2024-09-03 14:24 Heikki Krogerus
  2024-09-03 14:25 ` [PATCH v2 6/7] net: txgbe: Fix I2C Kconfig dependencies Heikki Krogerus
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Heikki Krogerus @ 2024-09-03 14:24 UTC (permalink / raw)
  To: Andi Shyti, Jarkko Nikula
  Cc: Andy Shevchenko, Mika Westerberg, Jan Dabros, linux-i2c,
	linux-kernel, Vineet Gupta, Russell King, Dinh Nguyen,
	Catalin Marinas, Will Deacon, Alexandre Belloni,
	Thomas Bogendoerfer, Paul Walmsley, Palmer Dabbelt, Albert Ou,
	Jiawen Wu, Mengyuan Lou, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, netdev, linux-riscv, UNGLinuxDriver,
	linux-mips, linux-arm-kernel, linux-snps-arc

Hi guys,

This is a proposal for Kconfig improvement regarding the Synopsys
DesignWare I2C adapter driver.

Changes since v1:

There was one driver that selects I2C_DESIGNWARE_PLATFORM in its
Kconfig which causes an error because I2C_DESIGNWARE_CORE is not
selected.

The drivers Kconfig I'm proposing that we fix by using "depends on"
instead of "select". There are also a number of defconfigs that enable
I2C_DESIGNWARE_PLATFORM that now need to enable I2C_DESIGNWARE_CORE.

The original patch:
https://lore.kernel.org/linux-i2c/20240830111222.2131172-1-heikki.krogerus@linux.intel.com/

thanks,

Heikki Krogerus (7):
  ARC: configs: enable I2C_DESIGNWARE_CORE with I2C_DESIGNWARE_PLATFORM
  ARM: configs: enable I2C_DESIGNWARE_CORE with I2C_DESIGNWARE_PLATFORM
  arm64: defconfig: enable I2C_DESIGNWARE_CORE with
    I2C_DESIGNWARE_PLATFORM
  mips: configs: enable I2C_DESIGNWARE_CORE with I2C_DESIGNWARE_PLATFORM
  RISC-V: configs: enable I2C_DESIGNWARE_CORE with
    I2C_DESIGNWARE_PLATFORM
  net: txgbe: Fix I2C Kconfig dependencies
  i2c: designware: Group all DesignWare drivers under a single option

 arch/arc/configs/axs101_defconfig             |  1 +
 arch/arc/configs/axs103_defconfig             |  1 +
 arch/arc/configs/axs103_smp_defconfig         |  1 +
 arch/arc/configs/tb10x_defconfig              |  1 +
 arch/arm/configs/hisi_defconfig               |  1 +
 arch/arm/configs/multi_v7_defconfig           |  1 +
 arch/arm/configs/pxa_defconfig                |  1 +
 arch/arm/configs/socfpga_defconfig            |  1 +
 arch/arm/configs/spear13xx_defconfig          |  1 +
 arch/arm/configs/spear3xx_defconfig           |  1 +
 arch/arm/configs/spear6xx_defconfig           |  1 +
 arch/arm64/configs/defconfig                  |  1 +
 arch/mips/configs/generic/board-ocelot.config |  1 +
 arch/riscv/configs/defconfig                  |  1 +
 arch/riscv/configs/nommu_k210_defconfig       |  1 +
 .../riscv/configs/nommu_k210_sdcard_defconfig |  1 +
 drivers/i2c/busses/Kconfig                    | 29 ++++++++++++-------
 drivers/net/ethernet/wangxun/Kconfig          |  3 +-
 18 files changed, 35 insertions(+), 13 deletions(-)

-- 
2.45.2


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

* [PATCH v2 6/7] net: txgbe: Fix I2C Kconfig dependencies
  2024-09-03 14:24 [PATCH v2 0/7] i2c: designware: Group all DesignWare drivers under a single option Heikki Krogerus
@ 2024-09-03 14:25 ` Heikki Krogerus
  2024-09-03 21:01 ` [PATCH v2 0/7] i2c: designware: Group all DesignWare drivers under a single option Andi Shyti
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Heikki Krogerus @ 2024-09-03 14:25 UTC (permalink / raw)
  To: Andi Shyti, Jarkko Nikula
  Cc: Andy Shevchenko, Mika Westerberg, Jan Dabros, linux-i2c,
	linux-kernel, Jiawen Wu, Mengyuan Lou, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, netdev

The dependency handling of the Synopsys DesignWare I2C
adapter drivers is going to be changed so that the glue
drivers for the platform and PCI buses depend on
I2C_DESIGNWARE_CORE. Right now this driver prevents that
update because it selects I2C_DESIGNWARE_PLATFORM.

To make the dependency on I2C_DESIGNWARE_PLATFORM consistent
with the other drivers in kernel that depend on it, and
allow the dependency handling of the Synopsys DesignWare I2C
drivers to be updated, change the "select" into "depends on".

Cc: Jiawen Wu <jiawenwu@trustnetic.com>
Cc: Mengyuan Lou <mengyuanlou@net-swift.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Paolo Abeni <pabeni@redhat.com>
Cc: netdev@vger.kernel.org
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
---
 drivers/net/ethernet/wangxun/Kconfig | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/wangxun/Kconfig b/drivers/net/ethernet/wangxun/Kconfig
index 85cdbdd44fec..e46ccebcfd22 100644
--- a/drivers/net/ethernet/wangxun/Kconfig
+++ b/drivers/net/ethernet/wangxun/Kconfig
@@ -41,10 +41,9 @@ config TXGBE
 	tristate "Wangxun(R) 10GbE PCI Express adapters support"
 	depends on PCI
 	depends on COMMON_CLK
+	depends on I2C_DESIGNWARE_PLATFORM
 	select MARVELL_10G_PHY
 	select REGMAP
-	select I2C
-	select I2C_DESIGNWARE_PLATFORM
 	select PHYLINK
 	select HWMON if TXGBE=y
 	select SFP
-- 
2.45.2


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

* Re: [PATCH v2 0/7] i2c: designware: Group all DesignWare drivers under a single option
  2024-09-03 14:24 [PATCH v2 0/7] i2c: designware: Group all DesignWare drivers under a single option Heikki Krogerus
  2024-09-03 14:25 ` [PATCH v2 6/7] net: txgbe: Fix I2C Kconfig dependencies Heikki Krogerus
@ 2024-09-03 21:01 ` Andi Shyti
  2024-09-05  8:18   ` Jarkko Nikula
  2024-09-09 19:21 ` Andi Shyti
  2024-10-01 11:35 ` patchwork-bot+linux-riscv
  3 siblings, 1 reply; 7+ messages in thread
From: Andi Shyti @ 2024-09-03 21:01 UTC (permalink / raw)
  To: Heikki Krogerus
  Cc: Jarkko Nikula, Andy Shevchenko, Mika Westerberg, Jan Dabros,
	linux-i2c, linux-kernel, Vineet Gupta, Russell King, Dinh Nguyen,
	Catalin Marinas, Will Deacon, Alexandre Belloni,
	Thomas Bogendoerfer, Paul Walmsley, Palmer Dabbelt, Albert Ou,
	Jiawen Wu, Mengyuan Lou, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, netdev, linux-riscv, UNGLinuxDriver,
	linux-mips, linux-arm-kernel, linux-snps-arc

Hi Jarkko, Andy,

...

> Heikki Krogerus (7):
>   ARC: configs: enable I2C_DESIGNWARE_CORE with I2C_DESIGNWARE_PLATFORM
>   ARM: configs: enable I2C_DESIGNWARE_CORE with I2C_DESIGNWARE_PLATFORM
>   arm64: defconfig: enable I2C_DESIGNWARE_CORE with
>     I2C_DESIGNWARE_PLATFORM
>   mips: configs: enable I2C_DESIGNWARE_CORE with I2C_DESIGNWARE_PLATFORM
>   RISC-V: configs: enable I2C_DESIGNWARE_CORE with
>     I2C_DESIGNWARE_PLATFORM
>   net: txgbe: Fix I2C Kconfig dependencies
>   i2c: designware: Group all DesignWare drivers under a single option

I believe you know this code already, do you mind giving it an
ack?

Thanks,
Andi

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

* Re: [PATCH v2 0/7] i2c: designware: Group all DesignWare drivers under a single option
  2024-09-03 21:01 ` [PATCH v2 0/7] i2c: designware: Group all DesignWare drivers under a single option Andi Shyti
@ 2024-09-05  8:18   ` Jarkko Nikula
  0 siblings, 0 replies; 7+ messages in thread
From: Jarkko Nikula @ 2024-09-05  8:18 UTC (permalink / raw)
  To: Andi Shyti, Heikki Krogerus
  Cc: Andy Shevchenko, Mika Westerberg, Jan Dabros, linux-i2c,
	linux-kernel, Vineet Gupta, Russell King, Dinh Nguyen,
	Catalin Marinas, Will Deacon, Alexandre Belloni,
	Thomas Bogendoerfer, Paul Walmsley, Palmer Dabbelt, Albert Ou,
	Jiawen Wu, Mengyuan Lou, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, netdev, linux-riscv, UNGLinuxDriver,
	linux-mips, linux-arm-kernel, linux-snps-arc

On 9/4/24 12:01 AM, Andi Shyti wrote:
> Hi Jarkko, Andy,
> 
> ...
> 
>> Heikki Krogerus (7):
>>    ARC: configs: enable I2C_DESIGNWARE_CORE with I2C_DESIGNWARE_PLATFORM
>>    ARM: configs: enable I2C_DESIGNWARE_CORE with I2C_DESIGNWARE_PLATFORM
>>    arm64: defconfig: enable I2C_DESIGNWARE_CORE with
>>      I2C_DESIGNWARE_PLATFORM
>>    mips: configs: enable I2C_DESIGNWARE_CORE with I2C_DESIGNWARE_PLATFORM
>>    RISC-V: configs: enable I2C_DESIGNWARE_CORE with
>>      I2C_DESIGNWARE_PLATFORM
>>    net: txgbe: Fix I2C Kconfig dependencies
>>    i2c: designware: Group all DesignWare drivers under a single option
> 
> I believe you know this code already, do you mind giving it an
> ack?
> 
To the patches 1-7/7 in this set:

Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>

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

* Re: [PATCH v2 0/7] i2c: designware: Group all DesignWare drivers under a single option
  2024-09-03 14:24 [PATCH v2 0/7] i2c: designware: Group all DesignWare drivers under a single option Heikki Krogerus
  2024-09-03 14:25 ` [PATCH v2 6/7] net: txgbe: Fix I2C Kconfig dependencies Heikki Krogerus
  2024-09-03 21:01 ` [PATCH v2 0/7] i2c: designware: Group all DesignWare drivers under a single option Andi Shyti
@ 2024-09-09 19:21 ` Andi Shyti
  2024-10-01 11:35 ` patchwork-bot+linux-riscv
  3 siblings, 0 replies; 7+ messages in thread
From: Andi Shyti @ 2024-09-09 19:21 UTC (permalink / raw)
  To: Heikki Krogerus
  Cc: Jarkko Nikula, Andy Shevchenko, Mika Westerberg, Jan Dabros,
	linux-i2c, linux-kernel, Vineet Gupta, Russell King, Dinh Nguyen,
	Catalin Marinas, Will Deacon, Alexandre Belloni,
	Thomas Bogendoerfer, Paul Walmsley, Palmer Dabbelt, Albert Ou,
	Jiawen Wu, Mengyuan Lou, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, netdev, linux-riscv, UNGLinuxDriver,
	linux-mips, linux-arm-kernel, linux-snps-arc

Hi Heikki,

> Heikki Krogerus (7):
>   ARC: configs: enable I2C_DESIGNWARE_CORE with I2C_DESIGNWARE_PLATFORM
>   ARM: configs: enable I2C_DESIGNWARE_CORE with I2C_DESIGNWARE_PLATFORM
>   arm64: defconfig: enable I2C_DESIGNWARE_CORE with
>     I2C_DESIGNWARE_PLATFORM
>   mips: configs: enable I2C_DESIGNWARE_CORE with I2C_DESIGNWARE_PLATFORM
>   RISC-V: configs: enable I2C_DESIGNWARE_CORE with
>     I2C_DESIGNWARE_PLATFORM
>   net: txgbe: Fix I2C Kconfig dependencies
>   i2c: designware: Group all DesignWare drivers under a single option

Merged to i2c/i2c-host.

Thanks,
Andi

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

* Re: [PATCH v2 0/7] i2c: designware: Group all DesignWare drivers under a single option
  2024-09-03 14:24 [PATCH v2 0/7] i2c: designware: Group all DesignWare drivers under a single option Heikki Krogerus
                   ` (2 preceding siblings ...)
  2024-09-09 19:21 ` Andi Shyti
@ 2024-10-01 11:35 ` patchwork-bot+linux-riscv
  2024-10-02  8:45   ` Andi Shyti
  3 siblings, 1 reply; 7+ messages in thread
From: patchwork-bot+linux-riscv @ 2024-10-01 11:35 UTC (permalink / raw)
  To: Heikki Krogerus
  Cc: linux-riscv, andi.shyti, jarkko.nikula, andriy.shevchenko,
	mika.westerberg, jsd, linux-i2c, linux-kernel, vgupta, linux,
	dinguyen, catalin.marinas, will, alexandre.belloni, tsbogend,
	paul.walmsley, palmer, aou, jiawenwu, mengyuanlou, davem,
	edumazet, kuba, pabeni, netdev, UNGLinuxDriver, linux-mips,
	linux-arm-kernel, linux-snps-arc

Hello:

This patch was applied to riscv/linux.git (fixes)
by Andi Shyti <andi.shyti@kernel.org>:

On Tue,  3 Sep 2024 17:24:59 +0300 you wrote:
> Hi guys,
> 
> This is a proposal for Kconfig improvement regarding the Synopsys
> DesignWare I2C adapter driver.
> 
> Changes since v1:
> 
> [...]

Here is the summary with links:
  - [v2,5/7] RISC-V: configs: enable I2C_DESIGNWARE_CORE with I2C_DESIGNWARE_PLATFORM
    https://git.kernel.org/riscv/c/0175b1d3c6df

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



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

* Re: [PATCH v2 0/7] i2c: designware: Group all DesignWare drivers under a single option
  2024-10-01 11:35 ` patchwork-bot+linux-riscv
@ 2024-10-02  8:45   ` Andi Shyti
  0 siblings, 0 replies; 7+ messages in thread
From: Andi Shyti @ 2024-10-02  8:45 UTC (permalink / raw)
  To: patchwork-bot+linux-riscv
  Cc: Heikki Krogerus, linux-riscv, jarkko.nikula, andriy.shevchenko,
	mika.westerberg, jsd, linux-i2c, linux-kernel, vgupta, linux,
	dinguyen, catalin.marinas, will, alexandre.belloni, tsbogend,
	paul.walmsley, palmer, aou, jiawenwu, mengyuanlou, davem,
	edumazet, kuba, pabeni, netdev, UNGLinuxDriver, linux-mips,
	linux-arm-kernel, linux-snps-arc

Hi,

On Tue, Oct 01, 2024 at 11:35:13AM GMT, patchwork-bot+linux-riscv@kernel.org wrote:
> Hello:
> 
> This patch was applied to riscv/linux.git (fixes)
> by Andi Shyti <andi.shyti@kernel.org>:
> 
> On Tue,  3 Sep 2024 17:24:59 +0300 you wrote:
> > Hi guys,
> > 
> > This is a proposal for Kconfig improvement regarding the Synopsys
> > DesignWare I2C adapter driver.
> > 
> > Changes since v1:
> > 
> > [...]
> 
> Here is the summary with links:
>   - [v2,5/7] RISC-V: configs: enable I2C_DESIGNWARE_CORE with I2C_DESIGNWARE_PLATFORM
>     https://git.kernel.org/riscv/c/0175b1d3c6df

This patch has already been taken and merged to mainline through
i2c.

Andi

> You are awesome, thank you!
> -- 
> Deet-doot-dot, I am a bot.
> https://korg.docs.kernel.org/patchwork/pwbot.html
> 
> 

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

end of thread, other threads:[~2024-10-02  8:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-03 14:24 [PATCH v2 0/7] i2c: designware: Group all DesignWare drivers under a single option Heikki Krogerus
2024-09-03 14:25 ` [PATCH v2 6/7] net: txgbe: Fix I2C Kconfig dependencies Heikki Krogerus
2024-09-03 21:01 ` [PATCH v2 0/7] i2c: designware: Group all DesignWare drivers under a single option Andi Shyti
2024-09-05  8:18   ` Jarkko Nikula
2024-09-09 19:21 ` Andi Shyti
2024-10-01 11:35 ` patchwork-bot+linux-riscv
2024-10-02  8:45   ` Andi Shyti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).