USB: EHCI: fix remote-wakeup regression
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 20 May 2008 20:58:58 +0000 (16:58 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 6 Aug 2008 17:11:05 +0000 (10:11 -0700)
commita820df108c2ee7ac2575c7b092e929de2bebe273
tree861dad2fc2a20e84612ead9537b9f09c81b87f84
parent467231016dd4db30a8dd5e5ef5f4effb8364d353
USB: EHCI: fix remote-wakeup regression

commit d1f114d12bb4db3147e1b1342ae31083c5a79c84 upstream

This patch (as1097) fixes a bug in the remote-wakeup handling in
ehci-hcd.  The driver currently does not keep track of whether the
change-suspend feature is enabled for each port; the feature is
automatically reset the first time it is read.  But recent changes to
the hub driver require that the feature be read at least twice in
order to work properly.

A bit-vector is added for storing the change-suspend feature values.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ehci-hub.c
drivers/usb/host/ehci.h