summaryrefslogtreecommitdiff
path: root/drivers/net/can/pch_can.c
diff options
context:
space:
mode:
authorTomoya <tomoya-linux@dsn.okisemi.com>2011-02-08 02:29:03 +0300
committerDavid S. Miller <davem@davemloft.net>2011-02-09 03:37:20 +0300
commitc69b90920a36b88ab0d649963d81355d865eeb05 (patch)
tree31fcd95927aff1c38bcbb86664f744eeb60f6a2a /drivers/net/can/pch_can.c
parentce9736d4fb48beed370e22ac156779746dda7b92 (diff)
downloadlinux-c69b90920a36b88ab0d649963d81355d865eeb05.tar.xz
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>
Diffstat (limited to 'drivers/net/can/pch_can.c')
-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;
}