[U-Boot] [PATCH v2 00/67] net: net subsystem ops cleanup
Tomas Hlavacek
tmshlvck at gmail.com
Wed Nov 21 14:22:51 CET 2012
This patchi series is a first stage of preparation of the net subsystem
for the driver model.
The idea of this patchset is:
1) Remove ops .init, .send, .recv and .halt from the eth_device struct.
Add a sparate structure eth_ops which is ready for inclusion to DM core.
2) Replace dynamic init of ops function pointers by static struct.
3) Do minor style cleanup.
There are binary size changes. Example:
before the series applied:
Configuring for colibri_pxa270 board...
text data bss dec hex filename
247910 4412 272348 524670 8017e ./u-boot
and after:
Configuring for colibri_pxa270 board...
text data bss dec hex filename
247878 4432 272368 524678 80186 ./u-boot
Changes in v2:
- Fix hidden drivers in arch/*
- Prove bisectability:
MAKEALL arm (1/67 applied):
Boards compiled: 274
MAKEALL arm (49/67 applied):
Boards compiled: 274
MAKEALL arm (67/67 applied):
Boards compiled: 274
MAKEALL mips (1/67 applied):
Boards compiled: 21
MAKEALL mips (49/67 applied):
Boards compiled: 21
MAKEALL mips (67/67 applied):
Boards compiled: 21
MAKEALL powepc (1/67 applied):
Boards compiled: 623
MAKEALL powepc (49/67 applied):
Boards compiled: 623
MAKEALL powepc (67/67 applied):
Boards compiled: 623
Tomas Hlavacek (67):
net: dm: Pull out ops from struct eth_device
net: 4xx_enet: Pull out init of struct eth_ops
net: altera_tse: Pull out init of struct eth_ops
net: dm9000x: Pull out init of struct eth_ops
net: armada100_fec: Pull out init of struct eth_ops
net: at91_emac: Pull out init of struct eth_ops
net: ax88180: Pull out init of struct eth_ops
net: bfin_mac: Pull out init of struct eth_ops
net: calxedaxgmac: Pull out init of struct eth_ops
net: cs8900: Pull out init of struct eth_ops
net: davinci_emac: Pull out init of struct eth_ops
net: dc2114x: Pull out init of struct eth_ops
net: designware: Pull out init of struct eth_ops
net: dnet: Pull out init of struct eth_ops
net: e1000: Pull out init of struct eth_ops
net: eepro100: Pull out init of struct eth_ops
net: enc28j60: Pull out init of struct eth_ops
net: ep93xx_eth: Pull out init of struct eth_ops
net: ethoc: Pull out init of struct eth_ops
net: fec_mxc: Pull out init of struct eth_ops
net: ftgmac100: Pull out init of struct eth_ops
net: greth.c: Pull out init of struct eth_ops
net: fsl_mcdmafec: Pull out init of struct eth_ops
net: inca-ip_sw: Pull out init of struct eth_ops
net: ks8695eth: Pull out init of struct eth_ops
net: lan91c96: Pull out init of struct eth_ops
net: macb: Pull out init of struct eth_ops
net: mcffec: Pull out init of struct eth_ops
net: mpc5xxx_fec: Pull out init of struct eth_ops
net: mvgbe: Pull out init of struct eth_ops
net: mpc512x_fec: Pull out init of struct eth_ops
net: natsemi: Pull out init of struct eth_ops
net: ne2000: Pull out init of struct eth_ops
net: npe: Pull out init of struct eth_ops
net: ns8382x: Pull out init of struct eth_ops
net: pcnet: Pull out init of struct eth_ops
net: plb2800_eth: Pull out init of struct eth_ops
net: rtl8139: Pull out init of struct eth_ops
net: rtl8169: Pull out init of struct eth_ops
net: smc91111: Pull out init of struct eth_ops
net: smc911x: Pull out init of struct eth_ops
net: tsec: Pull out init of struct eth_ops
net: tsi108_eth: Pull out init of struct eth_ops
net: uli526x: Pull out init of struct eth_ops
net: xilinx_axi_emac: Pull out init of struct eth_ops
net: xilinx_emaclite: Pull out init of struct eth_ops
net: zynq_gem: Pull out init of struct eth_ops
net: xilinx_ll_temac: Pull out init of struct eth_ops
net: sh_eth: Pull out init of struct eth_ops
net: au1x00_eth: Pull out init of struct eth_ops
net: mpc8220_fec: Pull out init of struct eth_ops
net: mpc8260_fec: Pull out init of struct eth_ops
net: mpc8260_scc: Pull out init of struct eth_ops
net: mpc85xx_fec: Pull out init of struct eth_ops
net: mpc8xx_scc: Pull out init of struct eth_ops
net: db64360/mv_eth: Pull out init of struct eth_ops
net: mpc8xx_fec: Pull out init of struct eth_ops
net: db64460/mv_eth: Pull out init of struct eth_ops
net: cpci750/mv_eth: Pull out init of struct eth_ops
net: evb64260: Pull out init of struct eth_ops
net: p3mx/mv_eth: Pull out init of struct eth_ops
net: cpsw: Pull out init of struct eth_ops
net: fm_eth: Pull out init of struct eth_ops
net: ftmac100: Pull out init of struct eth_ops
net: qe: uec: Pull out init of struct eth_ops
net: usb: asix: Pull out init of struct eth_ops
net: usb: smsc95xx: Pull out init of struct eth_ops
arch/mips/cpu/mips32/au1x00/au1x00_eth.c | 14 +++++++++-----
arch/powerpc/cpu/mpc8220/fec.c | 11 +++++++----
arch/powerpc/cpu/mpc8260/ether_fcc.c | 14 +++++++++-----
arch/powerpc/cpu/mpc8260/ether_scc.c | 12 ++++++++----
arch/powerpc/cpu/mpc85xx/ether_fcc.c | 14 +++++++++-----
arch/powerpc/cpu/mpc8xx/fec.c | 12 ++++++++----
arch/powerpc/cpu/mpc8xx/scc.c | 12 ++++++++----
board/Marvell/db64360/mv_eth.c | 12 ++++++++----
board/Marvell/db64460/mv_eth.c | 12 ++++++++----
board/davinci/da8xxevm/da830evm.c | 2 +-
board/esd/cpci750/mv_eth.c | 12 ++++++++----
board/evb64260/eth.c | 13 +++++++++----
board/prodrive/p3mx/mv_eth.c | 12 ++++++++----
drivers/net/4xx_enet.c | 12 ++++++++----
drivers/net/altera_tse.c | 14 +++++++++-----
drivers/net/armada100_fec.c | 12 ++++++++----
drivers/net/at91_emac.c | 14 +++++++++-----
drivers/net/ax88180.c | 13 +++++++++----
drivers/net/bfin_mac.c | 14 +++++++++-----
drivers/net/calxedaxgmac.c | 14 ++++++++++----
drivers/net/cpsw.c | 12 ++++++++----
drivers/net/cs8900.c | 12 ++++++++----
drivers/net/davinci_emac.c | 14 +++++++++-----
drivers/net/dc2114x.c | 14 +++++++++-----
drivers/net/designware.c | 14 +++++++++-----
drivers/net/dm9000x.c | 12 ++++++++----
drivers/net/dnet.c | 14 +++++++++-----
drivers/net/e1000.c | 12 ++++++++----
drivers/net/eepro100.c | 12 ++++++++----
drivers/net/enc28j60.c | 14 +++++++++-----
drivers/net/ep93xx_eth.c | 12 ++++++++----
drivers/net/ethoc.c | 14 +++++++++-----
drivers/net/fec_mxc.c | 15 ++++++++++-----
drivers/net/fm/eth.c | 12 ++++++++----
drivers/net/fsl_mcdmafec.c | 12 ++++++++----
drivers/net/ftgmac100.c | 12 ++++++++----
drivers/net/ftmac100.c | 12 ++++++++----
drivers/net/greth.c | 12 ++++++++----
drivers/net/inca-ip_sw.c | 11 +++++++----
drivers/net/ks8695eth.c | 12 ++++++++----
drivers/net/lan91c96.c | 12 ++++++++----
drivers/net/macb.c | 14 +++++++++-----
drivers/net/mcffec.c | 12 ++++++++----
drivers/net/mpc512x_fec.c | 12 ++++++++----
drivers/net/mpc5xxx_fec.c | 11 +++++++----
drivers/net/mvgbe.c | 14 +++++++++-----
drivers/net/natsemi.c | 12 ++++++++----
drivers/net/ne2000_base.c | 12 ++++++++----
drivers/net/npe/npe.c | 12 ++++++++----
drivers/net/ns8382x.c | 13 +++++++++----
drivers/net/pcnet.c | 13 ++++++++-----
drivers/net/plb2800_eth.c | 11 +++++++----
drivers/net/rtl8139.c | 18 +++++++++++-------
drivers/net/rtl8169.c | 13 +++++++++----
drivers/net/sh_eth.c | 12 ++++++++----
drivers/net/smc91111.c | 14 +++++++++-----
drivers/net/smc911x.c | 12 ++++++++----
drivers/net/tsec.c | 18 +++++++++++-------
drivers/net/tsi108_eth.c | 12 ++++++++----
drivers/net/uli526x.c | 12 ++++++++----
drivers/net/xilinx_axi_emac.c | 15 ++++++++++-----
drivers/net/xilinx_emaclite.c | 12 ++++++++----
drivers/net/xilinx_ll_temac.c | 27 ++++++++++++++++++++-------
drivers/net/zynq_gem.c | 14 +++++++++-----
drivers/qe/uec.c | 12 ++++++++----
drivers/usb/eth/asix.c | 14 +++++++++-----
drivers/usb/eth/smsc95xx.c | 14 +++++++++-----
include/net.h | 17 +++++++++++------
net/eth.c | 16 ++++++++--------
69 files changed, 590 insertions(+), 309 deletions(-)
--
1.7.2.5
More information about the U-Boot
mailing list