commit | 06b7e43aa204cedc16ff1d1e04bbfa734e8cc087 | [log] [tgz] |
---|---|---|
author | Hemant Kumar <hemantk@codeaurora.org> | Thu Jan 19 22:13:50 2012 -0800 |
committer | Hemant Kumar <hemantk@codeaurora.org> | Fri Jan 20 15:34:16 2012 -0800 |
tree | 256a7c0fa53aa03d9ca46c53ad957a74af2d9382 | |
parent | 1aa4848c00a370a2d7cf5d779da055fce19f037d [diff] |
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: Hemant Kumar <hemantk@codeaurora.org>