]> git.baikalelectronics.ru Git - kernel.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)
commit08ccdccdde2c376a9b6f906c69480e2175463d74
tree76ded30520eb9cd0c39dd78abe274b5440250ff4
parent042899e64409bb08a8cf6d56ee5208b68cd7ddf3
mvneta: use inband status only when explicitly enabled

The commit 8218f4d4e971 ("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