diff options
author | Koen Kooi <koen@openembedded.org> | 2008-01-28 11:27:21 +0000 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2008-01-28 11:27:21 +0000 |
commit | 43f3297970d794c9720998ea07ad45d57b371b71 (patch) | |
tree | 2ebc3bffa3a50477a83cbf3b9a2b14afe4638e58 /packages/linux/linux-ezx-2.6.24/patches/pxa27x-udc-fix-a1200.patch | |
parent | 85b5683120b7aa53f10639b4356ead1f1c0d8d47 (diff) |
linux-ezx: add 2.6.24
Diffstat (limited to 'packages/linux/linux-ezx-2.6.24/patches/pxa27x-udc-fix-a1200.patch')
-rw-r--r-- | packages/linux/linux-ezx-2.6.24/patches/pxa27x-udc-fix-a1200.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/packages/linux/linux-ezx-2.6.24/patches/pxa27x-udc-fix-a1200.patch b/packages/linux/linux-ezx-2.6.24/patches/pxa27x-udc-fix-a1200.patch new file mode 100644 index 0000000000..4b9a9abeef --- /dev/null +++ b/packages/linux/linux-ezx-2.6.24/patches/pxa27x-udc-fix-a1200.patch @@ -0,0 +1,45 @@ +This hack hardcodes pxa27x-udc to ether_gadget. This is just a temp workaround. +Index: linux-2.6.24/drivers/usb/gadget/ether.c +=================================================================== +--- linux-2.6.24.orig/drivers/usb/gadget/ether.c ++++ linux-2.6.24/drivers/usb/gadget/ether.c +@@ -2687,10 +2687,16 @@ + MODULE_LICENSE ("GPL"); + + +-static int __init init (void) ++// Alex add FIXME ++int usb_ether_init (void) + { + return usb_gadget_register_driver (ð_driver); + } ++ ++static int __init init (void) ++{ ++// return usb_gadget_register_driver (ð_driver); ++} + module_init (init); + + static void __exit cleanup (void) +Index: linux-2.6.24/drivers/usb/gadget/pxa27x_udc.c +=================================================================== +--- linux-2.6.24.orig/drivers/usb/gadget/pxa27x_udc.c ++++ linux-2.6.24/drivers/usb/gadget/pxa27x_udc.c +@@ -65,6 +65,8 @@ + //#include <asm/arch/udc.h> + #include <asm/mach/udc_pxa2xx.h> + ++extern int usb_ether_init(void); ++ + /* + * This driver handles the USB Device Controller (UDC) in Intel's PXA 27x + * series processors. +@@ -2277,6 +2279,8 @@ + udc_init_ep(udc); + udc_reinit(udc); + ++ usb_ether_init(); // Alex add FIXME ++ + /* irq setup after old hardware state is cleaned up */ + retval = request_irq(irq, pxa27x_udc_irq, 0, driver_name, udc); + if (retval != 0) { |