Received: by 10.223.185.116 with SMTP id b49csp6419870wrg; Wed, 28 Feb 2018 09:06:13 -0800 (PST) X-Google-Smtp-Source: AG47ELv4fhiLR7n/9KHQdAlPgKuRGhI2jNvP01dETHxFpCkPD1z6hSWOSC0CQIaGQrV8YA5jkw8a X-Received: by 2002:a17:902:7686:: with SMTP id m6-v6mr3421947pll.199.1519837573410; Wed, 28 Feb 2018 09:06:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519837573; cv=none; d=google.com; s=arc-20160816; b=Dsye1gM0/8nMG0LeKQwYFl1o/Ki7qhzsvGedLG2+0HRYnDmhLxmtsgZ9G04lqrz1xO Xby+kShmjaAUY8x+jVaE1/kZnNYbbcFObKppgKPiSrJeFJWRFMGOBuaoA36BcYTmOIGH 9Wqw9qY2uaLqDcrQQt2pq3tIehWhDeb8DfJVAJ7JzxHQLhKvANKnMmzjxTSyB+PGMbk1 BFbsPvCNvLrzP2NkFdIPOI3Z8GYWHVZoM7y7xmy2Hlzlk+EXsFkv13pXQ4LdT09Wd0Pz yvkByHn3MytSfk8wl9gOZGFweaUXdwM0N6ZV4L0VxeTcd9xrryxAv+RiCI2BFng8A4v+ 2y9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition :arc-authentication-results; bh=SUDuwqOeEFiT90MqTdnUwnlB9UwElEy3z20fqo0fgcg=; b=kwWkuwZFR6LOI9Hl86zv6lRQ9f3emBxu+HRRWTWgGVpkW59sskx77mMEkZWyGpQjn7 AUOAjyvXJFkIVXgAgUYQGtcwqFbCctmVb+qG+hZOfrKtwp+u+tmdGX4PzbLIjtvQ6k1d llXhmVzdOhM3/AJqu0MqUAmFgleng15fKORkREk32n3HOC+rGO9BimKhCu+2qC28lQs3 B1ti6tZUBGgMvgdehuY/qpqhDnfJI3nfm/BndXdAUIq2lCXlcx0AGn9QI5gd2eZGa3Oy mtzBe9QIUVtdk7LcQ7pHRZLngQ5joD4DRNFr7t2bJc6g/8Oc02FG0oyVvEO8a02QnJmE QY8g== ARC-Authentication-Results: i=1; mx.google.com; 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 f5si1232944pgv.476.2018.02.28.09.05.42; Wed, 28 Feb 2018 09:06:13 -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; 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 S1753225AbeB1RCq (ORCPT + 99 others); Wed, 28 Feb 2018 12:02:46 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:34359 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933756AbeB1Pvv (ORCPT ); Wed, 28 Feb 2018 10:51:51 -0500 Received: from [2a02:8011:400e:2:6f00:88c8:c921:d332] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1er3Yi-0006Xh-8x; Wed, 28 Feb 2018 15:22:20 +0000 Received: from ben by deadeye with local (Exim 4.90_1) (envelope-from ) id 1er3Yh-000077-0u; Wed, 28 Feb 2018 15:22:19 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Johan Hovold" , "=?UTF-8?q?SZ=20Lin=20=28=E6=9E=97=E4=B8=8A=E6=99=BA=29?=" , "Taiyi Wu" Date: Wed, 28 Feb 2018 15:20:18 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 126/254] USB: serial: option: adding support for YUGA CLM920-NC5 In-Reply-To: X-SA-Exim-Connect-IP: 2a02:8011:400e:2:6f00:88c8:c921:d332 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.55-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: SZ Lin (林上智) commit 3920bb713038810f25770e7545b79f204685c8f2 upstream. This patch adds support for YUGA CLM920-NC5 PID 0x9625 USB modem to option driver. Interface layout: 0: QCDM/DIAG 1: ADB 2: MODEM 3: AT 4: RMNET Signed-off-by: Taiyi Wu Signed-off-by: SZ Lin (林上智) Signed-off-by: Johan Hovold Signed-off-by: Ben Hutchings --- drivers/usb/serial/option.c | 9 +++++++++ 1 file changed, 9 insertions(+) --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c @@ -237,6 +237,8 @@ static void option_instat_callback(struc /* These Quectel products use Qualcomm's vendor ID */ #define QUECTEL_PRODUCT_UC20 0x9003 #define QUECTEL_PRODUCT_UC15 0x9090 +/* These Yuga products use Qualcomm's vendor ID */ +#define YUGA_PRODUCT_CLM920_NC5 0x9625 #define QUECTEL_VENDOR_ID 0x2c7c /* These Quectel products use Quectel's vendor ID */ @@ -698,6 +700,10 @@ static const struct option_blacklist_inf .reserved = BIT(4) | BIT(5), }; +static const struct option_blacklist_info yuga_clm920_nc5_blacklist = { + .reserved = BIT(1) | BIT(4), +}; + static const struct usb_device_id option_ids[] = { { USB_DEVICE(OPTION_VENDOR_ID, OPTION_PRODUCT_COLT) }, { USB_DEVICE(OPTION_VENDOR_ID, OPTION_PRODUCT_RICOLA) }, @@ -1206,6 +1212,9 @@ static const struct usb_device_id option { USB_DEVICE(QUALCOMM_VENDOR_ID, QUECTEL_PRODUCT_UC15)}, { USB_DEVICE(QUALCOMM_VENDOR_ID, QUECTEL_PRODUCT_UC20), .driver_info = (kernel_ulong_t)&net_intf4_blacklist }, + /* Yuga products use Qualcomm vendor ID */ + { USB_DEVICE(QUALCOMM_VENDOR_ID, YUGA_PRODUCT_CLM920_NC5), + .driver_info = (kernel_ulong_t)&yuga_clm920_nc5_blacklist }, /* Quectel products using Quectel vendor ID */ { USB_DEVICE(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EC21), .driver_info = (kernel_ulong_t)&net_intf4_blacklist },