linux-sg2042/drivers/usb/serial
Johan Hovold c6249ff752 USB: serial: do not forward USB specific errors in write
Use usb_translate_errors() to map USB-specific errors to errors
appropriate for user space (ENOMEM, ENODEV and EIO) in write.

Currently almost all serial drivers simply forward error codes from the
stack (e.g. from usb_submit_urb()), but these codes often have
different meanings in user-space. Doing the mapping in usb-serial core
simplifies driver code and allows for more consistent error reporting.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-11-15 10:49:42 -08:00
..
Kconfig usb: fix ipw.c build error, select USB_SERIAL_WWAN 2011-08-24 15:06:53 -07:00
Makefile Revert "USB: sam-ba: add driver for Atmel SAM Boot Assistant (SAM-BA)" 2011-04-13 16:48:25 -07:00
Makefile-keyspan_pda_fw
aircable.c usb: Add module.h to drivers/usb consumers who really use it. 2011-10-31 19:31:25 -04:00
ark3116.c tty: remove filp from the USB tty ioctls 2011-02-17 11:59:14 -08:00
belkin_sa.c USB: serial: remove changelogs and old todo entries 2011-11-15 10:31:03 -08:00
belkin_sa.h USB: belkin_sa.h: checkpatch cleanups 2010-05-20 13:21:46 -07:00
bus.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
ch341.c USB: ch341: forward USB errors to USB serial core 2011-11-15 10:47:42 -08:00
console.c usb-console: pass baud from console to the initial tty open 2010-05-20 13:21:32 -07:00
cp210x.c USB: cp210x: forward USB errors to USB serial core 2011-11-15 10:47:42 -08:00
cyberjack.c USB: serial: remove unnecessary bulk-urb re-fills 2011-11-15 10:35:27 -08:00
cypress_m8.c USB: serial: remove unnecessary reinitialisations of urb->dev 2011-11-15 10:33:16 -08:00
cypress_m8.h USB: cypress_m8.h: checkpatch cleanups 2010-05-20 13:21:46 -07:00
digi_acceleport.c USB: serial: remove unnecessary reinitialisations of urb->dev 2011-11-15 10:33:16 -08:00
empeg.c USB: empeg: reimplement using generic framework 2010-05-20 13:21:48 -07:00
ezusb.c
ezusb_convert.pl
ftdi_sio.c USB: ftdi_sio.c: Use ftdi async_icount structure for TIOCMIWAIT, as in other drivers 2011-10-18 13:46:31 -07:00
ftdi_sio.h USB: Add new FT232H chip to drivers/usb/serial/ftdi_sio.c 2011-06-27 13:46:44 -07:00
ftdi_sio_ids.h USB: ftdi_sio: Support TI/Luminary Micro Stellaris BD-ICDI Board 2011-10-18 13:42:07 -07:00
funsoft.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
garmin_gps.c USB: serial: remove unnecessary bulk-urb re-fills 2011-11-15 10:35:27 -08:00
generic.c USB: serial: add support for multiple read urbs 2011-11-15 10:46:13 -08:00
hp4x.c USB serial: make USB device id constant 2010-03-02 14:54:16 -08:00
io_16654.h
io_edgeport.c USB: serial: remove unnecessary reinitialisations of urb->dev 2011-11-15 10:33:16 -08:00
io_edgeport.h Fix common misspellings 2011-03-31 11:26:23 -03:00
io_ionsp.h USB: io_edgeport: checkpatch cleanups 2010-05-20 13:21:47 -07:00
io_tables.h USB serial: add missing .usb_driver field in serial drivers 2011-01-22 18:38:59 -08:00
io_ti.c USB: serial: remove unnecessary bulk-urb re-fills 2011-11-15 10:35:27 -08:00
io_ti.h USB: io_edgeport: checkpatch cleanups 2010-05-20 13:21:47 -07:00
io_usbvend.h USB: io_edgeport: checkpatch cleanups 2010-05-20 13:21:47 -07:00
ipaq.c USB: serial: remove changelogs and old todo entries 2011-11-15 10:31:03 -08:00
ipw.c USB: ipw: convert to usb-wwan framework 2011-08-22 15:21:16 -07:00
ir-usb.c USB: serial: remove changelogs and old todo entries 2011-11-15 10:31:03 -08:00
iuu_phoenix.c USB: iuu_phoenix: forward USB errors to USB serial core 2011-11-15 10:47:43 -08:00
iuu_phoenix.h
keyspan.c USB: serial: remove unnecessary reinitialisations of urb->dev 2011-11-15 10:33:16 -08:00
keyspan.h tiocmset: kill the file pointer argument 2011-02-17 11:52:43 -08:00
keyspan_pda.c USB: serial: remove unnecessary reinitialisations of urb->dev 2011-11-15 10:33:16 -08:00
keyspan_usa26msg.h
keyspan_usa28msg.h
keyspan_usa49msg.h
keyspan_usa67msg.h
keyspan_usa90msg.h
kl5kusb105.c tiocmset: kill the file pointer argument 2011-02-17 11:52:43 -08:00
kl5kusb105.h USB: kl5kusb105.h: checkpatch cleanups 2010-05-20 13:21:47 -07:00
kobil_sct.c USB: serial: remove unnecessary reinitialisations of urb->dev 2011-11-15 10:33:16 -08:00
kobil_sct.h USB: kobil_sct.h: checkpatch cleanups 2010-05-20 13:21:47 -07:00
mct_u232.c USB: serial: remove unnecessary reinitialisations of urb->dev 2011-11-15 10:33:16 -08:00
mct_u232.h Update broken web addresses in the kernel. 2010-10-18 11:03:14 +02:00
mos7720.c USB: serial: remove unnecessary reinitialisations of urb->dev 2011-11-15 10:33:16 -08:00
mos7840.c USB: serial: remove unnecessary reinitialisations of urb->dev 2011-11-15 10:33:16 -08:00
moto_modem.c USB: moto_modem: Add USB identifier for the Motorola VE240. 2011-04-29 16:45:21 -07:00
navman.c USB: add device IDs for igotu to navman 2010-08-23 20:50:15 -07:00
omninet.c USB: serial: remove unnecessary bulk-urb re-fills 2011-11-15 10:35:27 -08:00
opticon.c USB: serial: remove unnecessary reinitialisations of urb->dev 2011-11-15 10:33:16 -08:00
option.c USB: option: add various ZTE device network interfaces to the blacklist 2011-09-18 01:23:23 -07:00
oti6858.c USB: oti6858: forward USB errors to USB serial core 2011-11-15 10:47:44 -08:00
oti6858.h
pl2303.c USB: pl2303: use usb_serial_generic_open 2011-11-15 10:43:46 -08:00
pl2303.h USB: pl2303: add id for SMART device 2011-09-26 15:34:50 -07:00
qcaux.c USB serial: add missing .usb_driver field in serial drivers 2011-01-22 18:38:59 -08:00
qcserial.c usb: Add module.h to drivers/usb consumers who really use it. 2011-10-31 19:31:25 -04:00
safe_serial.c USB: safe_serial: straighten out read processing 2010-05-20 13:21:49 -07:00
siemens_mpi.c USB serial: add missing .usb_driver field in serial drivers 2011-01-22 18:38:59 -08:00
sierra.c USB: serial: remove unnecessary reinitialisations of urb->dev 2011-11-15 10:33:16 -08:00
spcp8x5.c tty: remove filp from the USB tty ioctls 2011-02-17 11:59:14 -08:00
ssu100.c tty: remove filp from the USB tty ioctls 2011-02-17 11:59:14 -08:00
symbolserial.c USB: serial: remove unnecessary reinitialisations of urb->dev 2011-11-15 10:33:16 -08:00
ti_usb_3410_5052.c USB: serial: remove unnecessary reinitialisations of urb fields 2011-11-15 10:35:26 -08:00
ti_usb_3410_5052.h USB: ti_usb_3410_5052: adding multitech dialup fax/modem devices 2010-04-22 15:18:20 -07:00
usb-serial.c USB: serial: do not forward USB specific errors in write 2011-11-15 10:49:42 -08:00
usb-wwan.h tty: remove filp from the USB tty ioctls 2011-02-17 11:59:14 -08:00
usb_debug.c USB: usb_debug: use process_read_urb 2011-11-15 10:40:30 -08:00
usb_wwan.c PM / Runtime: Add macro to test for runtime PM events 2011-08-19 23:49:48 +02:00
visor.c USB: Add Samsung SGH-I500/Android modem ID switch to visor driver 2011-02-17 10:30:23 -08:00
visor.h USB: visor.h: checkpatch cleanups 2010-05-20 13:21:47 -07:00
vivopay-serial.c USB: serial: Add support for ViVOtech ViVOpay devices. 2010-03-02 14:54:57 -08:00
whiteheat.c USB: serial: remove unnecessary reinitialisations of urb->dev 2011-11-15 10:33:16 -08:00
whiteheat.h
zio.c USB Serial Driver: ZIO Motherboard 2010-05-20 13:21:32 -07:00