diff options
author | Jassi Brar <jaswinder.singh@linaro.org> | 2018-04-16 09:22:16 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-04-16 19:46:38 +0200 |
commit | c009f413b79de526a355b6eefa4f900b6c45d5f4 (patch) | |
tree | 59a16415de6045b753dfe684adf20acd3813736b /drivers/net/ethernet/socionext/netsec.c | |
parent | net: mediatek: use of_device_get_match_data() (diff) | |
download | linux-c009f413b79de526a355b6eefa4f900b6c45d5f4.tar.xz linux-c009f413b79de526a355b6eefa4f900b6c45d5f4.zip |
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: 533dd11a12f6 ("net: socionext: Add Synquacer NetSec driver")
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/socionext/netsec.c')
-rw-r--r-- | drivers/net/ethernet/socionext/netsec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/socionext/netsec.c b/drivers/net/ethernet/socionext/netsec.c index f4c0b02ddad8..f6fe70edbbfe 100644 --- a/drivers/net/ethernet/socionext/netsec.c +++ b/drivers/net/ethernet/socionext/netsec.c @@ -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: |