]> git.baikalelectronics.ru Git - kernel.git/commit
USB: EHCI: add condition for delay during the resume
authorPeter Chen <peter.chen@freescale.com>
Thu, 18 Oct 2012 04:24:43 +0000 (12:24 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Oct 2012 21:40:50 +0000 (14:40 -0700)
commitaefa9c83b2ef2c8c30519228350003257130e2fc
tree202135972f6010f17312103e05642bbbed3cda07
parent5fceddb8aa0edb3460673caf3db4a8bb6c8ed5bb
USB: EHCI: add condition for delay during the resume

Without this condition, all controllers will do this delay,
and increase the resume time.

Only enabled and unsuspended port needs this delay, but
Some buggy hardware(like Synopsys usb controller) will
clear suspend bit once they receive/send resume signal,
so it takes resume bit as consideration.

Tested it at Freescale i.mx6q Sabrelite board.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-hub.c