]> 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)
commit39124d9bad96348a63b83d92654bf1abd4f989c3
treeab684c393c0c268fd556179d405de1cc982093fa
parent66a9c45e14c27991697239cef5b2e2291d9e46e9
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