diff options
author | Vladimir Oltean <olteanv@gmail.com> | 2019-06-08 16:03:43 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-09 19:58:58 -0700 |
commit | d114fb04163f32f6986ca8aa11bff06d5c58d27b (patch) | |
tree | 99d3ee1a81e6fa86a991e0e7306f4fdfdccffabf /drivers/net/dsa/sja1105/sja1105.h | |
parent | 1fd4a173f027125a3e761832ae077449eb70e2d8 (diff) | |
download | lwn-d114fb04163f32f6986ca8aa11bff06d5c58d27b.tar.gz lwn-d114fb04163f32f6986ca8aa11bff06d5c58d27b.zip |
net: dsa: sja1105: Export the sja1105_inhibit_tx function
This will be used to stop egress traffic in .phylink_mac_link_up.
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/sja1105/sja1105.h')
-rw-r--r-- | drivers/net/dsa/sja1105/sja1105.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/dsa/sja1105/sja1105.h b/drivers/net/dsa/sja1105/sja1105.h index 0fc6fe9ada87..8c7bc55ef119 100644 --- a/drivers/net/dsa/sja1105/sja1105.h +++ b/drivers/net/dsa/sja1105/sja1105.h @@ -131,6 +131,8 @@ int sja1105_spi_send_long_packed_buf(const struct sja1105_private *priv, sja1105_spi_rw_mode_t rw, u64 base_addr, void *packed_buf, u64 buf_len); int sja1105_static_config_upload(struct sja1105_private *priv); +int sja1105_inhibit_tx(const struct sja1105_private *priv, + unsigned long port_bitmap, bool tx_inhibited); extern struct sja1105_info sja1105e_info; extern struct sja1105_info sja1105t_info; |