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)
commit818f60365a29ab1266d92c6a91094fbf93465ff8
treeab684c393c0c268fd556179d405de1cc982093fa
parent92ad247995c587e07cb67dcc8aafac4db636e394
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