]> git.ipfire.org Git - people/arne_f/kernel.git/commit
USB: serial: option: add ZLP support for 0x1bc7/0x9010
authorDaniele Palmas <dnlplm@gmail.com>
Thu, 19 Dec 2019 10:07:07 +0000 (11:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jan 2020 19:07:04 +0000 (20:07 +0100)
commit60ee12c9e0b0b8a1d0650948275ae312c1d4a9f9
tree7a3bcc742973cc8dbf7322a4e6c91b42a579722a
parent24e0769fdbe99533582f3924438fc5de87bae198
USB: serial: option: add ZLP support for 0x1bc7/0x9010

commit 2438c3a19dec5e98905fd3ffcc2f24716aceda6b upstream.

Telit FN980 flashing device 0x1bc7/0x9010 requires zero packet
to be sent if out data size is is equal to the endpoint max size.

Signed-off-by: Daniele Palmas <dnlplm@gmail.com>
[ johan: switch operands in conditional ]
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/option.c
drivers/usb/serial/usb-wwan.h
drivers/usb/serial/usb_wwan.c