Skip to content

net: smc911x: Determine bus width at runtime

Andre Przywara u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net: smc911x: Drop redundant CONFIG_SMC911X_16_BIT Kconfig symboldrivers/net/Kconfig drivers/net/smc911x.c+7 -222 replies
2/2net: smc911x: Determine bus width at runtimedrivers/net/smc911x.c+20 -132 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchRamon Fried
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

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(-)
Signature · 1 line
2.17.5