• David Brownell's avatar
    [PATCH] USB: usb gadget zero, basic OTG updates · 0601da86
    David Brownell authored
    This patch teaches "gadget zero" enough about OTG to pass simple USBCV
    tests, mostly by including OTG descriptors in each configuration.  It
    tests and reports OTG status, as reported by the USB controller driver.
    
    It also adds an option to build gadget zero to act as the designated
    OTG "HNP Test Device", which exists primarily to trigger HNP.  However,
    it won't currently request HNP.
    
    Includes other minor tweaks:  delete a timer on disconnect, reset
    the req->zero flag, don't autoresume after disconnect.
    Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
    Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
    0601da86
zero.c 35.9 KB