linux/drivers/usb/core
Alan Stern d74d4a69dc USB: don't touch sysfs stuff when altsetting is unchanged
This patch (as955) prevents the interface-related sysfs files and
endpoint pseudo-devices from being deleted and recreated when a call
to usb_set_interface() specifies the current altsetting.  Since the
altsetting doesn't get changed, there's no need to do anything.

Furthermore, avoiding changes to the endpoint devices will be
necessary in the future.  This code is called from usb_reset_device(),
which gets invoked for reset-resume processing, but upcoming changes
to the PM and driver cores will make it impossible to register devices
while a suspend/resume transition is in progress.  Since we don't need
to re-register those endpoint devices anyhow, it's best to skip the
whole thing.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2007-10-12 14:55:10 -07:00
..
buffer.c
config.c usb: usb_get_configuration() obeys authorization 2007-10-12 14:55:06 -07:00
devices.c
devio.c USB: avoid urb->pipe in usbfs 2007-10-12 14:55:01 -07:00
driver.c usb: usb_probe_interface() obeys authorization 2007-10-12 14:55:07 -07:00
endpoint.c
file.c
generic.c USB: rename choose_configuration 2007-10-12 14:55:08 -07:00
hcd-pci.c
hcd.c USB: make HCDs responsible for managing endpoint queues 2007-10-12 14:55:10 -07:00
hcd.h USB: make HCDs responsible for managing endpoint queues 2007-10-12 14:55:10 -07:00
hub.c USB: rename choose_configuration 2007-10-12 14:55:08 -07:00
hub.h
inode.c
Kconfig
Makefile
message.c USB: don't touch sysfs stuff when altsetting is unchanged 2007-10-12 14:55:10 -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: hook up device authorization to sysfs 2007-10-12 14:55:08 -07:00
urb.c USB: cleanup for previous patches 2007-10-12 14:55:01 -07:00
usb.c usb: initialize authorization and wusb bits in USB devices 2007-10-12 14:55:05 -07:00
usb.h USB: rename choose_configuration 2007-10-12 14:55:08 -07:00