USB serial drivers
authorGanesh Varadarajan <ganesh@tuxtop.vxindia.veritas.com>
Sun, 17 Mar 2002 02:31:22 +0000 (18:31 -0800)
committerVojtech Pavlik <vojtech@suse.cz>
Sun, 17 Mar 2002 02:31:22 +0000 (18:31 -0800)
commitc3cdeb682c838761f04ed5c3046e3368a6298386
treeb70bb3f0211dfcb9441b3864f549cf691fbae856
parent869de8b7fd95ddce7a354cda4f0deddcb1e29e68
USB serial drivers

Several functions in the serial drivers can be called from bottom
half or interrupt context. They must use the GFP_ATOMIC flag for
calls to kmalloc() and usb_submit_urb().

Functions which must use GFP_ATOMIC:
1. All *_callback() functions.
2. Any code which is inside a spinlock.
3. write(), throttle(), unthrottle(), which may be called by
   the line discipline in bottom half context.

Functions which can use GFP_KERNEL:
1. open(), close(), startup(), shutdown(), set_termios().
16 files changed:
drivers/usb/serial/cyberjack.c
drivers/usb/serial/digi_acceleport.c
drivers/usb/serial/empeg.c
drivers/usb/serial/ftdi_sio.c
drivers/usb/serial/io_edgeport.c
drivers/usb/serial/ipaq.c
drivers/usb/serial/ir-usb.c
drivers/usb/serial/keyspan.c
drivers/usb/serial/keyspan_pda.c
drivers/usb/serial/kl5kusb105.c
drivers/usb/serial/mct_u232.c
drivers/usb/serial/omninet.c
drivers/usb/serial/pl2303.c
drivers/usb/serial/usbserial.c
drivers/usb/serial/visor.c
drivers/usb/serial/whiteheat.c