linux_dsm_epyc7002/drivers/net
Florian Fainelli 87aa9f9c61 net: phy: consolidate PHY reset in phy_init_hw()
There are quite a lot of drivers touching a PHY device MII_BMCR
register to reset the PHY without taking care of:

1) ensuring that BMCR_RESET is cleared after a given timeout
2) the PHY state machine resuming to the proper state and re-applying
potentially changed settings such as auto-negotiation

Introduce phy_poll_reset() which will take care of polling the MII_BMCR
for the BMCR_RESET bit to be cleared after a given timeout or return a
timeout error code.

In order to make sure the PHY is in a correct state, phy_init_hw() first
issues a software reset through MII_BMCR and then applies any fixups.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-12-09 20:38:59 -05:00
..
appletalk
arcnet
bonding Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2013-12-09 20:20:14 -05:00
caif
can
cris
dsa
ethernet net: bfin_mac: do not reset PHY after phy_start() 2013-12-09 20:38:59 -05:00
fddi net/fddi: Replace local macro with PCI standard macro 2013-12-06 12:51:40 -05:00
hamradio drivers/net/*: Fix FSF address in file headers 2013-12-06 12:37:55 -05:00
hippi
hyperv drivers/net/*: Fix FSF address in file headers 2013-12-06 12:37:55 -05:00
ieee802154
irda irda: vlsi_ir: remove unnecessary pci_set_drvdata() 2013-12-09 18:09:28 -05:00
phy net: phy: consolidate PHY reset in phy_init_hw() 2013-12-09 20:38:59 -05:00
plip
ppp drivers/net/*: Fix FSF address in file headers 2013-12-06 12:37:55 -05:00
slip
team
usb usb: Fix FSF address in file headers 2013-12-06 12:37:55 -05:00
vmxnet3
wan wan: wanxl: remove unnecessary pci_set_drvdata() 2013-12-09 18:09:29 -05:00
wimax
wireless Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless 2013-12-06 09:50:45 -05:00
xen-netback xen-netback: improve guest-receive-side flow control 2013-12-09 20:33:12 -05:00
dummy.c
eql.c
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macvlan.c macvlan: Support creating macvtaps from macvlans 2013-12-05 19:59:02 -05:00
macvtap.c macvtap: remove useless codes in macvtap_aio_read() and macvtap_recvmsg() 2013-12-09 20:35:42 -05:00
Makefile
mdio.c
mii.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tun.c tun: remove useless codes in tun_chr_aio_read() and tun_recvmsg() 2013-12-09 20:36:08 -05:00
veth.c
virtio_net.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2013-12-09 20:20:14 -05:00
vxlan.c
xen-netfront.c