]> git.karo-electronics.de Git - linux-beck.git/commit
mvneta: use inband status only when explicitly enabled
authorStas Sergeev <stsp@list.ru>
Tue, 21 Jul 2015 00:49:58 +0000 (17:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jul 2015 23:12:55 +0000 (16:12 -0700)
commitf8af8e6eb95093d5ce5ebcc52bd1929b0433e172
tree76ded30520eb9cd0c39dd78abe274b5440250ff4
parent4cba5c2103657d43d0886e4cff8004d95a3d0def
mvneta: use inband status only when explicitly enabled

The commit 898b2970e2c9 ("mvneta: implement SGMII-based in-band link state
signaling") implemented the link parameters auto-negotiation unconditionally.
Unfortunately it appears that some HW that implements SGMII protocol,
doesn't generate the inband status, so it is not possible to auto-negotiate
anything with such HW.

This patch enables the auto-negotiation only if explicitly requested with
the 'managed' DT property.

This patch fixes the following regression:
https://lkml.org/lkml/2015/7/8/865

Signed-off-by: Stas Sergeev <stsp@users.sourceforge.net>
CC: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
CC: netdev@vger.kernel.org
CC: linux-kernel@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c