net: smc911x: Determine bus width at runtime
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | net: smc911x: Drop redundant CONFIG_SMC911X_16_BIT Kconfig symboldrivers/ drivers/ | +7 | 2 replies | |
| 2/2 | net: smc911x: Determine bus width at runtimedrivers/ | +20 | 2 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Ramon Fried |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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