linux/drivers/usb/gadget
David Brownell 4051770706 USB: atmel_usba_udc fixes, mostly disconnect()
Various fixes to Atmel's high speed UDC driver.

  * Issue some missing disconnect() calls.  Currently they are only made
    when VBUS power goes away (on boards where the driver can sense such
    changes), but that's not enough for gadget drivers to clean out all
    the state that's needed.  Missing calls were:

      - After USB reset, before starting enumeration.
      - When unregistering a gadget driver, before unbind().

  * Don't assume gadget drivers provide disconnect callbacks; make sure
    to not call through a null pointer!

  * When the driver doesn't provide an unbind() callback, refuse to
    unregister it.

Also remove two bogus "error" messages:

  * Related to mis-handling of disconnect() ... don't emit error messages
    for disconnect() handlers that disable endpoints.  All of them should
    be doing that; the problem is (unfixed) oddness in atmel_usba_udc.

  * Don't emit a diagnostic for a curious and transient nonfatal error
    that shows up sometimes with EP0.

Those messages spammed syslog, for no good reason.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2008-05-14 10:00:30 -07:00
..
amd5536udc.c usb: fix integer as NULL pointer warnings found by sparse 2008-05-14 10:00:26 -07:00
amd5536udc.h
at91_udc.c
at91_udc.h
atmel_usba_udc.c USB: atmel_usba_udc fixes, mostly disconnect() 2008-05-14 10:00:30 -07:00
atmel_usba_udc.h
config.c
dummy_hcd.c
epautoconf.c
ether.c usb: pxa27x_udc driver 2008-05-02 10:25:53 -07:00
file_storage.c USB GADGET/PERIPHERAL: g_file_storage Bulk-Only Transport compliance, clear-feature ignore 2008-05-02 10:25:58 -07:00
fsl_usb2_udc.c
fsl_usb2_udc.h
gadget_chips.h
gmidi.c
goku_udc.c usb: use get/put_unaligned_* helpers 2008-04-29 08:06:28 -07:00
goku_udc.h
inode.c
Kconfig usb: pxa27x_udc driver 2008-05-02 10:25:53 -07:00
lh7a40x_udc.c
lh7a40x_udc.h
m66592-udc.c
m66592-udc.h
Makefile usb: pxa27x_udc driver 2008-05-02 10:25:53 -07:00
ndis.h
net2280.c
net2280.h
omap_udc.c
omap_udc.h
printer.c
pxa2xx_udc.c
pxa2xx_udc.h
pxa27x_udc.c USB: pxa27x_udc: minor fixes 2008-05-14 10:00:29 -07:00
pxa27x_udc.h USB: pxa27x_udc: minor fixes 2008-05-14 10:00:29 -07:00
rndis.c usb: use get/put_unaligned_* helpers 2008-04-29 08:06:28 -07:00
rndis.h
s3c2410_udc.c
s3c2410_udc.h
serial.c USB: serial gadget: descriptor cleanup 2008-05-14 10:00:28 -07:00
usbstring.c usb: use get/put_unaligned_* helpers 2008-04-29 08:06:28 -07:00
zero.c usb: gadget zero timer init fix 2008-05-02 10:25:54 -07:00