]> git.baikalelectronics.ru Git - kernel.git/commit
phy: unmask link partner capabilities
authorCristian Bercaru <cristian.bercaru@freescale.com>
Tue, 25 Feb 2014 08:22:48 +0000 (10:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Feb 2014 23:39:09 +0000 (18:39 -0500)
commita633dfb16fec617cab312369b2bc4599be43ffd3
tree70b19b089b0c17e765544cf28bce98e4c913263b
parenta38c68b67337839625f6c9190579cc716a021474
phy: unmask link partner capabilities

Masking the link partner's capabilities with local capabilities can be
misleading in autonegotiation scenarios such as PAUSE frame
autonegotiation.
This patch calculates the join between the local capabilities and the
link parner capabilities, when it determines the speed and duplex
settings, but does not mask any of the link partner capabilities when
it calculates PAUSE frame settings.

Signed-off-by: Cristian Bercaru <cristian.bercaru@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c