OSDN Git Service

net: dsa/bcm_sf2: move pause mode setting into mac_link_up()
authorRussell King <rmk+kernel@armlinux.org.uk>
Tue, 30 Jun 2020 10:28:18 +0000 (11:28 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Jun 2020 20:05:10 +0000 (13:05 -0700)
commit981015ac60dc5e073081e17a46189ebcfffeea19
tree45f5d004b8721f097729b0b2d6e674ddaccfdba6
parent50cc2020a8055491534929abccda5047731f24b8
net: dsa/bcm_sf2: move pause mode setting into mac_link_up()

bcm_sf2 only appears to support pause modes on RGMII interfaces (the
enable bits are in the RGMII control register.)  Setup the pause modes
for RGMII connections.

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Tested-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/bcm_sf2.c