On 8/1/17 6:15 PM, Andrew Lunn wrote:
Pause frames are something you can auto-negotiate at the PHY
level. Should you also be clearing some bits in the phydev, so the
peer knows pause frames are not supported?
When pause frame autonegotiation is enabled in the driver, that only
means that the driver looks at what the PHY has autonegotiated, and then
configures the MAC to match that.
The driver doesn't touch the PHY at all. It leaves all that to phylib.
Now if autonegotiation is disabled in the driver, then it just
hard-codes those TX/RX settings in the driver. Are you saying I should
program the PHY at the point to disable autonegotiation on the PHY
level? If so, then I don't know how to do that. I just assumed that
the MAC never tells the PHY what to do.
--
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the
Code Aurora Forum, hosted by The Linux Foundation.