[svn-commits] sruffell: linux/trunk r9326 - /linux/trunk/drivers/dahdi/voicebus/voicebus.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Tue Sep 14 09:02:46 CDT 2010
Author: sruffell
Date: Tue Sep 14 09:02:35 2010
New Revision: 9326
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9326
Log:
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 at digium.com>
Modified:
linux/trunk/drivers/dahdi/voicebus/voicebus.c
Modified: linux/trunk/drivers/dahdi/voicebus/voicebus.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/voicebus/voicebus.c?view=diff&rev=9326&r1=9325&r2=9326
==============================================================================
--- linux/trunk/drivers/dahdi/voicebus/voicebus.c (original)
+++ linux/trunk/drivers/dahdi/voicebus/voicebus.c Tue Sep 14 09:02:35 2010
@@ -1177,6 +1177,7 @@
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 @@
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)) {
More information about the svn-commits
mailing list