stmmac: pci: add MSI support for Intel Quark X1000
authorKweh, Hock Leong <hock.leong.kweh@intel.com>
Tue, 27 Jan 2015 19:44:49 +0000 (21:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Jan 2015 05:08:08 +0000 (21:08 -0800)
In Intel Quark SoC X1000, both of the Ethernet controllers support
MSI interrupt handling. This patch enables them to use MSI interrupt
servicing in stmmac_pci for Intel Quark X1000.

Signed-off-by: Kweh, Hock Leong <hock.leong.kweh@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c

index 50f3c50852fb49654c322f94962ff02a8625a33e..3bca908716e2a5c52a82ee6e6d8e67b9b10d23c6 100644 (file)
@@ -212,6 +212,8 @@ static int stmmac_pci_probe(struct pci_dev *pdev,
        } else
                stmmac_default_data(plat);
 
+       pci_enable_msi(pdev);
+
        priv = stmmac_dvr_probe(&pdev->dev, plat, pcim_iomap_table(pdev)[i]);
        if (IS_ERR(priv)) {
                dev_err(&pdev->dev, "%s: main driver probe failed\n", __func__);