提交 04efb878 编写于 作者: D David S. Miller

[CASSINI]: Check pci_set_mwi() return value.

Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 ba78073e
...@@ -4919,7 +4919,10 @@ static int __devinit cas_init_one(struct pci_dev *pdev, ...@@ -4919,7 +4919,10 @@ static int __devinit cas_init_one(struct pci_dev *pdev,
pci_cmd &= ~PCI_COMMAND_SERR; pci_cmd &= ~PCI_COMMAND_SERR;
pci_cmd |= PCI_COMMAND_PARITY; pci_cmd |= PCI_COMMAND_PARITY;
pci_write_config_word(pdev, PCI_COMMAND, pci_cmd); 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 * On some architectures, the default cache line size set
* by pci_set_mwi reduces perforamnce. We have to increase * by pci_set_mwi reduces perforamnce. We have to increase
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册