From patchwork Fri Dec 21 13:40:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=C3=B6rgen_Storvist?= X-Patchwork-Id: 10740451 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 27E7514DE for ; Fri, 21 Dec 2018 13:40:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 16FDF287A2 for ; Fri, 21 Dec 2018 13:40:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0AFB7287A5; Fri, 21 Dec 2018 13:40:56 +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 970F0287A4 for ; Fri, 21 Dec 2018 13:40:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390516AbeLUNkx (ORCPT ); Fri, 21 Dec 2018 08:40:53 -0500 Received: from mail-lj1-f182.google.com ([209.85.208.182]:42886 "EHLO mail-lj1-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728307AbeLUNkx (ORCPT ); Fri, 21 Dec 2018 08:40:53 -0500 Received: by mail-lj1-f182.google.com with SMTP id l15-v6so4757285lja.9 for ; Fri, 21 Dec 2018 05:40:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version :content-transfer-encoding; bh=gDJXb2kIIz0kvAS1ehyBdM5Kwvw0zJSiuRJ0sAq9C4U=; b=GtIzl29Qco4oDllVeruIU5qJxDAYuqXillYCe1fUwYvlPAK5Bj3nCDuF1tVjw43YOL U6EimeUX3cYvGddsrWTjv6KdgaLsO0IYds9Qcg7qGEYgEfEKUy9zqnoguOujnAc5SMHx c/KXwpVkccGYB9YriPafUyMfbJ1eWPAptEcWUY0cHro3KT4DyyuC00IbwHAoxUpEyE9A 7UbpSPTF6GlHtDmLlMMtMrq9rrx1uXH23i+l0vJPkginz4P9IDN54KAw6okybLVjqeEG rd9Ura42+54RM82Nvhh+CZhws9+3odGUeAJKkfRltXBcUG3QhMEyVP202/V006Zf4wKE cSkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-transfer-encoding; bh=gDJXb2kIIz0kvAS1ehyBdM5Kwvw0zJSiuRJ0sAq9C4U=; b=MPC24XKMzTzLMBCcqQ0CTP3P301BSbOEjpv43hqcgwoCvtOcaDHdKbB98dNrv83upO BB0Z7nLtWi5rmAf6ZacdJkQuGRd3OGFkdO2mJV5okP4h0SkhWGBkHgj3zSV1bx/ODr8P PmMFsnM/0KG/mqQyWgBpxnkUyZa7eFFwN2d3IL3htU7YvxkLQ0kfYR24bT93scaEXMLg bQ6DdUMZpxXosWC4imsd5QDTtntLVtfquYpvN/Xegd1iHgmsF0MaX9fir1mPSIcfFs34 WPA86MOYbP0mH60o4vU2iJPObNFZPNGrsAOvcPQ1LoH9E/GdfTBvV3QSirAYvvBmilnS 4Shw== X-Gm-Message-State: AA+aEWZNvXgP6+xnDg3OL6127P++0TClfTGWfQvV9SqOkT8tjhpLNiO3 LhNVtR1MSWX3aO+7XLPfvkVBR4/Dhik= X-Google-Smtp-Source: ALg8bN4ZFPTfDjGxM1Rc3oVhnQgOEfAAp5BH+/1JVKtDYWzkN/gPoHJSHBUObVRdfxor5nnIXysx2w== X-Received: by 2002:a2e:1bc5:: with SMTP id c66-v6mr1606571ljf.96.1545399650509; Fri, 21 Dec 2018 05:40:50 -0800 (PST) Received: from localhost (h-102-249.A137.corp.bahnhof.se. [79.136.102.249]) by smtp.gmail.com with ESMTPSA id a2-v6sm4742352lji.13.2018.12.21.05.40.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 21 Dec 2018 05:40:50 -0800 (PST) Date: Fri, 21 Dec 2018 14:40:44 +0100 From: =?utf-8?q?J=C3=B6rgen?= Storvist To: linux-usb@vger.kernel.org, johan@kernel.org Subject: USB: serial: option: add Fibocom NL678 series Message-ID: <20181221144044.00001656@gmail.com> X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; i686-w64-mingw32) 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 Added USB serial option driver support for Fibocom NL678 series cellular module: VID 2cb7 and PIDs 0x0104 and 0x0105. Reserved network and ADB interfaces. T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=2cb7 ProdID=0104 Rev=03.10 S: Manufacturer=Fibocom S: Product=Fibocom NL678-E Modem S: SerialNumber=12345678 C: #Ifs= 6 Cfg#= 1 Atr=a0 MxPwr=500mA I: If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option I: If#= 1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option I: If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option I: If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option I: If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan I: If#= 5 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42 Prot=01 Driver=(none) T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 3 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=2cb7 ProdID=0105 Rev=03.10 S: Manufacturer=Fibocom S: Product=Fibocom NL678-E Modem S: SerialNumber=12345678 C: #Ifs= 7 Cfg#= 1 Atr=a0 MxPwr=500mA I: If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option I: If#= 1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option I: If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option I: If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option I: If#= 4 Alt= 0 #EPs= 1 Cls=02(commc) Sub=06 Prot=00 Driver=cdc_ether I: If#= 5 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether I: If#= 6 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42 Prot=01 Driver=(none) Signed-off-by: Jörgen Storvist Acked-by: Johan Hovold diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index 1ce27f3..244f4a8 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c @@ -1955,6 +1955,10 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE_AND_INTERFACE_INFO(0x03f0, 0xa31d, 0xff, 0x06, 0x1b) }, { USB_DEVICE(0x1508, 0x1001), /* Fibocom NL668 */ .driver_info = RSVD(4) | RSVD(5) | RSVD(6) }, + { USB_DEVICE(0x2cb7, 0x0104), /* Fibocom NL678 series */ + .driver_info = RSVD(4) | RSVD(5) }, + { USB_DEVICE_INTERFACE_CLASS(0x2cb7, 0x0105, 0xff), /* Fibocom NL678 series */ + .driver_info = RSVD(6) }, { } /* Terminating entry */ }; MODULE_DEVICE_TABLE(usb, option_ids);