From 94c3777fa5fc58845643fd6fe384b15b269cc77c Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Thu, 25 Oct 2007 10:31:01 +0000 Subject: linux-ezx: add 2.6.23 --- .../patches/pxa27x-udc-fix-a1200.patch | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 packages/linux/linux-ezx-2.6.23/patches/pxa27x-udc-fix-a1200.patch (limited to 'packages/linux/linux-ezx-2.6.23/patches/pxa27x-udc-fix-a1200.patch') diff --git a/packages/linux/linux-ezx-2.6.23/patches/pxa27x-udc-fix-a1200.patch b/packages/linux/linux-ezx-2.6.23/patches/pxa27x-udc-fix-a1200.patch new file mode 100644 index 0000000000..7ea9f18d0a --- /dev/null +++ b/packages/linux/linux-ezx-2.6.23/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.23/drivers/usb/gadget/ether.c +=================================================================== +--- linux-2.6.23.orig/drivers/usb/gadget/ether.c 2007-10-23 12:58:40.000000000 +0200 ++++ linux-2.6.23/drivers/usb/gadget/ether.c 2007-10-23 12:58:46.000000000 +0200 +@@ -2709,10 +2709,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.23/drivers/usb/gadget/pxa27x_udc.c +=================================================================== +--- linux-2.6.23.orig/drivers/usb/gadget/pxa27x_udc.c 2007-10-23 12:58:40.000000000 +0200 ++++ linux-2.6.23/drivers/usb/gadget/pxa27x_udc.c 2007-10-23 13:01:47.000000000 +0200 +@@ -65,6 +65,8 @@ + //#include + #include + ++extern int usb_ether_init(void); ++ + /* + * This driver handles the USB Device Controller (UDC) in Intel's PXA 27x + * series processors. +@@ -2275,6 +2277,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) { -- cgit v1.2.3