]> git.baikalelectronics.ru Git - kernel.git/commit
usb:cdns3: Fix for CV CH9 running with g_zero driver.
authorPawel Laszczak <pawell@cadence.com>
Mon, 7 Oct 2019 06:39:11 +0000 (07:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Oct 2019 10:56:26 +0000 (12:56 +0200)
commitcd97d33ff2ebee7845a0449089d746c369fd94a7
tree88d548317f37b3756cc33e701f6d0a02fb8268d5
parentfbbb6284b9c8dc214dc99edf18b044f1c1606a15
usb:cdns3: Fix for CV CH9 running with g_zero driver.

Patch fixes issue with Halt Endnpoint Test observed during using g_zero
driver as DUT. Bug occurred only on some testing board.

Endpoint can defer transition to Halted state if endpoint has pending
requests.
Patch add additional condition that allows to return correct endpoint
status during Get Endpoint Status request even if the halting endpoint
is in progress.

Reported-by: Rahul Kumar <kurahul@cadence.com>
Signed-off-by: Rahul Kumar <kurahul@cadence.com>
Signed-off-by: Pawel Laszczak <pawell@cadence.com>
Fixes: 1eebf7f048fa ("usb: cdns3: Add Cadence USB3 DRD Driver")
Tested-by: Roger Quadros <rogerq@ti.com>
Link: https://lore.kernel.org/r/1570430355-26118-1-git-send-email-pawell@cadence.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/cdns3/ep0.c