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:04:29 +0000 (20:04 +0100)
commitb458d107a2b9903a0b177c1da52d60eaa90f0116
tree2f7747de7ab534647b59e707a3251bb6d7f04888
parentbd1f27f5159d5e8302b2ec43f166fea8528c7c30
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