Netdev List
 help / color / mirror / Atom feed
* [PATCH] marvell sky2 driver: fix irq number assignment bug
@ 2012-04-03 15:10 Chris Metcalf
  2012-04-03 15:47 ` Ben Hutchings
  0 siblings, 1 reply; 3+ messages in thread
From: Chris Metcalf @ 2012-04-03 15:10 UTC (permalink / raw)
  To: Stephen Hemminger, netdev, linux-kernel

Fix a minor bug that will display wrong IRQ number in ifconfig output.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
---
 drivers/net/ethernet/marvell/sky2.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/drivers/net/ethernet/marvell/sky2.c b/drivers/net/ethernet/marvell/sky2.c
index 423a1a2..879b0a4 100644
--- a/drivers/net/ethernet/marvell/sky2.c
+++ b/drivers/net/ethernet/marvell/sky2.c
@@ -4978,6 +4978,13 @@ static int __devinit sky2_probe(struct pci_dev *pdev,
 			goto err_out_free_netdev;
  	}
 
+	/*
+	 * Need to set the IRQ # for the net_device here again after
+	 * setting it in sky2_init_netdev() initially, because MSI
+	 * will assign a new IRQ # to this PCI device.
+	 */
+	dev->irq = hw->pdev->irq;
+
 	err = register_netdev(dev);
 	if (err) {
 		dev_err(&pdev->dev, "cannot register net device\n");
-- 
1.6.5.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-04-03 21:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-03 15:10 [PATCH] marvell sky2 driver: fix irq number assignment bug Chris Metcalf
2012-04-03 15:47 ` Ben Hutchings
2012-04-03 21:41   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox