]> git.baikalelectronics.ru Git - kernel.git/commit
USB: EHCI: change toggle only upon successful reset
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 11 Oct 2013 15:28:44 +0000 (11:28 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Oct 2013 23:37:46 +0000 (16:37 -0700)
commit482e3bfd254146b944346f93ee843452fb9a5db8
tree12a386eae8d699599da2c755d19c3a3fd2d080e3
parent128966f62ce5ad1d7d8ec8d2913a3de66b582b08
USB: EHCI: change toggle only upon successful reset

ehci-hcd uses a value of 0 in an endpoint's toggle flag to indicate
that the endpoint has been reset (and therefore the Data Toggle bit
needs to be cleared in the endpoint's QH overlay region).

The toggle flag should be set to 0 only when ehci_endpoint_reset()
succeeds.  This patch moves the usb_settoggle() call into the
appropriate branch of the "if" statement.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-hcd.c