From: Christophe Lucas <[EMAIL PROTECTED]>
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]>
---
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
}
--
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel