USB: f_mtp: Fix corner cases in MTP driver while syncing
Currently if USB composition switch happens while file transfer is happening either from/to device, ep_queue fails and sets device state to ERROR even if device state is already set to OFFLINE in function disable call. As part of ioctl call, if the state is not offline, moving the device state to READY and returning the error. Since the device state is marked as READY, the next write call tries to queue the request to hardware and is blocked and due to this, userspace is not calling the release function. Hence next mtp open fails even after cable reconnection. Signed-off-by:Vijayavardhan Vennapusa <vvreddy@codeaurora.org> Change-Id: Ia8cbd1cd8c81b90389900b83744b2bed89068db5 Signed-off-by:
Hemant Kumar <hemantk@codeaurora.org>
Loading
Please register or sign in to comment