From patchwork Sat Mar 2 12:35:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kristian Evensen X-Patchwork-Id: 10836571 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EEDAC922 for ; Sat, 2 Mar 2019 12:36:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DABBC2AFC0 for ; Sat, 2 Mar 2019 12:36:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CF4FA2B8AD; Sat, 2 Mar 2019 12:36:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C736A2AFC0 for ; Sat, 2 Mar 2019 12:36:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726452AbfCBMgB (ORCPT ); Sat, 2 Mar 2019 07:36:01 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:38352 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726044AbfCBMgB (ORCPT ); Sat, 2 Mar 2019 07:36:01 -0500 Received: by mail-wr1-f65.google.com with SMTP id g12so638237wrm.5 for ; Sat, 02 Mar 2019 04:36:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=0nQLb1xk0AitUUKgi0I9ytjU+1qmX4igw6Wv/XgOcY8=; b=QkizmuWt66PBZvsN+Dv4B49qc2c+/j3dY6jnM4scke8eAFDIpeFk1+KriC65q72Mir VNFB2DikUievla9q+6vTCaPOllhSOjSE8H4NDctSSK3p/5Tm5LB+ykdNINQTsb4mwgCk Eif+SxfnNLtjfiWZJk8fFl3R1JS3rqdklfLowuDSq/TNb0Kh+PcRuEvDV2hGiAH+Mu9w haGfKth2mun4MxiasGlsAoTn7sZJOfE8sejWNbO9/g4X+UOYiDevzFzv5PPIEoQ1mP70 AYvCMdSdY/guM8ZhEDV6gz0EB4HEJCWlz1ZQ5/xjq8ux1SZCBKt3o8HVoDODtPUn13YW IWnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=0nQLb1xk0AitUUKgi0I9ytjU+1qmX4igw6Wv/XgOcY8=; b=FByfk267PYkjwwCSmEYw4zJz9WP7pLQXvaoq8bKMatrzpG4yYw9x6BkQ71PWxQi5GK ugtvUhQPMzzQrgI+RtI2XBsyJwmf5Fc4P2IkN3Yg7ApygN6CBBga5Fw8vjIJD8btfqhf AkhIMlWJta7eiKWV2aNRp6mE3E4GNNIW5cMnzcl6eNlNKmvp19Yu4LrbxBRhn8MheihQ qY4X5eWG/3KXgfrum4OC3/A84zwx8FOSW/6kEtLMEsNeNZc+91EZU37sKVAfW1Nwqync zBhmKdGsDlSt5hctVtMLV9lqIpHSy/OfRmOyp+WaGuVQzdBM/STpAwgMg2IyDoLXgAvv CBdA== X-Gm-Message-State: APjAAAWtt+zs4j7DAMDEYjuHBDNSZVG9Vxun2NCy7SrfSmZ84dIIHHjS UrzdhvSrDl2ktZ+2+QZiGeIcxAfK X-Google-Smtp-Source: APXvYqwUWFAr7TaSJcERl6FivomfIoP2tCXaCoNFA2zlXan/nEjA4btRA7ypihRE3ft45YaOSkHU2w== X-Received: by 2002:a5d:6810:: with SMTP id w16mr6603190wru.62.1551530159271; Sat, 02 Mar 2019 04:35:59 -0800 (PST) Received: from kristrev-XPS-15-9570.lan ([193.213.155.210]) by smtp.gmail.com with ESMTPSA id y13sm680981wrw.31.2019.03.02.04.35.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 02 Mar 2019 04:35:58 -0800 (PST) From: Kristian Evensen To: linux-usb@vger.kernel.org, johan@kernel.org Cc: Kristian Evensen Subject: [PATCH] USB: serial: option: Add support for Quectel EM12 Date: Sat, 2 Mar 2019 13:35:53 +0100 Message-Id: <20190302123553.21345-1-kristian.evensen@gmail.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The Quectel EM12 is a Cat. 12 LTE modem. It behaves in the exactly the same way as the EP06 (including the dynamic configuration behavior), so the same checkes on reserved interfaces, etc. are needed. Signed-off-by: Kristian Evensen --- drivers/usb/serial/option.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index aef15497ff31..cc8932658e72 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c @@ -246,6 +246,7 @@ static void option_instat_callback(struct urb *urb); #define QUECTEL_PRODUCT_EC25 0x0125 #define QUECTEL_PRODUCT_BG96 0x0296 #define QUECTEL_PRODUCT_EP06 0x0306 +#define QUECTEL_PRODUCT_EM12 0x0512 #define CMOTECH_VENDOR_ID 0x16d8 #define CMOTECH_PRODUCT_6001 0x6001 @@ -1086,7 +1087,10 @@ static const struct usb_device_id option_ids[] = { .driver_info = RSVD(4) }, { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EP06, 0xff, 0xff, 0xff), .driver_info = RSVD(1) | RSVD(2) | RSVD(3) | RSVD(4) | NUMEP2 }, + { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EM12, 0xff, 0xff, 0xff), + .driver_info = RSVD(1) | RSVD(2) | RSVD(3) | RSVD(4) | NUMEP2 }, { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EP06, 0xff, 0, 0) }, + { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EM12, 0xff, 0, 0) }, { USB_DEVICE(CMOTECH_VENDOR_ID, CMOTECH_PRODUCT_6001) }, { USB_DEVICE(CMOTECH_VENDOR_ID, CMOTECH_PRODUCT_CMU_300) }, { USB_DEVICE(CMOTECH_VENDOR_ID, CMOTECH_PRODUCT_6003),