android_kernel_xiaomi_sm8350/drivers/usb/core
Alan Stern bdd016ba64 USB: add ep->enable
This patch (as944) adds an explicit "enabled" field to the
usb_host_endpoint structure and uses it in place of the current
mechanism.  This is merely a time-space tradeoff; it makes checking
whether URBs may be submitted to an endpoint simpler.  The existing
mechanism is efficient when converting urb->pipe to an endpoint
pointer, but it's not so efficient when urb->ep is used instead.

As a side effect, the procedure for enabling an endpoint is now a
little more complicated.  The ad-hoc inline code in usb.c and hub.c
for enabling ep0 is now replaced with calls to usb_enable_endpoint,
which is no longer static.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2007-10-12 14:55:00 -07:00
..
buffer.c
config.c USB: add IAD support to usbfs and sysfs 2007-07-12 16:34:40 -07:00
devices.c USB: add IAD support to usbfs and sysfs 2007-07-12 16:34:40 -07:00
devio.c
driver.c USB: fix linked list insertion bugfix for usb core 2007-09-11 07:48:15 -07:00
endpoint.c
file.c USB: prevent char device open/deregister race 2007-07-12 16:29:48 -07:00
generic.c USB: unify reset_resume and normal resume 2007-07-12 16:34:30 -07:00
hcd-pci.c USB: remove references to dev.power.power_state 2007-07-12 16:29:46 -07:00
hcd.c USB: add ep->enable 2007-10-12 14:55:00 -07:00
hcd.h USB: separate root and non-root suspend/resume 2007-07-12 16:34:29 -07:00
hub.c USB: add ep->enable 2007-10-12 14:55:00 -07:00
hub.h
inode.c
Kconfig USB: add power/persist device attribute 2007-07-12 16:34:30 -07:00
Makefile
message.c USB: add ep->enable 2007-10-12 14:55:00 -07:00
notify.c
otg_whitelist.h
quirks.c USB: disable autosuspend by default for non-hubs 2007-09-13 05:49:04 -07:00
sysfs.c USB: add "descriptors" binary sysfs attribute 2007-07-19 17:46:04 -07:00
urb.c USB: add urb->ep 2007-10-12 14:55:00 -07:00
usb.c USB: add ep->enable 2007-10-12 14:55:00 -07:00
usb.h USB: add ep->enable 2007-10-12 14:55:00 -07:00