projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba78073
)
[CASSINI]: Check pci_set_mwi() return value.
author
David S. Miller
<davem@sunset.davemloft.net>
Fri, 25 May 2007 00:54:15 +0000
(17:54 -0700)
committer
David S. Miller
<davem@sunset.davemloft.net>
Fri, 25 May 2007 00:54:15 +0000
(17:54 -0700)
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cassini.c
patch
|
blob
|
history
diff --git
a/drivers/net/cassini.c
b/drivers/net/cassini.c
index 4aec747d9e437a819f6e0127598a35a4f373a88d..9fe3a38883ee7037fa834315bf4d651e04afa6f2 100644
(file)
--- a/
drivers/net/cassini.c
+++ b/
drivers/net/cassini.c
@@
-4919,7
+4919,10
@@
static int __devinit cas_init_one(struct pci_dev *pdev,
pci_cmd &= ~PCI_COMMAND_SERR;
pci_cmd |= PCI_COMMAND_PARITY;
pci_write_config_word(pdev, PCI_COMMAND, pci_cmd);
- pci_set_mwi(pdev);
+ if (pci_set_mwi(pdev))
+ printk(KERN_WARNING PFX "Could enable MWI for %s\n",
+ pci_name(pdev));
+
/*
* On some architectures, the default cache line size set
* by pci_set_mwi reduces perforamnce. We have to increase