]> git.hungrycats.org Git - linux/commit
[PATCH] USB: Add dummy_hcd to the main kernel
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 26 Mar 2004 05:29:43 +0000 (21:29 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 26 Mar 2004 05:29:43 +0000 (21:29 -0800)
commit0c7989b93e9fa7e89d5bc9aada7e710e1edc9ebe
treef6ced55ef629a20300b61bb191439b0fa52cd476
parentd0d4457b9cf5e95bfbb8f6c21739f2dea62e1b3d
[PATCH] USB: Add dummy_hcd to the main kernel

This is a resubmission of as225, together with appropriate changes for the
g_serial driver.  David Brownell's latest g_ether update makes it
unnecessary to change that file or gadget_chips.h.

dummy_hcd is simultaneously a host controller driver and a device
controller driver.  It creates a simulated HC together with a simulated
UDC plugged into it.  Gadget drivers can run under the simulated UDC and
will appear as regular USB devices on the simulated HC.  The simulation is
reasonably (although not totally) realistic.

It's a wonderful tool for testing and developing gadget drivers without
the need for lots of additional hardware: Both the host driver and the
gadget driver can run on the same computer.  It's been available for quite
some time in David's gadget-2.6 tree and it works well.  I couldn't have
gotten the file-storage gadget running in any reasonable length of time
without it.
drivers/usb/gadget/Kconfig
drivers/usb/gadget/Makefile
drivers/usb/gadget/dummy_hcd.c [new file with mode: 0644]
drivers/usb/gadget/serial.c