All pastes #9324 Raw Edit

patch to ohci-h5400

public text v1 · immutable
#9324 ·published 2005-04-11 14:05 UTC
rendered paste body
Index: drivers/usb/host/ohci-h5400.c
===================================================================
RCS file: /cvs/linux/kernel26/drivers/usb/host/ohci-h5400.c,v
retrieving revision 1.2
diff -u -r1.2 ohci-h5400.c
--- drivers/usb/host/ohci-h5400.c       9 Apr 2005 14:20:36 -0000       1.2
+++ drivers/usb/host/ohci-h5400.c       11 Apr 2005 14:07:38 -0000
@@ -25,6 +25,8 @@
 #error "This file is iPAQ H5xxx bus glue.  CONFIG_ARCH_H5400 must be defined."
 #endif

+static u64 ohci_dmamask = 0xffffffffUL;
+
 extern int usb_disabled(void);

 /*-------------------------------------------------------------------------*/
@@ -74,8 +76,10 @@
         shamcop_clock_enable(sdev->device.parent, SHAMCOP_USBHOST_CLKEN, 1);
         shamcop_clock_enable(sdev->device.parent, SHAMCOP_UCLK_EN, 0);

+       mdelay(250);
+
        /* taken from tmio_ohci, have to see if they are needed */
-       //      sdev->device.dma_mask = 0xffffffffUL;
+       sdev->device.dma_mask = &ohci_dmamask;
         sdev->device.coherent_dma_mask = 0xffffffffUL;

        retval = hcd_buffer_create(hcd);