]> git.baikalelectronics.ru Git - kernel.git/commit
USB: serial: add memory flags to usb_serial_generic_write_start
authorJohan Hovold <jhovold@gmail.com>
Wed, 9 Oct 2013 15:01:11 +0000 (17:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Oct 2013 00:00:26 +0000 (17:00 -0700)
commitd7c5777d19b1ef1f7bc6fb5d96de42bf1c107735
treeab684c393c0c268fd556179d405de1cc982093fa
parent0de3fa7282246f3c6655b115f2d84ee6b60ef670
USB: serial: add memory flags to usb_serial_generic_write_start

Add memory-flags parameter to usb_serial_generic_write_start which is
called from write, resume and completion handler, all with different
allocation requirements.

Note that by using the memory flag to determine when called from the
completion handler, everything will work as before even if the
completion handler is run with interrupts enabled (as suggested).

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/generic.c