[PATCH 0/2] USB: serial: do not forward USB errors from write

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi again,

Here's the equivalent patch for write(). Again most drivers currently return
errors from usb_submit_urb directly.

Note that one driver (navman) returns -EOPNOTSUPP in write and that this would
now be mapped to -EIO. Perhaps this is not desirable and we should push
usb_translate_error into the drivers after all (for both open() and write())?

Thanks,
Johan


Johan Hovold (2):
  USB: serial: fix whitespace issues
  USB: serial: do not forward USB specific errors in write

 drivers/usb/serial/usb-serial.c |   19 +++++++++++--------
 1 files changed, 11 insertions(+), 8 deletions(-)

-- 
1.7.7.2

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux