[PATCH][2.5] set pci dma mask for ohci-hcd

Zwane Mwaikambo (zwane@mwaikambo.name)
Sun, 1 Sep 2002 16:11:26 +0200 (SAST)


Index: linux-2.5.33/drivers/usb/host/ohci-pci.c
===================================================================
RCS file: /build/cvsroot/linux-2.5.33/drivers/usb/host/ohci-pci.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 ohci-pci.c
--- linux-2.5.33/drivers/usb/host/ohci-pci.c 31 Aug 2002 22:30:41 -0000 1.1.1.1
+++ linux-2.5.33/drivers/usb/host/ohci-pci.c 1 Sep 2002 12:41:23 -0000
@@ -36,6 +36,11 @@
int ret;

if (hcd->pdev) {
+ if (pci_set_dma_mask(hcd->pdev, 0xFFFFFFFF)) {
+ err("couldn't set PCI dma mask");
+ return -EIO;
+ }
+
ohci->hcca = pci_alloc_consistent (hcd->pdev,
sizeof *ohci->hcca, &ohci->hcca_dma);
if (!ohci->hcca)

-- 
function.linuxpower.ca

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/