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)
commita4572e0c23266d01949a1c134475e3bfa7f788e1
tree70b19b089b0c17e765544cf28bce98e4c913263b
parent46833a86f7ab30101096d81117dd250bfae74c6f
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