Re: composition switch design

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Thu, Jan 21, 2010 at 09:34:31PM +0530, sai pavan wrote:
> Can you please share the implementation details? Do you maintain
> multiple configurations or one dynamic configuration?

multiple configurations.

Grab the code here:

http://repository.maemo.org/pool/fremantle/free/k/kernel/kernel-source_2.6.28-20094803.3+0m5_all.deb

then you can:

dpkg -x kernel/kernel-source_2.6.28-20094803.3+0m5_all.deb .
tar -jxf kernel-source.tar.bz2

grep the code for UGLY UGLY HACK (sigh :-p)

most of the code is on drivers/usb/gadget/composite.c, here are some
more pointers:

drivers/usb/musb/musb_gadget.c:1401:	/** UGLY UGLY HACK: Windows problems with multiple
drivers/usb/musb/musb_core.c:928:			/** UGLY UGLY HACK: Windows problems with multiple
drivers/usb/gadget/composite.c:73:/** UGLY UGLY HACK: Windows problems with multiple
drivers/usb/gadget/composite.c:347:		/** UGLY UGLY HACK: Windows problems with multiple
drivers/usb/gadget/composite.c:373:		/** UGLY UGLY HACK: Windows problems with multiple
drivers/usb/gadget/composite.c:796:			/** UGLY UGLY HACK: Windows problems with multiple
drivers/usb/gadget/composite.c:828:		/** UGLY UGLY HACK: Windows problems with multiple
drivers/usb/gadget/composite.c:929:/** UGLY UGLY HACK: Windows problems with multiple
drivers/usb/gadget/composite.c:962:	/** UGLY UGLY HACK: Windows problems with multiple
drivers/usb/gadget/composite.c:1126:/** UGLY UGLY HACK: Windows problems with multiple
drivers/usb/gadget/composite.c:1148:	/** UGLY UGLY HACK: Windows problems with multiple

heh, what's even more ironic is that even the USB Command Verifier tool,
which is supposed to stress test the protocol layer, also has problems
with multiple configurations, it gets the first configuration several
times :-p

-- 
balbi
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux