Intel I350 mini-PCIe card (igb) on Mirabox (mvebu / Armada 370)
Willy Tarreau
w at 1wt.eu
Sat Apr 5 11:04:16 PDT 2014
Hi Thomas,
On Sat, Apr 05, 2014 at 07:34:35PM +0200, Thomas Petazzoni wrote:
> Also, can you detail how you tested with just one port?
OK I just found this ugly method, I'm not sure it's the best one but it
does the job :-) It simply refuses to configure any controller but the
first one on the chip.
diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
index 46d31a4..88bf1d5 100644
--- a/drivers/net/ethernet/intel/igb/igb_main.c
+++ b/drivers/net/ethernet/intel/igb/igb_main.c
@@ -2208,6 +2208,9 @@ static int igb_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
return -EINVAL;
}
+ if (PCI_FUNC(pdev->devfn) != 0)
+ return -ENODEV;
+
err = pci_enable_device_mem(pdev);
if (err)
return err;
Best regards,
Willy
More information about the linux-arm-kernel
mailing list