Skip to content

RFC net: sh_eth: modify for both modules

Yoshihiro Shimoda linux-sh netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4net: sh_eth: modify the definitions of registerarch/sh/include/asm/sh_eth.h drivers/net/sh_eth.c drivers/net/sh_eth.h+537 -4153 replies
2/4net: sh_eth: remove the SH_TSU_ADDRdrivers/net/sh_eth.c drivers/net/sh_eth.h+12 -192 replies
3/4net: sh_eth: remove almost #ifdef of SH7763drivers/net/sh_eth.c drivers/net/sh_eth.h+47 -390 replies
4/4net: sh_eth: add support for SH7757's GETHERdrivers/net/sh_eth.c+135 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC, PATCH 0/4] net: sh_eth: modify for both modules

This current driver supports ETHER and GETHER. But we cannot use them at same time because the defination of registers is hardcoded by #ifdef in sh_eth.h.
The patches modify the defination to arrays of const. Then we can choose the array by platform_device's data. The patches also modify for GETHER. The current driver used the "#ifdef CONFIG_CPU_SUBTYPE_SH7763". The patches remove it and check by other method for GETHER.