]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
USB: don't use reset-resume if drivers don't support it
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 10 Jun 2008 18:59:43 +0000 (14:59 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 12 Jun 2008 00:06:33 +0000 (17:06 -0700)
commit5340ba827b6269ccd2dcfd3d966626d9dd75d5d4
treecb25dade31b785fb542678c82c94e0a247100d90
parente6942d633be61f1638e08c56ab8244fc9f1c61e3
USB: don't use reset-resume if drivers don't support it

This patch tries to identify which devices are able to accept
reset-resume handling, by checking that there is at least one
interface driver bound and that all of the drivers have a reset_resume
method defined.  If these conditions don't hold then during resume
processing, the device is logicall disconnected.

This is only a temporary fix.  Later on we will explicitly unbind
drivers that can't handle reset-resumes.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Cc: Oliver Neukum <oliver@neukum.org>
Cc: Pavel Machek <pavel@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/hub.c