diff options
author | Jeremy Linton <jeremy.linton@arm.com> | 2016-09-01 15:15:07 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-02 17:28:33 -0700 |
commit | aea95dd52db436f406f3f45a455a710774a3a210 (patch) | |
tree | f7cc61210275c3f639957fb6c29b4c2a16583b77 /usr | |
parent | net: smsc911x: Remove multiple exit points from smsc911x_open (diff) | |
download | linux-dev-aea95dd52db436f406f3f45a455a710774a3a210.tar.xz linux-dev-aea95dd52db436f406f3f45a455a710774a3a210.zip |
net: smsc911x: Fix register_netdev, phy startup, driver unload ordering
Move phy startup/shutdown into the smsc911x_open/stop routines. This
allows the module to be unloaded because phy_connect_direct is no longer
always holding the module use count. This one change also resolves a
number of other problems.
The link status of a downed interface no longer reflects a stale state.
Errors caused by the net device being opened before the mdio/phy was
configured. There is also a potential power savings as the phy's don't
remain powered when the interface isn't running.
Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions