From 8db4c8e7d3512dc6dfd2a0738a41d88bbecdfc04 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Tue, 14 Sep 2010 14:02:35 +0000 Subject: 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 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9326 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/voicebus/voicebus.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'drivers/dahdi/voicebus') 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)) { -- cgit v1.2.3