Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5244396imu; Tue, 15 Jan 2019 13:58:51 -0800 (PST) X-Google-Smtp-Source: ALg8bN4JqaF5DbaZrY/I4hiF/t/4zk8yaFe76Ml1qPqDfkHnKYTuwbMPSBPNsWgkh/l486dDDYMu X-Received: by 2002:a63:a553:: with SMTP id r19mr5710345pgu.53.1547589531006; Tue, 15 Jan 2019 13:58:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547589530; cv=none; d=google.com; s=arc-20160816; b=UvrgFrBLQk+LubAuuG2yqGHNQsy3yOIKzSCce8TVnbikDux3O3jKvvPCjxjPIEWDRo ywjOPajNyOlvMZA018M/bDh2xeR5JJ2rGO2mhxvFneyXnIVdiqP1INn4TwTWUdbRz0/y wwCOKgd71etWsrc4qS/7UrG+RG65JAlKFY3PmKc1QnqnfI/hZGFstuiu33BcJ3VIkerZ zQON6l3UcT2WqAkTsqptG8y3RD7CT0xgCVMLfPSvAgsd9fO2tg/GfNhgGIoo4k1hluW8 eLRfxbuVBor6fVi6e7AQybIqKvkFtWl7wwYhaZh4T8FhstAXUrE9xjRidIfbf9cDVtZj V6Tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=rT0zIEmBpCry7CZ8qe5Szoc2QyHa0YaTOvJkEg+T4lw=; b=n19bT+i3Wj1cBFyxuih1WWQhw0I9SaddTdFXKj6aBcKlJXX3gRTzYEIVW6FenanK6e 43gf4c91p/KRQbrGitGmqMD6CrLXLkz2RcgPgyiQ0Xrj1vkBnDtXVqMJ5BndK3K8E+G6 VbW91AR6rn0hZHl6zA5RosR/MTN2VaERwcrZkYJzvcu0B7uUNRldSN4BkO4ZN4vOn89u BEmVeB60TSe0mZrbXbHkQyKssZ3Xke9zlk3Et77ucx2jsBulCH9uWRPBkNlegeMrkhyS pvTwW/spKyuLUscuPHzQ1Ok+aJBUD6D2+4ueyuclj7GN5BJMM+qd4pXx6ATyoA4DN5Sx FaxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xauJ989U; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e1si4648009pln.55.2019.01.15.13.58.35; Tue, 15 Jan 2019 13:58:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xauJ989U; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387521AbfAOQoV (ORCPT + 99 others); Tue, 15 Jan 2019 11:44:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:33904 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387478AbfAOQoS (ORCPT ); Tue, 15 Jan 2019 11:44:18 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3E4DD2054F; Tue, 15 Jan 2019 16:44:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547570657; bh=d771wyc+a4j9kCCUlrrckyzUc4DXlUMiWmNzUMxUUl0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xauJ989UnGcgJuElsW7bOP3hS86ceecL9NrXm15ieYt07EaYRecmngW5AcEXVD1Tp 7h15sG6oOTPs8dF4GlvwwiisI146v9gLVtCW573wzB5tRZNH8QSgGgzE/DOAgBbvXc dkfgW1Sh53Yzt4jXrHYeOpAIoV8y2nR2l2Wpo644= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Daniele Palmas Subject: [PATCH 4.20 23/57] usb: cdc-acm: send ZLP for Telit 3G Intel based modems Date: Tue, 15 Jan 2019 17:36:04 +0100 Message-Id: <20190115154912.000358238@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190115154910.734892368@linuxfoundation.org> References: <20190115154910.734892368@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.20-stable review patch. If anyone has any objections, please let me know. ------------------ From: Daniele Palmas commit 34aabf918717dd14e05051896aaecd3b16b53d95 upstream. Telit 3G Intel based modems require zero packet to be sent if out data size is equal to the endpoint max packet size. Signed-off-by: Daniele Palmas Cc: stable Signed-off-by: Greg Kroah-Hartman --- drivers/usb/class/cdc-acm.c | 7 +++++++ 1 file changed, 7 insertions(+) --- a/drivers/usb/class/cdc-acm.c +++ b/drivers/usb/class/cdc-acm.c @@ -1865,6 +1865,13 @@ static const struct usb_device_id acm_id .driver_info = IGNORE_DEVICE, }, + { USB_DEVICE(0x1bc7, 0x0021), /* Telit 3G ACM only composition */ + .driver_info = SEND_ZERO_PACKET, + }, + { USB_DEVICE(0x1bc7, 0x0023), /* Telit 3G ACM + ECM composition */ + .driver_info = SEND_ZERO_PACKET, + }, + /* control interfaces without any protocol set */ { USB_INTERFACE_INFO(USB_CLASS_COMM, USB_CDC_SUBCLASS_ACM, USB_CDC_PROTO_NONE) },