Skip to contentSkip to conversation

net: netsec: enable tx-irq during open callback

PATCH Applied [email protected] 2 participants 6 messages Apr 16, 2018 – Aug 23, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 net: netsec: enable tx-irq during open callback

From: Jassi Brar <[email protected]>

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")
---
 drivers/net/ethernet/socionext/netsec.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/socionext/netsec.c +2 -2
index f4c0b02..f6fe70e 100644
@@ -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:
Signature · 1 line
2.7.4
maintainer Applied
#1 lore raw

From: [email protected]
Date: Mon, 16 Apr 2018 12:52:16 +0530

Quoted 8 lines

From: Jassi Brar <[email protected]>

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")

Applied.

author
#2 lore raw

Hi Dave,

Quoted 5 lines · David Miller

From: [email protected]
Date: Mon, 16 Apr 2018 12:52:16 +0530

Quoted 2 lines

From: Jassi Brar <[email protected]>

Quoted 9 lines
Quoted 6 lines

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")

Applied.

Just to make sure, let me please mention that c009f413b79de52 and 9a00b697ce31e are very much needed in stable kernel. Without these we couldn't install any OS over network.

Thanks.

maintainer
#3 lore raw

From: Jassi Brar <[email protected]>
Date: Wed, 18 Apr 2018 18:27:59 +0530

Quoted 3 lines

Just to make sure, let me please mention that c009f413b79de52 and 9a00b697ce31e are very much needed in stable kernel. Without these we couldn't install any OS over network.

Ok, both patches in this series queued up for -stable.

author
#4 lore raw

Hi David,

Quoted 9 lines · David Miller

From: Jassi Brar <[email protected]>
Date: Wed, 18 Apr 2018 18:27:59 +0530

Quoted 3 lines

Just to make sure, let me please mention that c009f413b79de52 and 9a00b697ce31e are very much needed in stable kernel. Without these we couldn't install any OS over network.

Ok, both patches in this series queued up for -stable.

I don't see the patches still. Could you please have a relook.

Thanks.

author
#5 lore raw
In reply to [email protected]

Hi Dave,
This patch (1/2) seems to have fallen through the cracks. The other
one (2/2), you already picked.
Thanks

Quoted 31 lines · On Mon, Apr 16, 2018 at 1:08 PM <[email protected]> wrote:

From: Jassi Brar <[email protected]>

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")
---
 drivers/net/ethernet/socionext/netsec.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/socionext/netsec.c +2 -3
index f4c0b02..f6fe70e 100644
@@ -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:
--

2.7.4