X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/d63172b5b35ede6076a551def2819569ebc2d5cc..fd34842997e021a4370d61b394b9fb050555fe09:/target/linux/omap24xx/patches-3.1/850-musb-tusb-modular-fixes.patch diff --git a/target/linux/omap24xx/patches-3.1/850-musb-tusb-modular-fixes.patch b/target/linux/omap24xx/patches-3.1/850-musb-tusb-modular-fixes.patch index d09540d98..c958989bf 100644 --- a/target/linux/omap24xx/patches-3.1/850-musb-tusb-modular-fixes.patch +++ b/target/linux/omap24xx/patches-3.1/850-musb-tusb-modular-fixes.patch @@ -1,7 +1,5 @@ -Index: linux-3.1-rc4/drivers/usb/musb/tusb6010.c -=================================================================== ---- linux-3.1-rc4.orig/drivers/usb/musb/tusb6010.c 2011-08-29 06:16:01.000000000 +0200 -+++ linux-3.1-rc4/drivers/usb/musb/tusb6010.c 2011-10-27 17:04:58.637191966 +0200 +--- a/drivers/usb/musb/tusb6010.c ++++ b/drivers/usb/musb/tusb6010.c @@ -56,6 +56,7 @@ u8 tusb_get_revision(struct musb *musb) return rev; @@ -26,7 +24,7 @@ Index: linux-3.1-rc4/drivers/usb/musb/tusb6010.c static struct musb *the_musb; -@@ -1244,18 +1247,16 @@ static struct platform_driver tusb_drive +@@ -1244,18 +1247,18 @@ static struct platform_driver tusb_drive }, }; @@ -43,6 +41,7 @@ Index: linux-3.1-rc4/drivers/usb/musb/tusb6010.c return platform_driver_probe(&tusb_driver, tusb_probe); } -subsys_initcall(tusb_init); ++EXPORT_SYMBOL(musb_hdrc_glue_init); -static void __exit tusb_exit(void) +void musb_hdrc_glue_exit(void) @@ -50,35 +49,36 @@ Index: linux-3.1-rc4/drivers/usb/musb/tusb6010.c platform_driver_unregister(&tusb_driver); } -module_exit(tusb_exit); -Index: linux-3.1-rc4/drivers/usb/musb/Makefile -=================================================================== ---- linux-3.1-rc4.orig/drivers/usb/musb/Makefile 2011-08-29 06:16:01.000000000 +0200 -+++ linux-3.1-rc4/drivers/usb/musb/Makefile 2011-10-27 17:04:58.637191966 +0200 -@@ -11,13 +11,13 @@ musb_hdrc-y += musb_virthub.o musb_h - musb_hdrc-$(CONFIG_DEBUG_FS) += musb_debugfs.o ++EXPORT_SYMBOL(musb_hdrc_glue_exit); +--- a/drivers/usb/musb/musb_core.c ++++ b/drivers/usb/musb/musb_core.c +@@ -207,7 +207,7 @@ static struct otg_io_access_ops musb_ulp - # Hardware Glue Layer --obj-$(CONFIG_USB_MUSB_OMAP2PLUS) += omap2430.o --obj-$(CONFIG_USB_MUSB_AM35X) += am35x.o --obj-$(CONFIG_USB_MUSB_TUSB6010) += tusb6010.o --obj-$(CONFIG_USB_MUSB_DAVINCI) += davinci.o --obj-$(CONFIG_USB_MUSB_DA8XX) += da8xx.o --obj-$(CONFIG_USB_MUSB_BLACKFIN) += blackfin.o --obj-$(CONFIG_USB_MUSB_UX500) += ux500.o -+musb_hdrc-$(CONFIG_USB_MUSB_OMAP2PLUS) += omap2430.o -+musb_hdrc-$(CONFIG_USB_MUSB_AM35X) += am35x.o -+musb_hdrc-$(CONFIG_USB_MUSB_TUSB6010) += tusb6010.o -+musb_hdrc-$(CONFIG_USB_MUSB_DAVINCI) += davinci.o -+musb_hdrc-$(CONFIG_USB_MUSB_DA8XX) += da8xx.o -+musb_hdrc-$(CONFIG_USB_MUSB_BLACKFIN) += blackfin.o -+musb_hdrc-$(CONFIG_USB_MUSB_UX500) += ux500.o - - # the kconfig must guarantee that only one of the - # possible I/O schemes will be enabled at a time ... -Index: linux-3.1-rc4/drivers/usb/musb/musb_core.c -=================================================================== ---- linux-3.1-rc4.orig/drivers/usb/musb/musb_core.c 2011-08-29 06:16:01.000000000 +0200 -+++ linux-3.1-rc4/drivers/usb/musb/musb_core.c 2011-10-27 17:09:45.216071368 +0200 + /*-------------------------------------------------------------------------*/ + +-#if !defined(CONFIG_USB_MUSB_TUSB6010) && !defined(CONFIG_USB_MUSB_BLACKFIN) ++#if !defined(CONFIG_USB_MUSB_TUSB6010) && !defined(CONFIG_USB_MUSB_TUSB6010_MODULE) && !defined(CONFIG_USB_MUSB_BLACKFIN) + + /* + * Load an endpoint's FIFO +@@ -250,7 +250,7 @@ void musb_write_fifo(struct musb_hw_ep * + } + } + +-#if !defined(CONFIG_USB_MUSB_AM35X) ++#if !defined(CONFIG_USB_MUSB_AM35X) && !defined(CONFIG_USB_MUSB_TUSB6010) && !defined(CONFIG_USB_MUSB_TUSB6010_MODULE) + /* + * Unload an endpoint's FIFO + */ +@@ -1432,7 +1432,7 @@ static int __init musb_core_init(u16 mus + struct musb_hw_ep *hw_ep = musb->endpoints + i; + + hw_ep->fifo = MUSB_FIFO_OFFSET(i) + mbase; +-#ifdef CONFIG_USB_MUSB_TUSB6010 ++#if defined(CONFIG_USB_MUSB_TUSB6010) || defined(CONFIG_USB_MUSB_TUSB6010_MODULE) + hw_ep->fifo_async = musb->async + 0x400 + MUSB_FIFO_OFFSET(i); + hw_ep->fifo_sync = musb->sync + 0x400 + MUSB_FIFO_OFFSET(i); + hw_ep->fifo_sync_va = @@ -2376,8 +2376,13 @@ static struct platform_driver musb_drive /*-------------------------------------------------------------------------*/ @@ -119,10 +119,8 @@ Index: linux-3.1-rc4/drivers/usb/musb/musb_core.c + musb_hdrc_glue_exit(); } module_exit(musb_cleanup); -Index: linux-3.1-rc4/drivers/usb/Makefile -=================================================================== ---- linux-3.1-rc4.orig/drivers/usb/Makefile 2011-08-29 06:16:01.000000000 +0200 -+++ linux-3.1-rc4/drivers/usb/Makefile 2011-10-27 17:07:22.608628530 +0200 +--- a/drivers/usb/Makefile ++++ b/drivers/usb/Makefile @@ -47,7 +47,7 @@ obj-$(CONFIG_EARLY_PRINTK_DBGP) += early obj-$(CONFIG_USB_ATM) += atm/ obj-$(CONFIG_USB_SPEEDTOUCH) += atm/ @@ -132,3 +130,14 @@ Index: linux-3.1-rc4/drivers/usb/Makefile obj-$(CONFIG_USB_RENESAS_USBHS) += renesas_usbhs/ obj-$(CONFIG_USB_OTG_UTILS) += otg/ obj-$(CONFIG_USB_GADGET) += gadget/ +--- a/drivers/usb/musb/Makefile ++++ b/drivers/usb/musb/Makefile +@@ -13,7 +13,7 @@ musb_hdrc-$(CONFIG_DEBUG_FS) += musb_d + # Hardware Glue Layer + obj-$(CONFIG_USB_MUSB_OMAP2PLUS) += omap2430.o + obj-$(CONFIG_USB_MUSB_AM35X) += am35x.o +-obj-$(CONFIG_USB_MUSB_TUSB6010) += tusb6010.o ++musb_hdrc-$(subst m,y,$(CONFIG_USB_MUSB_TUSB6010)) += tusb6010.o + obj-$(CONFIG_USB_MUSB_DAVINCI) += davinci.o + obj-$(CONFIG_USB_MUSB_DA8XX) += da8xx.o + obj-$(CONFIG_USB_MUSB_BLACKFIN) += blackfin.o