[U-Boot] [PATCH 0/8] net: Split out the Ethernet uclass into its own file

Simon Glass sjg at chromium.org
Sun Jan 17 22:51:54 CET 2016


Every other uclass is in its own file. It makes sense to put the Ethernet
uclass code into its own file too. The result is less code in each file, and
it becomes easier to see which code is related to driver model.

This series creates a new common file to hold the common code, moves the
driver-model into its own file and tidies up.

Some boards use PCI to obtain Ethernet. With driver model, unless this is
mentioned in the device tree, the Ethernet device will not be present on
initial startup. So we need to probe PCI just in case there is a device
there.


Simon Glass (8):
  tegra: Report errors from PCI init
  net: Don't call board/cpu_eth_init() with driver model
  net: Move common init into a new eth_common.c file
  net: Move environment functions to the common file
  net: Move remaining common functions to eth_common.c
  net: Move driver-model code into its own file
  net: Rename eth.c to eth_lecacy.c
  net: Probe PCI before looking for ethernet devices

 drivers/pci/pci_tegra.c     |   6 +-
 net/Makefile                |   7 +-
 net/{eth.c => eth-uclass.c} | 601 +-------------------------------------------
 net/eth_common.c            | 166 ++++++++++++
 net/eth_internal.h          |  40 +++
 net/eth_legacy.c            | 439 ++++++++++++++++++++++++++++++++
 6 files changed, 664 insertions(+), 595 deletions(-)
 rename net/{eth.c => eth-uclass.c} (50%)
 create mode 100644 net/eth_common.c
 create mode 100644 net/eth_internal.h
 create mode 100644 net/eth_legacy.c

-- 
2.6.0.rc2.230.g3dd15c0



More information about the U-Boot mailing list