OpenCloudOS-Kernel/drivers/net/dsa
Florian Fainelli b8c6cd1d31 net: dsa: bcm_sf2: do not use indirect reads and writes for 7445E0
7445E0 contains an ECO which disconnected the internal SF2 pseudo-PHY which was
known to conflict with the external pseudo-PHY of BCM53125 switches. This
motivated the need to utilize the internal SF2 MDIO controller via indirect
register reads/writes to control external Broadcom switches due to this address
conflict (both responded at address 30d).

For 7445E0, the internal pseudo-PHY of the SF2 switch got disconnected, and as
a consequence this prevents the internal SF2 MDIO bus controller from reading
data (reads back everything as 0) since the MDI line is tied low.

Fix this by making the indirect register reads and writes conditional to
7445D0, on 7445E0 we can utilize the SWITCH_MDIO controller (backed by
mdio-unimac and not the DSA created slave MII bus).

We utilize of_machine_is_compatible() here since this is the only way for use
to differentiate between these two chips in a way that does not violate layers
or becomes (too) vendor-specific.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-07-20 16:47:30 -07:00
..
Kconfig net: dsa: mv88e6171: Add other members of the family 2015-05-09 16:05:53 -04:00
Makefile net: dsa: Add support for Marvell 88E6352 2014-10-30 14:54:10 -04:00
bcm_sf2.c net: dsa: bcm_sf2: do not use indirect reads and writes for 7445E0 2015-07-20 16:47:30 -07:00
bcm_sf2.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2015-03-03 21:16:48 -05:00
bcm_sf2_regs.h net: dsa: bcm_sf2: add HW bridging support 2015-02-25 17:03:38 -05:00
mv88e6xxx.c net: dsa: mv88e6xxx: fix fid_mask when leaving bridge 2015-07-20 12:44:14 -07:00
mv88e6xxx.h dsa: mv88x6xxx: Add debugfs interface for scratch registers 2015-06-23 06:33:42 -07:00
mv88e6060.c net: dsa: Report known silicon revisions for Marvell 88E6060 2014-10-30 14:54:10 -04:00
mv88e6123_61_65.c net: dsa: Converting remaining registers to mnemonics 2015-05-09 16:05:53 -04:00
mv88e6131.c net: dsa: mv88e6131: Add support for mv88e6185 2015-05-09 16:05:53 -04:00
mv88e6171.c net: dsa: mv88e6171: Add other members of the family 2015-05-09 16:05:53 -04:00
mv88e6352.c net: dsa: Move mv88e6172 support into mv88e6352 family driver 2015-05-09 16:05:53 -04:00