Skip to content

net: phy: split the mscc driver

Antoine Tenart lkml netdev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 1 replyIn review
  2. v23 patches 2 repliesSuperseded
  3. v13 patches 4 repliesSuperseded

Changes in v3 from the cover letter

- Defined inline functions as static inline.
- Fixed a locking issue reported by Kbuild.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3net: phy: move the mscc driver to its own directorydrivers/net/phy/Makefile drivers/net/phy/mscc/Makefile drivers/net/phy/mscc/mscc.c +3 more+6 -10 replies
2/3net: phy: mscc: split the driver into separate filesdrivers/net/phy/mscc/Makefile drivers/net/phy/mscc/mscc.h drivers/net/phy/mscc/mscc_macsec.c +2 more+1515 -14620 replies
3/3net: phy: mscc: fix header defines and descriptionsdrivers/net/phy/mscc/mscc_fc_buffer.h drivers/net/phy/mscc/mscc_mac.h drivers/net/phy/mscc/mscc_macsec.h+12 -120 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchAndrew Lunn
1/3R-b
2/3
3/3R-b

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

Read the v3 thread

Cover letter [PATCH net-next v3 0/3] net: phy: split the mscc driver

Hello,

This is a proposal to split the MSCC PHY driver, as its code base grew a lot lately (it's already 3800+ lines). It also supports features requiring a lot of code (MACsec), which would gain in being split from the driver core, for readability and maintenance. This is also done as other features should be coming later, which will also need lots of code addition.

This series shouldn't change the way the driver works.

I checked, and there were no patch pending on this driver. This change was done on top of all the modifications done on this driver in net-next.

Thanks,
Antoine

Since v2:
- Defined inline functions as static inline.
- Fixed a locking issue reported by Kbuild.

Since v1:
- Moved more definitions into the mscc_macsec.h header.

Antoine Tenart (3):
net: phy: move the mscc driver to its own directory
net: phy: mscc: split the driver into separate files
net: phy: mscc: fix header defines and descriptions

 drivers/net/phy/Makefile                     |    2 +-
 drivers/net/phy/mscc/Makefile                |   10 +
 drivers/net/phy/mscc/mscc.h                  |  392 +++++
 drivers/net/phy/{ => mscc}/mscc_fc_buffer.h  |    8 +-
 drivers/net/phy/{ => mscc}/mscc_mac.h        |    8 +-
 drivers/net/phy/mscc/mscc_macsec.c           | 1051 +++++++++++++
 drivers/net/phy/{ => mscc}/mscc_macsec.h     |   66 +-
 drivers/net/phy/{mscc.c => mscc/mscc_main.c} | 1469 +-----------------
 8 files changed, 1532 insertions(+), 1474 deletions(-)
 create mode 100644 drivers/net/phy/mscc/Makefile
 create mode 100644 drivers/net/phy/mscc/mscc.h
 rename drivers/net/phy/{ => mscc}/mscc_fc_buffer.h (95%)
 rename drivers/net/phy/{ => mscc}/mscc_mac.h (98%)
 create mode 100644 drivers/net/phy/mscc/mscc_macsec.c
 rename drivers/net/phy/{ => mscc}/mscc_macsec.h (90%)
 rename drivers/net/phy/{mscc.c => mscc/mscc_main.c} (60%)
Signature · 1 line
2.24.1