diff options
author | Andrew Lunn <andrew@lunn.ch> | 2018-08-09 16:38:37 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-08-09 21:08:19 +0300 |
commit | 54186b91bde1711080d0b23ce25f0bee5a058fc9 (patch) | |
tree | ae6b23679f30ff4f141c42b77d76e1557d9463f0 /drivers/net/dsa/mv88e6xxx/port.h | |
parent | 78b39066c425ce913af1c0353d8fdc5d8c416e32 (diff) | |
download | linux-54186b91bde1711080d0b23ce25f0bee5a058fc9.tar.xz |
net: dsa: mv88e6xxx: Add support to enabling pause
The 6185 can enable/disable 802.3z pause be setting the MyPause bit in
the port status register. Add an op to support this.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/mv88e6xxx/port.h')
-rw-r--r-- | drivers/net/dsa/mv88e6xxx/port.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/dsa/mv88e6xxx/port.h b/drivers/net/dsa/mv88e6xxx/port.h index 5e1db1b221ca..44916251567b 100644 --- a/drivers/net/dsa/mv88e6xxx/port.h +++ b/drivers/net/dsa/mv88e6xxx/port.h @@ -242,6 +242,8 @@ int mv88e6xxx_port_read(struct mv88e6xxx_chip *chip, int port, int reg, int mv88e6xxx_port_write(struct mv88e6xxx_chip *chip, int port, int reg, u16 val); +int mv88e6185_port_set_pause(struct mv88e6xxx_chip *chip, int port, + int pause); int mv88e6352_port_set_rgmii_delay(struct mv88e6xxx_chip *chip, int port, phy_interface_t mode); int mv88e6390_port_set_rgmii_delay(struct mv88e6xxx_chip *chip, int port, |