mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-19 09:04:57 +00:00
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: 533dd11a12
("net: socionext: Add Synquacer NetSec driver")
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
eda7d46da4
commit
c009f413b7
1 changed files with 2 additions and 2 deletions
|
@ -1313,8 +1313,8 @@ static int netsec_netdev_open(struct net_device *ndev)
|
|||
napi_enable(&priv->napi);
|
||||
netif_start_queue(ndev);
|
||||
|
||||
/* Enable RX intr. */
|
||||
netsec_write(priv, NETSEC_REG_INTEN_SET, NETSEC_IRQ_RX);
|
||||
/* Enable TX+RX intr. */
|
||||
netsec_write(priv, NETSEC_REG_INTEN_SET, NETSEC_IRQ_RX | NETSEC_IRQ_TX);
|
||||
|
||||
return 0;
|
||||
err3:
|
||||
|
|
Loading…
Reference in a new issue