]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: mscc: ocelot: split writes to pause frame enable bit and to thresholds
authorVladimir Oltean <vladimir.oltean@nxp.com>
Mon, 13 Jul 2020 16:57:05 +0000 (19:57 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Oct 2020 09:55:58 +0000 (11:55 +0200)
commit13c1167842508e38b97de2bd9c720c6e04fe0994
tree75e06fca745b7a9a241a3cd0bc5c7f632f03508e
parent43e89f7e3c98ad1bd42e1e234a60b880e97de99c
net: mscc: ocelot: split writes to pause frame enable bit and to thresholds

[ Upstream commit e8e6e73db14273464b374d49ca7242c0994945f3 ]

We don't want ocelot_port_set_maxlen to enable pause frame TX, just to
adjust the pause thresholds.

Move the unconditional enabling of pause TX to ocelot_init_port. There
is no good place to put such setting because it shouldn't be
unconditional. But at the moment it is, we're not changing that.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mscc/ocelot.c