[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <C3745E3C7FD07D429C54EB3D7606A5A7677E7C@ZRHEX021.ads.zuehlke.com>
Date: Mon, 28 Nov 2011 13:25:30 +0000
From: "Mosler, Martin" <mmo@...hlke.com>
To: "linux-can@...r.kernel.org" <linux-can@...r.kernel.org>
CC: "wg@...ndegger.com" <wg@...ndegger.com>,
"socketcan@...tkopp.net" <socketcan@...tkopp.net>,
"lucas.demarchi@...fusion.mobi" <lucas.demarchi@...fusion.mobi>,
"davem@...emloft.net" <davem@...emloft.net>,
"mkl@...gutronix.de" <mkl@...gutronix.de>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: [PATCH] net/can/mscan: Enable interrupts when all TX buffers are
occupied to get notified when they are available again
When all TX buffers of the mscan are occupied the network layer is told to stop sending further packets. However the TX interrupts are not enabled and therefore the driver has no chance to tell the network layer when it is ready to accept further packets.
Signed-off-by: Martin Mosler <mmo@...hlke.com>
--- linux-2.6/drivers/net/can/mscan/mscan.c.orig 2011-11-28 13:54:29.547850661 +0100
+++ linux-2.6/drivers/net/can/mscan/mscan.c 2011-11-28 13:55:52.427849601 +0100
@@ -214,6 +214,7 @@ static netdev_tx_t mscan_start_xmit(stru
case 0:
netif_stop_queue(dev);
dev_err(dev->dev.parent, "Tx Ring full when queue awake!\n");
+ out_8(®s->cantier, priv->tx_active);
return NETDEV_TX_BUSY;
case 1:
/*
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists