Stefan Roese a8c3eca433 net: phy: marvell: Fix problem with phy_reset() clearing BMCR
With commit a058052c [net: phy: do not read configuration register on
reset], phy_reset() will clear the BMCR register. Resulting in bit 12
being cleared (A/N enable). This leads to autonegotiation link problems,
at least on the Marvell Armada ClearFog board. I suspect that other
boards using this driver will be affected as well.

At the of m88e1111s_config(), phy_reset() is called. This is not needed
for the PHY to load the changed configuration, as phy_reset() is called
a few lines before already. So lets call genphy_restart_aneg() here
instead to start the AN correctly.

Tested on clearfog.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Stefan Agner <stefan@agner.ch>
Cc: Hao Zhang <hzhang@ti.com>
Cc: Michal Simek <monstr@monstr.eu>
Cc: Andy Fleming <afleming@gmail.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
2016-02-18 11:32:03 -06:00
..
2015-11-02 10:38:00 +09:00
2016-02-06 12:00:59 +01:00
2016-01-28 21:01:23 -07:00
2016-02-06 12:00:59 +01:00
2016-01-13 21:05:19 -05:00
2016-01-27 15:32:05 +01:00
2016-02-06 12:00:59 +01:00
2016-02-05 12:47:21 +08:00
2016-01-29 13:47:38 -05:00
2016-02-08 10:24:18 -05:00
2016-02-06 12:00:59 +01:00
2016-02-14 17:03:42 +09:00
2016-01-21 20:42:36 -07:00