]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Jul 2020 00:40:01 +0000 (17:40 -0700)
commit7dce218a6d8749e4bb309030f553e5357a5832bf
tree49f1fa188a17e176e64ccf52f33a6e137dce5dc7
parentab007097c35ad65cc20eb02fc48dd624543174db
net: mscc: ocelot: split writes to pause frame enable bit and to thresholds

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>
drivers/net/ethernet/mscc/ocelot.c