Skip to content

Commit

Permalink
caif-hsi: Remove stop/start of queue.
Browse files Browse the repository at this point in the history
CAIF HSI is currently a virtual device. Stopping/starting the
queues is wrong on a virtual device.

Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
sjur.brandeland@stericsson.com authored and David S. Miller committed Apr 13, 2012
1 parent ece367d commit 2df1fe7
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions drivers/net/caif/caif_hsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1129,15 +1129,11 @@ static int cfhsi_xmit(struct sk_buff *skb, struct net_device *dev)

static int cfhsi_open(struct net_device *dev)
{
netif_wake_queue(dev);

return 0;
}

static int cfhsi_close(struct net_device *dev)
{
netif_stop_queue(dev);

return 0;
}

Expand Down Expand Up @@ -1319,9 +1315,6 @@ int cfhsi_probe(struct platform_device *pdev)
__func__, res);
goto err_net_reg;
}

netif_stop_queue(ndev);

return res;

err_net_reg:
Expand All @@ -1344,9 +1337,6 @@ static void cfhsi_shutdown(struct cfhsi *cfhsi)
{
u8 *tx_buf, *rx_buf, *flip_buf;

/* Stop TXing */
netif_tx_stop_all_queues(cfhsi->ndev);

/* going to shutdown driver */
set_bit(CFHSI_SHUTDOWN, &cfhsi->bits);

Expand Down

0 comments on commit 2df1fe7

Please sign in to comment.