All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] net: smc911x: Determine bus width at runtime
@ 2021-06-28 13:30 Andre Przywara
  2021-06-28 13:30 ` [PATCH 1/2] net: smc911x: Drop redundant CONFIG_SMC911X_16_BIT Kconfig symbol Andre Przywara
  2021-06-28 13:30 ` [PATCH 2/2] net: smc911x: Determine bus width at runtime Andre Przywara
  0 siblings, 2 replies; 7+ messages in thread
From: Andre Przywara @ 2021-06-28 13:30 UTC (permalink / raw)
  To: Joe Hershberger, Ramon Fried; +Cc: u-boot, Marek Vasut

The SMC911x Ethernet MACs can be integrated using a 16 or 32-bit bus.
The driver needs to know about this choice, which is the reason for us
having a Kconfig symbol for that.

Now this bus width is already described using a devicetree property, and
since the driver is DM compliant and is using the DT now, we should query
this at runtime. We leave the Kconfig choice around, in case the DT is
missing this property.

Patch 1/2 simplifies the current Kconfig choice, to be a single symbol
instead of a two-options choice. This helps with patch 2/2, which queries
the DT to learn about the bus width, falling back to the Kconfig symbol
if the property cannot be found.

Cheers,
Andre

Andre Przywara (2):
  net: smc911x: Drop redundant CONFIG_SMC911X_16_BIT Kconfig symbol
  net: smc911x: Determine bus width at runtime

 drivers/net/Kconfig   | 17 +++++------------
 drivers/net/smc911x.c | 41 ++++++++++++++++++++---------------------
 2 files changed, 25 insertions(+), 33 deletions(-)

-- 
2.17.5


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

end of thread, other threads:[~2021-06-29 22:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-28 13:30 [PATCH 0/2] net: smc911x: Determine bus width at runtime Andre Przywara
2021-06-28 13:30 ` [PATCH 1/2] net: smc911x: Drop redundant CONFIG_SMC911X_16_BIT Kconfig symbol Andre Przywara
2021-06-29 11:18   ` Ramon Fried
2021-06-29 22:14     ` Ramon Fried
2021-06-28 13:30 ` [PATCH 2/2] net: smc911x: Determine bus width at runtime Andre Przywara
2021-06-29 11:18   ` Ramon Fried
2021-06-29 22:14     ` Ramon Fried

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.