]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: smsc911x: Reset PHY during initialization
authorPavel Fedin <p.fedin@samsung.com>
Fri, 13 Nov 2015 06:46:59 +0000 (09:46 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Nov 2015 19:43:14 +0000 (14:43 -0500)
commitcd998ecd2f031cfdb88436ea12f7c6d0b09c7a80
treefccaae6ce5b2fbeca7066aea173402aaab829ea7
parentc3d4c682c240595c3637c552dc1afa985bc6d382
net: smsc911x: Reset PHY during initialization

On certain hardware after software reboot the chip may get stuck and fail
to reinitialize during reset. This can be fixed by ensuring that PHY is
reset too.

Old PHY resetting method required operational MDIO interface, therefore
the chip should have been already set up. In order to be able to function
during probe, it is changed to use PMT_CTRL register.

The problem could be observed on SMDK5410 board.

Signed-off-by: Pavel Fedin <p.fedin@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/smsc/smsc911x.c