1 diff -NurbwB linux-2.6.17/drivers/usb/gadget/pxa2xx_udc.c linux-2.6.17-patched/drivers/usb/gadget/pxa2xx_udc.c
2 --- linux-2.6.17/drivers/usb/gadget/pxa2xx_udc.c 2006-06-17 18:49:35.000000000 -0700
3 +++ linux-2.6.17-patched/drivers/usb/gadget/pxa2xx_udc.c 2006-09-11 13:02:39.000000000 -0700
5 static const char ep0name [] = "ep0";
9 -// #define USE_OUT_DMA
12 // #define DISABLE_TEST_MODE
14 #ifdef CONFIG_ARCH_IXP4XX
18 /* try to clear these bits before we enable the udc */
19 - udc_ack_int_UDCCR(UDCCR_SUSIR|/*UDCCR_RSTIR|*/UDCCR_RESIR);
20 + udc_ack_int_UDCCR(UDCCR_SUSIR|UDCCR_RSTIR|UDCCR_RESIR);
23 dev->gadget.speed = USB_SPEED_UNKNOWN;
25 struct pxa2xx_udc *dev = _dev;
29 + udc_set_mask_UDCCR( UDCCR_REM | UDCCR_SRM);
32 HEX_DISPLAY(dev->stats.irqs);
35 /* we could also ask for 1 msec SOF (SIR) interrupts */
39 + udc_clear_mask_UDCCR( UDCCR_SRM | UDCCR_REM);
44 int retval, out_dma = 1;
47 + local_irq_disable();
48 /* insist on Intel/ARM/XScale */
49 asm("mrc%? p15, 0, %0, c0, c0" : "=r" (chiprev));
50 if ((chiprev & CP15R0_VENDOR_MASK) != CP15R0_XSCALE_VALUE) {