[PATCH 0/2] net: smc911x: Determine bus width at runtime

Andre Przywara andre.przywara at arm.com
Mon Jun 28 15:30:29 CEST 2021


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



More information about the U-Boot mailing list