staging: most: usb: clear functional stall on OUT endpoint
authorChristian Gromm <christian.gromm@microchip.com>
Tue, 21 Nov 2017 14:05:15 +0000 (15:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Nov 2017 08:20:36 +0000 (09:20 +0100)
commit8f20f2dca8b390b4fe9e40ed6196c805a3f07b66
treec497b6f4de948b5d86577f4baeca5f6d9f6fedca
parent7e0d35423350d118982096d151140616bbad147d
staging: most: usb: clear functional stall on OUT endpoint

For the MOST packet channel there are two dedicated USB endpoints. But
internally the hardware has actually one channel for data forwarding from
and to MOST. To have the hardware clean up its state machine correctly in
case of an error, both USB pipes need to be reset.  This patch triggers the
host to also clear the OUT endpoint's halt condition in case an IN endpoint
has signaled to be stalled.

Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/usb/usb.c