]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: phy: do not read configuration register on reset
authorStefan Agner <stefan@agner.ch>
Wed, 9 Dec 2015 19:21:25 +0000 (11:21 -0800)
committerJoe Hershberger <joe.hershberger@ni.com>
Thu, 28 Jan 2016 18:22:00 +0000 (12:22 -0600)
commita058052c358c3ecf5f394ff37def6a45eb26768c
tree84f7ba0446f0a1a491c8181d43100ee894cb793a
parent077678eb0c226e52a1f90edabd3369ab26065b32
net: phy: do not read configuration register on reset

When doing a software reset, the reset flag should be written without
other bits set. Writing the current state will lead to restoring the
state of the PHY (e.g. Powerdown), which is not what is expected from
a software reset.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Acked-by: Michael Welling <mwelling@ieee.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/phy/phy.c