Commit 06b7e43a authored by Hemant Kumar's avatar Hemant Kumar
Browse files

usb: mdm_bridge: Do not submit subsequent tx URBs in case of -EPROTO



When a write callback returns -EPROTO, treat it as if the device is
disconnected and disallow further calls to write. This will allow the
caller to gracefully handle the error until a disconnect event finally
comes and is able to notify the caller via a platform_device removal.

Change-Id: Ic780281cb5486cb5177cd642d244d2451fde1d07
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent 1aa4848c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment