pch_can: fix module reload issue with MSI
authorTomoya <tomoya-linux@dsn.okisemi.com>
Mon, 7 Feb 2011 23:29:03 +0000 (23:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Feb 2011 00:37:20 +0000 (16:37 -0800)
Currently, in case reload pch_can,
pch_can not to be able to catch interrupt.

The cause is bus-master is not set in pch_can.
Thus, add enabling bus-master processing.

Signed-off-by: Tomoya MORINAGA <tomoya-linux@dsn.okisemi.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/can/pch_can.c

index 342d514c5e847d81955f23ff130e3d94f62b1944..7d8bc128044ca2f6409aa978e998cbbcb9a4b470 100644 (file)
@@ -1238,6 +1238,7 @@ static int __devinit pch_can_probe(struct pci_dev *pdev,
                priv->use_msi = 0;
        } else {
                netdev_err(ndev, "PCH CAN opened with MSI\n");
+               pci_set_master(pdev);
                priv->use_msi = 1;
        }