Skip to content

gianfar: prevent resource conflict

Renaud Barbier barebox 2 versions – Applied

Status from this message: Applied, thanks

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyApplied
  2. v11 patch 5 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2ppc: gianfar MDIO busesarch/ppc/boards/freescale-p2020rdb/p2020rdb.c arch/ppc/mach-mpc85xx/eth-devices.c arch/ppc/mach-mpc85xx/include/mach/gianfar.h +2 more+162 -581 reply
2/2P2020RDB: update build configurationarch/ppc/configs/p2020rdb_defconfig+3 -10 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/2] gianfar: prevent resource conflict

This patch v2 avoids resource conflicts between the gianfar port instances by substituting dev_request_mem_region for dev_get_mem_region.

In addition, it separates the MDIO buses from their Ethernet device by creating MDIO bus devices to access the external bus and TBI interfaces.

This patch is tested on the P2020RDB for which there are 3 MDIO buses:
- The main MDIO bus "gfar-mdio", linked to port eTSEC1 is used to connect external PHYs for all ports and map the internal TBI interface of eTSEC1.
- The MDIO buses "gfar-tpiphy" map TBI interface registers on all remaining ports.

Renaud Barbier (2):
ppc: gianfar MDIO buses
P2020RDB: update build configuration

 arch/ppc/boards/freescale-p2020rdb/p2020rdb.c |   13 ++-
 arch/ppc/configs/p2020rdb_defconfig           |    4 +-
 arch/ppc/mach-mpc85xx/eth-devices.c           |   44 +++++---
 arch/ppc/mach-mpc85xx/include/mach/gianfar.h  |    4 +
 drivers/net/gianfar.c                         |  146 +++++++++++++++++++------
 drivers/net/gianfar.h                         |   13 ++-
 6 files changed, 165 insertions(+), 59 deletions(-)

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox