summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2011-01-21 05:28:21 +0000
committerShaun Ruffell <sruffell@digium.com>2011-01-21 05:28:21 +0000
commit9218cae027097ecf0cf2a01811ab443051e18b4b (patch)
tree8dc3abf34968809670b4d1f1469f7413070e791e
parent793ebf2a0f603530f8f97d32b55a8971dec3c8ed (diff)
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
-rw-r--r--drivers/dahdi/voicebus/voicebus.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/dahdi/voicebus/voicebus.c b/drivers/dahdi/voicebus/voicebus.c
index 274476b..f922484 100644
--- a/drivers/dahdi/voicebus/voicebus.c
+++ b/drivers/dahdi/voicebus/voicebus.c
@@ -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)) {