aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/lh7a40x_udc.h
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2005-05-02 11:25:17 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2005-06-27 14:43:51 -0700
commit5742b0c95026c817d9c266174ca39a909e8d38ca (patch)
tree4f94fd2d99c134e9d600983b834014b933fca7c6 /drivers/usb/gadget/lh7a40x_udc.h
parent65111084c63d7674dc37833e8eb59cfdaa4d0bda (diff)
[PATCH] USB dummy_hcd: Partial OTG emulation
Partial OTG support for dummy_hcd, mostly as a framework for further work. It emulates the new OTG flags in the host and peripheral frameworks, if that option is configured. But it's incomplete: - Resetting the peripheral needs to clear the OTG state bits; a second enumeration won't work correctly. - This stops modeling HNP right when roles should switch the first time. It should probably disconnect, then set the usb_bus.is_b_host and usb_gadget.is_a_peripheral flags; then it'd enumerate almost normally, except for the role reversal. Roles could then switch a second time, back to "normal" (with those flags cleared). - SRP should be modeled as "resume from port-unpowered", which is a state that usbcore doesn't yet use. HNP can be triggered by enabling the OTG whitelist and configuring a gadget driver that's not in that list; or by configuring Gadget Zero to identify itself as the HNP test device. Sent-by: David Brownell <david-b@pacbell.net> Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget/lh7a40x_udc.h')
0 files changed, 0 insertions, 0 deletions