Skip to content

smc91x: request bus width using platform data V2

Magnus Damm netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4smc91x: pass along private data V2drivers/net/smc91x.c drivers/net/smc91x.h+280 -2752 replies
2/4smc91x: introduce platform data flags V2drivers/net/smc91x.c drivers/net/smc91x.h include/linux/smc91x.h+77 -271 reply
3/4smc91x: add insw/outsw to default config V2drivers/net/smc91x.h+2 -01 reply
4/4smc91x: make superh use default config V2drivers/net/smc91x.h+0 -301 reply

Reviews trailers per patch

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

PatchNicolas Pitre
1/4A-b
2/4A-b
3/4A-b
4/4A-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 00/04] smc91x: request bus width using platform data V2

These patches make it possible to request bus width in the platform data.

Instead of keep on updating smc91x.h with board specific configuration, use platform data to pass along bus width and irq flags to the driver. This change is designed to be backwards-compatible, so all boards configured in the header file should just work as usual.

[PATCH 01/04] smc91x: pass along private data V2 [PATCH 02/04] smc91x: introduce platform data flags V2 [PATCH 03/04] smc91x: add insw/outsw to default config V2 [PATCH 04/04] smc91x: make superh use default config V2

Tested with and without platform data on a SuperH sh7722 MigoR board.

V2 changes the macro argument name to "lp" and adds SMC_DYNAMIC_BUS_CONFIG.

---

 drivers/net/smc91x.c   |  335 +++++++++++++++++++++++++---------------------
 drivers/net/smc91x.h   |  343 +++++++++++++++++++++++-------------------------
 include/linux/smc91x.h |   13 +
 3 files changed, 359 insertions(+), 332 deletions(-)