usb: cdc-acm: send zero packet for intel 7260 modem
authorLu Baolu <baolu.lu@linux.intel.com>
Wed, 6 Jan 2016 07:10:04 +0000 (15:10 +0800)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 15 Feb 2016 20:45:20 +0000 (15:45 -0500)
commita7b1bf8b60e4fd4deb414cabc9f218eff244d4f9
tree3c63edcbb0c89ea2f59a72977ddd85fbbfd7ba9d
parent6cdc037a9b649209051e3c982d5fcaf31274cb55
usb: cdc-acm: send zero packet for intel 7260 modem

[ Upstream commit ffdb1e369a73b380fce95b05f8498d92c43842b4 ]

For Intel 7260 modem, it is needed for host side to send zero
packet if the BULK OUT size is equal to USB endpoint max packet
length. Otherwise, modem side may still wait for more data and
cannot give response to host side.

Signed-off-by: Konrad Leszczynski <konrad.leszczynski@intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/usb/class/cdc-acm.c
drivers/usb/class/cdc-acm.h