From: Christophe Lucas Subject: [KJ] [PATCH] dma-mask : drivers/usb/host/ehci-hcd.c I know the range of code where this patch is applied is #if 0'd, but to do all the job about DMA_MASK... I have send it. Use the DMA_{64,32}BIT_MASK constants from dma-mapping.h when calling pci_set_dma_mask() or pci_set_consistent_dma_mask() See http://marc.theaimsgroup.com/?t=108001993000001&r=1&w=2 for details Signed-off-by: Christophe Lucas Signed-off-by: Domen Puncer --- ehci-hcd.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: quilt/drivers/usb/host/ehci-hcd.c =================================================================== --- quilt.orig/drivers/usb/host/ehci-hcd.c +++ quilt/drivers/usb/host/ehci-hcd.c @@ -588,7 +588,7 @@ static int ehci_start (struct usb_hcd *h writel (0, &ehci->regs->segment); #if 0 // this is deeply broken on almost all architectures - if (!pci_set_dma_mask (to_pci_dev(hcd->self.controller), 0xffffffffffffffffULL)) + if (!pci_set_dma_mask (to_pci_dev(hcd->self.controller), DMA_64BIT_MASK)) ehci_info (ehci, "enabled 64bit PCI DMA\n"); #endif }