Skip to content

Commit c009f41

Browse files
JassiBrardavem330
authored andcommitted
net: netsec: enable tx-irq during open callback
Enable TX-irq as well during ndo_open() as we can not count upon RX to arrive early enough to trigger the napi. This patch is critical for installation over network. Fixes: 533dd11 ("net: socionext: Add Synquacer NetSec driver") Signed-off-by: Jassi Brar <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent eda7d46 commit c009f41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/socionext/netsec.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,8 +1313,8 @@ static int netsec_netdev_open(struct net_device *ndev)
13131313
napi_enable(&priv->napi);
13141314
netif_start_queue(ndev);
13151315

1316-
/* Enable RX intr. */
1317-
netsec_write(priv, NETSEC_REG_INTEN_SET, NETSEC_IRQ_RX);
1316+
/* Enable TX+RX intr. */
1317+
netsec_write(priv, NETSEC_REG_INTEN_SET, NETSEC_IRQ_RX | NETSEC_IRQ_TX);
13181318

13191319
return 0;
13201320
err3:

0 commit comments

Comments
 (0)