]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: dp83867: Fix initialization of PHYCR register
authorStefan Hauser <stefan@shauser.net>
Fri, 1 Jul 2016 20:35:03 +0000 (22:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Jul 2016 18:48:58 +0000 (14:48 -0400)
commit6c825b07e9734dace798e131c12cda652a21492e
treeb879e2002b06d030368ce56df408d883b6514d4e
parent675bdd9c43637f272cbc57f626dc47b2fd36f950
net: phy: dp83867: Fix initialization of PHYCR register

When initializing the PHY control register, the FIFO depth bits are
written without reading the previous register value, i.e. all other
bits are overwritten with zero. This disables automatic MDI-X
configuration, which is enabled by default. Fix initialization by doing
a read/modify/write operation.

Signed-off-by: Stefan Hauser <stefan@shauser.net>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/dp83867.c