summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomoya <tomoya-linux@dsn.okisemi.com>2011-02-07 23:29:03 +0000
committerDavid S. Miller <davem@davemloft.net>2011-02-08 16:37:20 -0800
commitc69b90920a36b88ab0d649963d81355d865eeb05 (patch)
tree31fcd95927aff1c38bcbb86664f744eeb60f6a2a
parentce9736d4fb48beed370e22ac156779746dda7b92 (diff)
pch_can: fix module reload issue with MSI
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>
-rw-r--r--drivers/net/can/pch_can.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/can/pch_can.c b/drivers/net/can/pch_can.c
index 342d514c5e84..7d8bc128044c 100644
--- a/drivers/net/can/pch_can.c
+++ b/drivers/net/can/pch_can.c
@@ -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;
}