From patchwork Thu Dec 13 16:32:08 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: 10729097 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 6391E174F for ; Thu, 13 Dec 2018 16:32:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 544AF2C63A for ; Thu, 13 Dec 2018 16:32:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 483812C6A2; Thu, 13 Dec 2018 16:32:17 +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 DE0E72C685 for ; Thu, 13 Dec 2018 16:32:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729297AbeLMQcP (ORCPT ); Thu, 13 Dec 2018 11:32:15 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:40140 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729020AbeLMQcP (ORCPT ); Thu, 13 Dec 2018 11:32:15 -0500 Received: by mail-lj1-f196.google.com with SMTP id n18-v6so2319216lji.7 for ; Thu, 13 Dec 2018 08:32:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version :content-transfer-encoding; bh=aGXnSUo9BRKBVpwDeGwnMa976a1UXlkbj/6p8um52Os=; b=XtwqSvgvDK9ghpRccZe8iKG6QzwLEP3X2BQnRPNUJ9mjZLpBevbwUxQq9sI7Thf9VX vUEgpwboaU+By9uvZs8AlcIb9uyD0NGVc4O1zKk+KGJNgjHcN8rbCxU9vR33oPj+FZwz nLEBcL1k0WeArUmT/XM0mFoyiwCpGMWV6mS8ie2vHhW3BinKVh2tcgyifnwUM0BwAn+H wQd27etiA6x1Pws5cGz2pHofDixC3Ys+hPkvBdYGDDuQ2Nd2gmiSwpXeCRDDL2BEkse6 zvMKT3x0OrWf+vSKtrfPE1V0xXeWKdzfvzKHBfTn4HWSGT4Ne377+DXFU5DpNr6/GxDT fedw== 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:cc:subject:message-id:mime-version :content-transfer-encoding; bh=aGXnSUo9BRKBVpwDeGwnMa976a1UXlkbj/6p8um52Os=; b=rYmTcCaIxfn+mMuJLImaZnzdtXTQ32F74sWYW9FF3Op4Cwjbz6r0xJYQqTxAe0C5d/ IiSBrhQoG/J7AOcRih21PVKdSr1HF51PDUocSkzgyXj6RkhB1Mp4HM7Ezjmiubpopm5T nzgd1FocdlDIBizaCyZ6BcQClhn6BfFhBttbSNEPNGmkSsebRfxcwPShNjd815Po2g4I nXAulw4gmErC9b0SkMupeNV47k6bsOoKVfsRQiH2qG/lDYXClY2hilv2kiWjbL3X2LhC bqqF1jC1GuRBQMdKhB0So0QiKOQVACu7nEMyrtLgwovbdVc5Z4iQQDMWizTzsagcoN7I K11A== X-Gm-Message-State: AA+aEWbUGzCGaTnH2byQATJIWDu8eQ8jANw7pfo4Dx/ROdW7dtWCe+nf wyqlVIRP8dhSA5lmss2v6UjDBWzjCiFCTQ== X-Google-Smtp-Source: AFSGD/WsCaZT3kmyVG7xVP/9VqacXy+MuEPcHtIsSwgjS7OUFBcSqYuL2Fkbkqg5aEsCsR9bf0bmTQ== X-Received: by 2002:a2e:80d3:: with SMTP id r19-v6mr15226593ljg.151.1544718732934; Thu, 13 Dec 2018 08:32:12 -0800 (PST) Received: from localhost (h-102-249.A137.corp.bahnhof.se. [79.136.102.249]) by smtp.gmail.com with ESMTPSA id r29-v6sm370683ljd.44.2018.12.13.08.32.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 13 Dec 2018 08:32:12 -0800 (PST) Date: Thu, 13 Dec 2018 17:32:08 +0100 From: =?utf-8?q?J=C3=B6rgen?= Storvist To: linux-usb@vger.kernel.org Cc: johan@kernel.org Subject: [PATCH] usb: serial: option: add Telit LN940 series Message-ID: <20181213173208.000021ce@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 Telit LN940 series cellular modules. Covering both QMI and MBIM modes. usb-devices output (0x1900): T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 21 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1 P: Vendor=1bc7 ProdID=1900 Rev=03.10 S: Manufacturer=Telit S: Product=Telit LN940 Mobile Broadband S: SerialNumber=0123456789ABCDEF C: #Ifs= 5 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=ff Prot=ff Driver=qmi_wwan 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=00 Prot=00 Driver=option usb-devices output (0x1901): T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 20 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1 P: Vendor=1bc7 ProdID=1901 Rev=03.10 S: Manufacturer=Telit S: Product=Telit LN940 Mobile Broadband S: SerialNumber=0123456789ABCDEF 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= 1 Cls=02(commc) Sub=0e Prot=00 Driver=cdc_mbim I: If#= 5 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim Signed-off-by: Jörgen Storvist diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index 2304433..9865813 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c @@ -1164,6 +1164,10 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE_INTERFACE_CLASS(TELIT_VENDOR_ID, TELIT_PRODUCT_LE920A4_1213, 0xff) }, { USB_DEVICE(TELIT_VENDOR_ID, TELIT_PRODUCT_LE920A4_1214), .driver_info = NCTRL(0) | RSVD(1) | RSVD(2) | RSVD(3) }, + { USB_DEVICE(TELIT_VENDOR_ID, 0x1900), /* Telit LN940 series */ + .driver_info = NCTRL(0) | RSVD(1) }, + { USB_DEVICE_INTERFACE_CLASS(TELIT_VENDOR_ID, 0x1901, 0xff), /* Telit LN940 series */ + .driver_info = NCTRL(0) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, ZTE_PRODUCT_MF622, 0xff, 0xff, 0xff) }, /* ZTE WCDMA products */ { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0002, 0xff, 0xff, 0xff), .driver_info = RSVD(1) },