Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1167351pxb; Wed, 29 Sep 2021 19:13:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzT/hwg+eU7AYMmkIDwhCKxYcyv08fJE0adYkoADUs+VZR1hgpQI5vnxxUF9USao5abD4Ak X-Received: by 2002:a17:906:a3c3:: with SMTP id ca3mr3696521ejb.337.1632968026688; Wed, 29 Sep 2021 19:13:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632968026; cv=none; d=google.com; s=arc-20160816; b=hONKANiBzTGz7YcaqdYQ4eq6o0uNCYnN6rcehnh0MZg2tZikUb0gYGPkyahCj14AOd 9Z8VDNim5KJ8AToG6eozhux8yx/NVaDEfViavBv88BuEgv0mH2hVd10k4p56cPZQu914 nW4VegcrnbBccJgUyUD8xmrTbFnzFAnFRlOAdnDAJ2vI0bszEaVEJvCLv4ZcMKEdG3oV 8ruiFV5qOJo4oxnVCJUsFR86HpSzGLZ3idoLiXUl7ip9YnMmfo/BFF5dgvBBy4GB/zcU Gya5YxSHAQb/t52monL7sH15xWKgegHZMhk3slF0heailCpwo/AdcmnEyqOaG43kxjEg AMRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Vx2XlZ4FegGZ4VBMiJz6zHP9tSJ66bvq6JyHo/xaLRU=; b=bwvPzvnxRQDKgxV/thg+QDOs6Y2qwq/E9WEMMU5r4ptu50TA1IDxcABITIw21exF27 hjHlBGU4ZR3+Umyp9qz1Wrf8kG+Ontb+BRnKqg/8KSpUn3tOMs8UZic5XPd4LPPJZ8mX oWGnk3Md87K8YD3bmiHf9Y5bYvTzQA1dvAEMJ+NXBpyG6/J+R9JmM6jxz4UE5DSxSAA1 ltzasDLgo74l3toDOLhpLweNDOS6/F0lWA0EWJkfOnL7wL2b59V5OjQVq6IS8vpBzAOo gRL/ZfKNZsBk/gIMbgRrrCP2jmresu2WNdQBGWSOx2lnAONoMHPBltXbK5tyStTACUKG /sKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RAnlGPDe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v5si1994914ejk.129.2021.09.29.19.13.22; Wed, 29 Sep 2021 19:13:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RAnlGPDe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347604AbhI3CNB (ORCPT + 99 others); Wed, 29 Sep 2021 22:13:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233941AbhI3CNB (ORCPT ); Wed, 29 Sep 2021 22:13:01 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABBC2C06161C; Wed, 29 Sep 2021 19:11:19 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id r7so3069894pjo.3; Wed, 29 Sep 2021 19:11:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Vx2XlZ4FegGZ4VBMiJz6zHP9tSJ66bvq6JyHo/xaLRU=; b=RAnlGPDeNFcKcGDmEN+pDC5DDMNviROi76zg0TVSVHUUVGPZ9LFwt+KYvpsk9+ZcYp v7y1xgy8cBsya5aKI2561+92pJhhZYwn5vobSRD9cTqALiIETJ0eKdzg0ZgPDBCltRTD /SXQM9fartt1GRZtRMVOUGvOsiK/gd+zOj1YeYckoKv1i5XxYB6dIqZVh3EgSOJnVhwF 76eq7gI22EHZka0VzL7DeLK/9/raG0t1Hq6bGOcUbnOlq7wZkUz5/3L4w4+qgQJm3XbQ 76G+KwI59d0gtIPABwWWtuH4pvoAOJcHS8CwUzmOI8ZyUXwfYofafCc54NMX3s/5NgAi SpJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Vx2XlZ4FegGZ4VBMiJz6zHP9tSJ66bvq6JyHo/xaLRU=; b=sC6GBqavN7L8K0A4tFFXgd40v/fYL+Pz/5cNRX6fZGTx5ZYcWmmI9pp/6ecgLWkSzE 8uRa04mCN6SRAs6uOZvfpJ60dKqVUn0QCRqxR4gSa1Y+lM4rBs4/S34NKAtfcJ+2PmFJ PRA9FOTobR4a+h98pgC6FH5UgjK5p1QeQeXJ+kLm5LH0SStIWXhb/6EKDtjqAHnab7Gt LMKZzF+1pbyhTYO112/WlUWR6ozmEdYctZr45Zs9N7puD/u/3TaomSgH6qiyY+YCG4af KYtaU/bKGt6PEMyVJ9MbNbI/RjaRc6xRJSjwbz/sLMZHL5E44sUVBZZ9E4dCf1D28KTZ D6EQ== X-Gm-Message-State: AOAM531TD03eUN0VJ5EQPTiwXjHe/5j73vMoDnUoTzfx0nNxy1Zbj99n mk4yltCGTM+5JIkMGMBx0DomMwUr6N8= X-Received: by 2002:a17:90a:7892:: with SMTP id x18mr3318084pjk.95.1632967879204; Wed, 29 Sep 2021 19:11:19 -0700 (PDT) Received: from ruantu-linux-1.. ([211.72.215.15]) by smtp.gmail.com with ESMTPSA id y24sm928448pfo.69.2021.09.29.19.11.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Sep 2021 19:11:18 -0700 (PDT) From: Yu-Tung Chang To: johan@kernel.org Cc: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Yu-Tung Chang Subject: [PATCH v1] USB: serial: option: add Quectel EC200S-CN module support Date: Thu, 30 Sep 2021 10:11:12 +0800 Message-Id: <20210930021112.330396-1-mtwget@gmail.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add usb product id of the Quectel EC200S-CN module. usb-devices output for 0x6002: T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 3 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1 P: Vendor=2c7c ProdID=6002 Rev=03.18 S: Manufacturer=Android S: Product=Android S: SerialNumber=0000 C: #Ifs= 5 Cfg#= 1 Atr=e0 MxPwr=500mA I: If#=0x0 Alt= 0 #EPs= 1 Cls=02(commc) Sub=06 Prot=00 Driver=cdc_ether I: If#=0x1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether I: If#=0x2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none) I: If#=0x3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none) I: If#=0x4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none) Signed-off-by: Yu-Tung Chang --- drivers/usb/serial/option.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index 6cfb5d33609f..f65a2e7699bf 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c @@ -251,6 +251,7 @@ static void option_instat_callback(struct urb *urb); #define QUECTEL_PRODUCT_EP06 0x0306 #define QUECTEL_PRODUCT_EM12 0x0512 #define QUECTEL_PRODUCT_RM500Q 0x0800 +#define QUECTEL_PRODUCT_EC200S_CN 0x6002 #define QUECTEL_PRODUCT_EC200T 0x6026 #define CMOTECH_VENDOR_ID 0x16d8 @@ -1128,6 +1129,7 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_RM500Q, 0xff, 0, 0) }, { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_RM500Q, 0xff, 0xff, 0x10), .driver_info = ZLP }, + { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EC200S_CN, 0xff, 0, 0) }, { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EC200T, 0xff, 0, 0) }, { USB_DEVICE(CMOTECH_VENDOR_ID, CMOTECH_PRODUCT_6001) }, -- 2.33.0