[PATCH 029/149] USB: usb gadget, dead config cleanup

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Greg Kroah-Hartman
Date: Thursday, July 12, 2007 - 4:41 pm

From: David Brownell <david-b@pacbell.net>

Remove some dead CONFIG_ symbols, and document the status of a few others.
The "gadget_chips.h" references are by and large to drivers which exist
but haven't yet been submitted for merging to the main 2.6 tree.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
 drivers/usb/gadget/ether.c        |    2 +-
 drivers/usb/gadget/gadget_chips.h |   10 ++++++++++
 drivers/usb/gadget/inode.c        |    2 +-
 3 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c
index 49630ab..78e2402 100644
--- a/drivers/usb/gadget/ether.c
+++ b/drivers/usb/gadget/ether.c
@@ -292,7 +292,7 @@ MODULE_PARM_DESC(host_addr, "Host Ethernet Address");
 #define	DEV_CONFIG_SUBSET
 #endif
 
-#ifdef CONFIG_USB_GADGET_SH
+#ifdef CONFIG_USB_GADGET_SUPERH
 #define	DEV_CONFIG_SUBSET
 #endif
 
diff --git a/drivers/usb/gadget/gadget_chips.h b/drivers/usb/gadget/gadget_chips.h
index 96f50e3..9c84b38 100644
--- a/drivers/usb/gadget/gadget_chips.h
+++ b/drivers/usb/gadget/gadget_chips.h
@@ -8,6 +8,8 @@
  * (And avoiding all runtime comparisons in typical one-choice configs!)
  *
  * NOTE:  some of these controller drivers may not be available yet.
+ * Some are available on 2.4 kernels; several are available, but not
+ * yet pushed in the 2.6 mainline tree.
  */
 #ifdef CONFIG_USB_GADGET_NET2280
 #define	gadget_is_net2280(g)	!strcmp("net2280", (g)->name)
@@ -33,12 +35,14 @@
 #define	gadget_is_goku(g)	0
 #endif
 
+/* SH3 UDC -- not yet ported 2.4 --> 2.6 */
 #ifdef CONFIG_USB_GADGET_SUPERH
 #define	gadget_is_sh(g)		!strcmp("sh_udc", (g)->name)
 #else
 #define	gadget_is_sh(g)		0
 #endif
 
+/* not yet stable on 2.6 (would help "original Zaurus") */
 #ifdef CONFIG_USB_GADGET_SA1100
 #define	gadget_is_sa1100(g)	!strcmp("sa1100_udc", (g)->name)
 #else
@@ -51,6 +55,7 @@
 #define	gadget_is_lh7a40x(g)	0
 #endif
 
+/* handhelds.org tree (?) */
 #ifdef CONFIG_USB_GADGET_MQ11XX
 #define	gadget_is_mq11xx(g)	!strcmp("mq11xx_udc", (g)->name)
 #else
@@ -63,12 +68,14 @@
 #define	gadget_is_omap(g)	0
 #endif
 
+/* not yet ported 2.4 --> 2.6 */
 #ifdef CONFIG_USB_GADGET_N9604
 #define	gadget_is_n9604(g)	!strcmp("n9604_udc", (g)->name)
 #else
 #define	gadget_is_n9604(g)	0
 #endif
 
+/* various unstable versions available */
 #ifdef CONFIG_USB_GADGET_PXA27X
 #define	gadget_is_pxa27x(g)	!strcmp("pxa27x_udc", (g)->name)
 #else
@@ -93,6 +100,7 @@
 #define gadget_is_at91(g)	0
 #endif
 
+/* status unclear */
 #ifdef CONFIG_USB_GADGET_IMX
 #define gadget_is_imx(g)	!strcmp("imx_udc", (g)->name)
 #else
@@ -106,6 +114,7 @@
 #endif
 
 /* Mentor high speed function controller */
+/* from Montavista kernel (?) */
 #ifdef CONFIG_USB_GADGET_MUSBHSFC
 #define gadget_is_musbhsfc(g)	!strcmp("musbhsfc_udc", (g)->name)
 #else
@@ -119,6 +128,7 @@
 #define gadget_is_musbhdrc(g)	0
 #endif
 
+/* from Montavista kernel (?) */
 #ifdef CONFIG_USB_GADGET_MPC8272
 #define gadget_is_mpc8272(g)	!strcmp("mpc8272_udc", (g)->name)
 #else
diff --git a/drivers/usb/gadget/inode.c b/drivers/usb/gadget/inode.c
index 46d0e52..23b439a 100644
--- a/drivers/usb/gadget/inode.c
+++ b/drivers/usb/gadget/inode.c
@@ -1505,7 +1505,7 @@ gadgetfs_setup (struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl)
 		}
 		break;
 
-#ifndef	CONFIG_USB_GADGETFS_PXA2XX
+#ifndef	CONFIG_USB_GADGET_PXA2XX
 	/* PXA automagically handles this request too */
 	case USB_REQ_GET_CONFIGURATION:
 		if (ctrl->bRequestType != 0x80)
-- 
1.5.2.2


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 029/149] USB: usb gadget, dead config cleanup, Greg Kroah-Hartman, (Thu Jul 12, 4:41 pm)
[PATCH 030/149] USB: add USB_DEVICE_AND_INTERFACE_INFO for ..., Greg Kroah-Hartman, (Thu Jul 12, 4:41 pm)
[PATCH 031/149] USB: hub.c loops forever on resume from ra ..., Greg Kroah-Hartman, (Thu Jul 12, 4:41 pm)
[PATCH 032/149] USB: prevent char device open/deregister race, Greg Kroah-Hartman, (Thu Jul 12, 4:41 pm)
[PATCH 033/149] USB: rework C++-style comments, Greg Kroah-Hartman, (Thu Jul 12, 4:41 pm)
[PATCH 034/149] USB: ftdi_sio.c: Allow setting latency tim ..., Greg Kroah-Hartman, (Thu Jul 12, 4:41 pm)
[PATCH 035/149] USB: EHCI big endian data structures suppo ..., Greg Kroah-Hartman, (Thu Jul 12, 4:41 pm)
[PATCH 036/149] USB: Set CONFIG_USB_EHCI_BIG_ENDIAN_MMIO/_ ..., Greg Kroah-Hartman, (Thu Jul 12, 4:41 pm)
[PATCH 037/149] USB: ehci_fsl update for MPC831x support, Greg Kroah-Hartman, (Thu Jul 12, 4:41 pm)
[PATCH 038/149] USB: use function attribute __maybe_unused, Greg Kroah-Hartman, (Thu Jul 12, 4:41 pm)
[PATCH 040/149] USB: visor driver adapted to new tty buffering, Greg Kroah-Hartman, (Thu Jul 12, 4:41 pm)
[PATCH 041/149] USB: Digi AccelePort adapted to new tty bu ..., Greg Kroah-Hartman, (Thu Jul 12, 4:41 pm)
[PATCH 042/149] USB: generic usb serial to new buffering s ..., Greg Kroah-Hartman, (Thu Jul 12, 4:41 pm)
[PATCH 043/149] USB: flow control fix for pl2303, Greg Kroah-Hartman, (Thu Jul 12, 4:41 pm)
[PATCH 044/149] USB: usb serial gadget, sparse fixes, Greg Kroah-Hartman, (Thu Jul 12, 4:41 pm)
[PATCH 045/149] USB Core: hub.c: prevent re-enumeration on HNP, Greg Kroah-Hartman, (Thu Jul 12, 4:41 pm)
[PATCH 046/149] USB: introduce usb_anchor, Greg Kroah-Hartman, (Thu Jul 12, 4:41 pm)
[PATCH 047/149] USB: usb-skeleton: usb anchor to implement ..., Greg Kroah-Hartman, (Thu Jul 12, 4:41 pm)
[PATCH 048/149] USB: whiteheat driver update, Greg Kroah-Hartman, (Thu Jul 12, 4:41 pm)
[PATCH 049/149] USB: digi_acceleport further buffer clean up, Greg Kroah-Hartman, (Thu Jul 12, 4:41 pm)
[PATCH 050/149] USB: EHCI: Safe endianness for transfer bu ..., Greg Kroah-Hartman, (Thu Jul 12, 4:41 pm)
[PATCH 051/149] USB: Disable file_storage USB_CONFIG_ATT_W ..., Greg Kroah-Hartman, (Thu Jul 12, 4:41 pm)
[PATCH 052/149] USB: Fix NEC OHCI chip silicon bug, Greg Kroah-Hartman, (Thu Jul 12, 4:41 pm)
[PATCH 053/149] USB: remove __usb_port_suspend, Greg Kroah-Hartman, (Thu Jul 12, 4:41 pm)
[PATCH 054/149] USB: separate root and non-root suspend/resume, Greg Kroah-Hartman, (Thu Jul 12, 4:41 pm)
[PATCH 055/149] USB: remove excess code from hub.c, Greg Kroah-Hartman, (Thu Jul 12, 4:41 pm)
[PATCH 056/149] USB: add reset_resume method, Greg Kroah-Hartman, (Thu Jul 12, 4:41 pm)
[PATCH 057/149] USB: unify reset_resume and normal resume, Greg Kroah-Hartman, (Thu Jul 12, 4:41 pm)
[PATCH 058/149] USB: add power/persist device attribute, Greg Kroah-Hartman, (Thu Jul 12, 4:41 pm)
[PATCH 059/149] USB: fsl_usb2_udc: replace deprecated irq flag, Greg Kroah-Hartman, (Thu Jul 12, 4:41 pm)
[PATCH 060/149] USB: fsl_usb2_udc: Get max ep number from ..., Greg Kroah-Hartman, (Thu Jul 12, 4:41 pm)
[PATCH 061/149] USB: option: fix usage of urb-&gt;status abuse, Greg Kroah-Hartman, (Thu Jul 12, 4:41 pm)
[PATCH 062/149] USB: PS3: USB system-bus rework, Greg Kroah-Hartman, (Thu Jul 12, 4:41 pm)
[PATCH 063/149] USB Gadget driver for Samsung s3c2410 ARM SoC, Greg Kroah-Hartman, (Thu Jul 12, 4:41 pm)
[PATCH 064/149] USB: usb-storage: use kthread_stop() for t ..., Greg Kroah-Hartman, (Thu Jul 12, 4:41 pm)
[PATCH 065/149] USB: usb host side can be configured given ..., Greg Kroah-Hartman, (Thu Jul 12, 4:41 pm)
[PATCH 066/149] ehci-hub: improved over-current recovery, Greg Kroah-Hartman, (Thu Jul 12, 4:41 pm)
Re: [PATCH 033/149] USB: rework C++-style comments, David Brownell, (Thu Jul 12, 8:27 pm)
Re: [PATCH 048/149] USB: whiteheat driver update, Ragner Magalhaes, (Fri Jul 13, 12:50 pm)
Re: [PATCH 048/149] USB: whiteheat driver update, Felipe Balbi, (Fri Jul 13, 12:53 pm)