wcte12xp, wctdm24xxp: Add call to 'pci_set_mwi' on initialization.

I have yet to personally come across a system where this actually
changes the observable behavior, but it certainly seems like the sane
thing to do and I would rather not let this float around as a patch when
I can just merge it in.

Signed-off-by: Shaun Ruffell <sruffell@digium.com>

Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=9326

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/branches/2.4@9661 a0bf4364-ded3-4de4-8d8a-66a801d63aff
This commit is contained in:
Shaun Ruffell
2011-01-21 05:28:21 +00:00
parent dd61a7c70f
commit e119bbed46

View File

@@ -1177,6 +1177,7 @@ voicebus_release(struct voicebus *vb)
pci_resource_len(vb->pdev, 1));
pci_iounmap(vb->pdev, vb->iobase);
pci_clear_mwi(vb->pdev);
pci_disable_device(vb->pdev);
}
EXPORT_SYMBOL(voicebus_release);
@@ -1785,6 +1786,12 @@ __voicebus_init(struct voicebus *vb, const char *board_name,
goto cleanup;
}
retval = pci_set_mwi(vb->pdev);
if (retval) {
dev_warn(&vb->pdev->dev, "Failed to set Memory-Write " \
"Invalidate Command Bit..\n");
}
pci_set_master(vb->pdev);
if (vb_reset_interface(vb)) {