USB: u_serial: Don't free usb_requests in gs_close and reuse them
Commit: 950a3a3f "USB: Gadget: u_serial: Freeing usb requests as a part of gs_close" results in freeing requests and flushing the EP on every port close even if USB connection is present. These requests are allocated again on port open. Also, EP flush call may result in unclocked access of USB hardware if USB BUS state was suspended at the time of port_close. This patch fixes that and also addresses the original issue of gs_open allocating usb requests on every port_open by adding a condition to allocate USB requests in port open only if they are not already allocated. CRs-fixed: 591617 Change-Id: If2ab31fa1d36ea6119dc0ced13ade5ed93d85d86 Signed-off-by:Manu Gautam <mgautam@codeaurora.org>
Loading
Please register or sign in to comment