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 <[EMAIL PROTECTED]>
Signed-off-by: Domen Puncer <[EMAIL PROTECTED]>
---


 kj-domen/drivers/usb/host/ehci-hcd.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/usb/host/ehci-hcd.c~dma_mask-drivers_usb_host_ehci-hcd 
drivers/usb/host/ehci-hcd.c
--- kj/drivers/usb/host/ehci-hcd.c~dma_mask-drivers_usb_host_ehci-hcd   
2005-04-05 12:57:51.000000000 +0200
+++ kj-domen/drivers/usb/host/ehci-hcd.c        2005-04-05 12:57:51.000000000 
+0200
@@ -550,7 +550,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
        }
_


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to