diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2013-12-07 00:53:55 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-09 20:59:25 -0500 |
commit | 5824d2d16d39a9c57aa3bacf955fbd0c2134061f (patch) | |
tree | 0138f904b7d3f7c93cfbdab929d9d7605a80e3a4 /include/linux/ipv6.h | |
parent | 2c722fe1c821a100ca87fcc36e90a9bceb497c7c (diff) | |
download | talos-op-linux-5824d2d16d39a9c57aa3bacf955fbd0c2134061f.tar.gz talos-op-linux-5824d2d16d39a9c57aa3bacf955fbd0c2134061f.zip |
bgmac: connect to PHY and make use of PHY device
We were already registering MDIO bus, but we were not connecting bgmac
to the PHY. Add proper call and implement adjust link function to switch
MAC into requested state.
At the same time it's possible to drop our internal PHY management.
This is a "standard" PHY, so the "Generic PHY" driver works perfectly
fine with this. Don't duplicate the code.
Finally make use of phy_ethtool_[gs]set functions instead implementing
them from scratch.
This change was successfully tested on BCM5357. I was able to
autonegotiate 1000Mb/s full duplex, as well as force any of the
10/100/1000 half/full modes.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/ipv6.h')
0 files changed, 0 insertions, 0 deletions