Skip to content

Commit b5e86db

Browse files
Lennert Buytenhekdavem330
authored andcommitted
mv643xx_eth: don't reset the rx coal timer on interface up
Move SDMA configuration from interface up to port probe, to prevent overwriting the receive coalescing timer value on interface up. Signed-off-by: Lennert Buytenhek <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 150899d commit b5e86db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/mv643xx_eth.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2274,8 +2274,6 @@ static void port_start(struct mv643xx_eth_private *mp)
22742274
pscr |= FORCE_LINK_PASS;
22752275
wrlp(mp, PORT_SERIAL_CONTROL, pscr);
22762276

2277-
wrlp(mp, SDMA_CONFIG, PORT_SDMA_CONFIG_DEFAULT_VALUE);
2278-
22792277
/*
22802278
* Configure TX path and queues.
22812279
*/
@@ -2957,6 +2955,8 @@ static int mv643xx_eth_probe(struct platform_device *pdev)
29572955

29582956
netif_carrier_off(dev);
29592957

2958+
wrlp(mp, SDMA_CONFIG, PORT_SDMA_CONFIG_DEFAULT_VALUE);
2959+
29602960
set_rx_coal(mp, 250);
29612961
set_tx_coal(mp, 0);
29622962

0 commit comments

Comments
 (0)