linux_dsm_epyc7002/drivers/net/ethernet/freescale
Timur Tabi afae5ad78b net/fsl_pq_mdio: streamline probing of MDIO nodes
Make the device tree probe function more data-driven, so that it no longer
searches the 'compatible' property more than once.  The of_device_id[] array
allows for per-entry private data, so we use that to store details about each
type of node that the driver supports.  This removes the need to check the
'compatible' property inside the probe function.

The driver supports four types on MDIO devices:

1) Gianfar MDIO nodes that only map the MII registers
2) Gianfar MDIO nodes that map the full MDIO register set
3) eTSEC2 MDIO nodes (which map the full MDIO register set)
4) QE MDIO nodes (which map only the MII registers)

Gianfar, eTSEC2, and QE have different mappings for the TBIPA register, which
is needed to initialize the TBI PHY.  In addition, the QE needs a special
hack because of the way the device tree is ordered.

All of this information is encapsulated in the fsl_pq_mdio_data structure,
so when an MDIO node is probed, per-device data and functions are used
to determine how to initialize the device.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-08-30 13:29:32 -04:00
..
fs_enet drivers/net/ethernet/freescale/fs_enet: fix error return code 2012-08-14 17:00:56 -07:00
fec_mpc52xx_phy.c freescale: Move the Freescale drivers 2011-08-12 00:22:12 -07:00
fec_mpc52xx.c fec_mpc52xx: fix timestamp filtering 2012-06-02 17:09:08 -04:00
fec_mpc52xx.h drivers/net: fix up stale paths from driver reorg 2012-01-30 12:54:40 -05:00
fec.c drivers/net/ethernet: Fix (nearly-)kernel-doc comments for various functions 2012-07-10 23:13:46 -07:00
fec.h net: fsl: fec: handle 10Mbps speed in RMII mode 2012-01-12 20:05:28 -08:00
fsl_pq_mdio.c net/fsl_pq_mdio: streamline probing of MDIO nodes 2012-08-30 13:29:32 -04:00
gianfar_ethtool.c gianfar_ethtool: coding style and whitespace cleanups 2012-06-05 15:38:40 -07:00
gianfar_ptp.c gianfar: Support the get_ts_info ethtool method. 2012-04-04 05:28:45 -04:00
gianfar_sysfs.c drivers/net: fix up stale paths from driver reorg 2012-01-30 12:54:40 -05:00
gianfar.c net/freescale: do not export any functions from fsl_pq_mdio.c 2012-08-30 13:29:31 -04:00
gianfar.h gianfar: Support the get_ts_info ethtool method. 2012-04-04 05:28:45 -04:00
Kconfig net/fsl: introduce Freescale 10G MDIO driver 2012-08-24 12:42:42 -04:00
Makefile net/fsl: introduce Freescale 10G MDIO driver 2012-08-24 12:42:42 -04:00
ucc_geth_ethtool.c ucc_geth: Support the get_ts_info ethtool method. 2012-04-04 05:28:48 -04:00
ucc_geth.c net/freescale: do not export any functions from fsl_pq_mdio.c 2012-08-30 13:29:31 -04:00
ucc_geth.h net: ucc_geth, increase no. of HW RX descriptors 2012-05-02 20:09:04 -04:00
xgmac_mdio.c net/fsl: introduce Freescale 10G MDIO driver 2012-08-24 12:42:42 -04:00