usb: musb: Ensure rx reinit occurs for shared_fifo endpoints
authorAndrew Goodbody <andrew.goodbody@cambrionix.com>
Tue, 31 May 2016 15:05:26 +0000 (10:05 -0500)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 11 Jul 2016 15:10:27 +0000 (11:10 -0400)
commit4565cdc2932dd0070e97b8e9c0d832ba70ea6f07
tree48401d00f16f8738ff7c8712f01a087a7c70c243
parent829c2e87f0552c3ade480311f57f88cb7048aed9
usb: musb: Ensure rx reinit occurs for shared_fifo endpoints

[ Upstream commit f3eec0cf784e0d6c47822ca6b66df3d5812af7e6 ]

shared_fifo endpoints would only get a previous tx state cleared
out, the rx state was only cleared for non shared_fifo endpoints
Change this so that the rx state is cleared for all endpoints.
This addresses an issue that resulted in rx packets being dropped
silently.

Signed-off-by: Andrew Goodbody <andrew.goodbody@cambrionix.com>
Cc: stable@vger.kernel.org
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/usb/musb/musb_host.c