summaryrefslogtreecommitdiff
path: root/drivers/dahdi/voicebus
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2010-09-14 14:02:35 +0000
committerShaun Ruffell <sruffell@digium.com>2010-09-14 14:02:35 +0000
commit8db4c8e7d3512dc6dfd2a0738a41d88bbecdfc04 (patch)
tree0a1b4073a31450441d7cc647ebb443dfbd9f7558 /drivers/dahdi/voicebus
parent7285d63e0c0fd8c3098d3434943957b96562b61b (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> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9326 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/voicebus')
-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)) {