split out emac cpdma and mdio for reuse
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest posting 2/210 patches 1 replyIn review
- v4 posting 1/210 patches 0 repliesSuperseded
- v310 patches 18 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 10 patches | 7 replies | Superseded | |
| v1 | 8 patches | 10 replies | Superseded |
Changes in v4 from the cover letter
1. allow forced 100/full mode instead of phy auto-detect
2. specify phy_id on boards that had a phy_mask defined earlier
3. requeue cpdma descriptors when EOQ at submit
4. use calculated mdio bus access times instead of hardcoded delays
5. work around emac soft-reset impact on mdio controller state
6. extend register dumps to include cpdma registers
7. updated sign offs and acks
Patches in v4 posting 2/2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | net: davinci_emac: separate out davinci mdiodrivers/ drivers/ drivers/ +1 more | +490 | 0 replies | |
| 2/10 | davinci: add mdio platform devicesarch/ arch/ arch/ +4 more | +92 | 0 replies | |
| 3/10 | omap: add mdio platform devicesarch/ | +26 | 0 replies | |
| 4/10 | net: davinci_emac: switch to new mdiodrivers/ drivers/ include/ | +40 | 0 replies | |
| 5/10 | davinci: cleanup mdio arch code and switch to phy_idarch/ arch/ arch/ +12 more | +16 | 0 replies | |
| 6/10 | omap: cleanup unused davinci mdio arch codearch/ | +0 | 0 replies | |
| 7/10 | net: davinci_emac: cleanup unused mdio emac codedrivers/ include/ | +0 | 0 replies | |
| 8/10 | net: davinci_emac: separate out cpdma codedrivers/ drivers/ drivers/ +1 more | +1084 | 0 replies | |
| 9/10 | net: davinci_emac: switch to new cpdma layerdrivers/ | +164 | 0 replies | |
| 10/10 | net: davinci_emac: cleanup unused cpdma codedrivers/ | +0 | 0 replies |
Reviews trailers per patch
6 of 10 patches have a Reviewed-by or Acked-by.
| Patch | Michael Williamson | Caglar Akyuz | David S. Miller | Tony Lindgren |
|---|---|---|---|---|
| 1/10 | T-b | T-b | ||
| 2/10 | T-b | T-b | A-b | |
| 3/10 | A-b | A-b | ||
| 4/10 | T-b | T-b | A-b | |
| 5/10 | T-b | T-b | ||
| 6/10 | A-b | A-b | ||
| 7/10 | T-b | T-b | A-b | |
| 8/10 | T-b | T-b | ||
| 9/10 | T-b | T-b | ||
| 10/10 | T-b | T-b | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.
Cover letter [PATCH v4 00/10] split out emac cpdma and mdio for reuse
Davinci's EMAC device has an in-built MDIO controller and a CPDMA engine. These hardware modules are not restricted to EMAC device alone. For example, CPSW3G (3-port gigabit ethernet switch) hardware uses these very same modules internally. This patch series separates out EMAC's MDIO and CPDMA functionality, allowing these individual pieces to be reused across TI hardware.
This patch series has been broadly organized as follows:
MDIO:
- Add new functionality
netdev: separate out davinci mdio controller code
- Hookup new functionality
davinci: add mdio platform devices
omap: add mdio platform devices
netdev: switch davinci emac to new mdio driver
- Cleanup left over cruft
davinci: cleanup unused davinci mdio arch code
omap: cleanup unused davinci mdio arch code
netdev: cleanup unused davinci mdio emac code
CPDMA:
- Add new functionality
netdev: separate out davinci cpdma controller code
- Hookup new functionality
netdev: switch davinci emac to new cpdma layer
- Cleanup left over cruft
netdev: cleanup unused davinci emac cpdma code
This series has been tested on dm365 and tnetv107x (with additional cpsw patches) hardware. Although am3517 (omap) board support code has been updated as needed, emac does not work on this platform.
Changes from v1:
1. Fixed memory leak in cpdma_chan_create() failure case
2. Included new omap patches for am3517, avoids build breakage
Changes from v2:
1. Updated series to include mityomapl138 board
2. Minor white-space fixes
Changes from v3 (rolled in "post cpdma/mdio refactoring fixes" series):
1. allow forced 100/full mode instead of phy auto-detect
2. specify phy_id on boards that had a phy_mask defined earlier
3. requeue cpdma descriptors when EOQ at submit
4. use calculated mdio bus access times instead of hardcoded delays
5. work around emac soft-reset impact on mdio controller state
6. extend register dumps to include cpdma registers
7. updated sign offs and acks
Cyril Chemparathy (10):
net: davinci_emac: separate out davinci mdio
davinci: add mdio platform devices
omap: add mdio platform devices
net: davinci_emac: switch to new mdio
davinci: cleanup mdio arch code and switch to phy_id
omap: cleanup unused davinci mdio arch code
net: davinci_emac: cleanup unused mdio emac code
net: davinci_emac: separate out cpdma code
net: davinci_emac: switch to new cpdma layer
net: davinci_emac: cleanup unused cpdma code
arch/arm/mach-davinci/board-da830-evm.c | 7 +- arch/arm/mach-davinci/board-da850-evm.c | 7 +- arch/arm/mach-davinci/board-dm365-evm.c | 7 +- arch/arm/mach-davinci/board-dm644x-evm.c | 8 +- arch/arm/mach-davinci/board-dm646x-evm.c | 7 +- arch/arm/mach-davinci/board-mityomapl138.c | 8 +- arch/arm/mach-davinci/board-neuros-osd2.c | 7 +- arch/arm/mach-davinci/board-sffsdr.c | 7 +- arch/arm/mach-davinci/devices-da8xx.c | 31 +- arch/arm/mach-davinci/dm365.c | 23 +- arch/arm/mach-davinci/dm644x.c | 23 +- arch/arm/mach-davinci/dm646x.c | 22 +- arch/arm/mach-davinci/include/mach/dm365.h | 2 +- arch/arm/mach-davinci/include/mach/dm644x.h | 2 +- arch/arm/mach-davinci/include/mach/dm646x.h | 2 +- arch/arm/mach-omap2/board-am3517evm.c | 31 +- drivers/net/Kconfig | 21 + drivers/net/Makefile | 2 + drivers/net/davinci_cpdma.c | 965 +++++++++++++++++++ drivers/net/davinci_cpdma.h | 108 +++ drivers/net/davinci_emac.c | 1338 ++++----------------------- drivers/net/davinci_mdio.c | 475 ++++++++++ include/linux/davinci_emac.h | 16 +- 23 files changed, 1894 insertions(+), 1225 deletions(-) create mode 100644 drivers/net/davinci_cpdma.c create mode 100644 drivers/net/davinci_cpdma.h create mode 100644 drivers/net/davinci_mdio.c