[svn-commits] sruffell: branch linux/2.4 r9661 - /linux/branches/2.4/drivers/dahdi/voicebus/
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Jan 20 23:28:24 CST 2011
Author: sruffell
Date: Thu Jan 20 23:28:21 2011
New Revision: 9661
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9661
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>
Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=9326
Modified:
linux/branches/2.4/drivers/dahdi/voicebus/voicebus.c
Modified: linux/branches/2.4/drivers/dahdi/voicebus/voicebus.c
URL: http://svnview.digium.com/svn/dahdi/linux/branches/2.4/drivers/dahdi/voicebus/voicebus.c?view=diff&rev=9661&r1=9660&r2=9661
==============================================================================
--- linux/branches/2.4/drivers/dahdi/voicebus/voicebus.c (original)
+++ linux/branches/2.4/drivers/dahdi/voicebus/voicebus.c Thu Jan 20 23:28:21 2011
@@ -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