net: phy: at803x: only the AT8030 needs a hardware reset on link change
authorTimur Tabi <timur@codeaurora.org>
Tue, 26 Apr 2016 17:44:18 +0000 (12:44 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Apr 2016 20:48:21 +0000 (16:48 -0400)
commita05d7dfc51417f6437ff35e4682fe547fb665286
treef23c2ca79d397de92c70af4cdcea32947884cbb3
parent956a7ffe00b4e8b75d98881ae4d0bd1b580648cb
net: phy: at803x: only the AT8030 needs a hardware reset on link change

Commit 13a56b44 ("at803x: Add support for hardware reset") added a
work-around for a hardware bug on the AT8030.  However, the work-around
was being called for all 803x PHYs, even those that don't need it.
Function at803x_link_change_notify() checks to make sure that it only
resets the PHY on the 8030, but it makes more sense to not call that
function at all if it isn't needed.

Signed-off-by: Timur Tabi <timur@codeaurora.org>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/at803x.c