summaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/mdio-thunder.c
diff options
context:
space:
mode:
authorDavid Daney <david.daney@cavium.com>2016-03-11 18:53:10 +0100
committerDavid S. Miller <davem@davemloft.net>2016-03-14 20:27:22 +0100
commit1eefee901fca0208b8a56f20cdc134e2b8638ae7 (patch)
treee8f32fb9b65e392349d1462c45d0f527c8c2f3d0 /drivers/net/phy/mdio-thunder.c
parentnet: thunderx: Cleanup PHY probing code. (diff)
downloadlinux-1eefee901fca0208b8a56f20cdc134e2b8638ae7.tar.xz
linux-1eefee901fca0208b8a56f20cdc134e2b8638ae7.zip
phy: mdio-octeon: Refactor into two files/modules
A follow-on patch uses PCI probing to find the Thunder MDIO hardware. In preparation for this, split out the common code into a new file mdio-cavium.c, which will be used by both the existing OCTEON driver, and the new Thunder PCI based driver. As part of the refactoring simplify the struct cavium_mdiobus by removing fields that are only ever used in the probe function and can just as well be local variables. Use readq/writeq in preference to readq_relaxed/writeq_relaxed as the relaxed form was an optimization for an early chip revision, and the MDIO drivers are not performance bottlenecks that need optimization in the first place. Signed-off-by: David Daney <david.daney@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions