]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: Abstract mv88e6165 PHY operations
authorAndrew Lunn <andrew@lunn.ch>
Tue, 24 Jan 2017 13:53:47 +0000 (14:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Jan 2017 20:33:50 +0000 (15:33 -0500)
commit30b9595328bfab252b775b738dca48ae301f42e7
tree474d1e1f3a9a80f0bd6f1845cd17fadd895c5496
parenta54503f78c2b345911ba947dbc2a4e520d308518
net: dsa: mv88e6xxx: Abstract mv88e6165 PHY operations

The mv88e6165 family has the internal PHYs mapped directly onto the
SMI register space as the switch. So the registers can be read
directly. Put a wrapper around this, in preparation for changing the
signature in order to support the external MDIO bus of the 6390.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c