From patchwork Wed May 3 08:30:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Daniele Palmas X-Patchwork-Id: 757887 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3wHrvT2QyFz9s78 for ; Wed, 3 May 2017 18:30:29 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Wz94H5/s"; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752311AbdECIa1 (ORCPT ); Wed, 3 May 2017 04:30:27 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:35566 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752098AbdECIaY (ORCPT ); Wed, 3 May 2017 04:30:24 -0400 Received: by mail-wr0-f195.google.com with SMTP id g12so21514729wrg.2 for ; Wed, 03 May 2017 01:30:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=QdVx4s7MB1UE/FTT3yTdHDmooPsphLJHNis87Ho3FgQ=; b=Wz94H5/sKwaDOG92XyP1sbMgEsdOEqgMfC6788Cyk44Kz1zQ5NwlgvMFdqgpCNIsCQ yzXUX6yD6nADS3XLXR4ULxnJMn2Yshb6GxNABivw/9wKiigxfJK7u+ATS7ayp+onJyKo KNCfamJ1J18X8Evk+kKmFNOgU1Aee1H1Bpml4GeYHGxz+Nyv+FdVvrWWxIMXSJhVdYVQ Z72uIa25M4RsyBmqEmqVizJbuk3LgijEiznx1kdIUe+9VjQ+3vwaHJAbs92GqZmFcrwS ecIhrWI60+Hsu5CCYuZ7DKz1DkNT1zbRnepVPqNha3mJN7nMbKboh/hW0LjRqUyGvtvr NAuQ== 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; bh=QdVx4s7MB1UE/FTT3yTdHDmooPsphLJHNis87Ho3FgQ=; b=qjc9uLuLCAhy25QRufE2LZPYwOYIWrtkyb3eAMm8WEvEAu/SP1+ES8p/Q9u+4TBYYw I1rOH0CCqV4T3mJcDtsZ+dD3F9pbX8lnVsJJ26QRBHNSi11lQR67ownX7EQQhAwDiCiV 9u5Vd1LKLKyPVeuZ/squSYPK/LGtj3GCF6wGLIry1jTQ/WZtmgKtZHFZPbTatPrDPg4f U47LdOIuS2mLY1dNyW1V2mSSJJwZPPyo47aZvqqCmu+4UwDqRHq/AETg4ZYevDJI++uo dPgiZvRJMI8R61hMQG8B4ZBnqw/siHxfJ8JZ2ykPpZIBw7tdcXhAgaN1UFXHHJnsvAN8 gpHg== X-Gm-Message-State: AN3rC/6vsPFU0vOCdH6ZtNlIfsOFQ9wLww9bDX/eTnItJTzzqopy3n8z +3FGToEar6CWHw== X-Received: by 10.223.135.130 with SMTP id b2mr21808984wrb.48.1493800222661; Wed, 03 May 2017 01:30:22 -0700 (PDT) Received: from L2122.tmt.telital.com ([213.205.6.118]) by smtp.gmail.com with ESMTPSA id s110sm22542233wrc.5.2017.05.03.01.30.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 May 2017 01:30:22 -0700 (PDT) From: Daniele Palmas To: =?UTF-8?q?Bj=C3=B8rn=20Mork?= Cc: netdev@vger.kernel.org, Daniele Palmas Subject: [PATCH 1/1] net: usb: qmi_wwan: add Telit ME910 support Date: Wed, 3 May 2017 10:30:11 +0200 Message-Id: <1493800211-7758-1-git-send-email-dnlplm@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This patch adds support for Telit ME910 PID 0x1100. Signed-off-by: Daniele Palmas Acked-by: Bjørn Mork --- 0x1100 composition is: tty + qdss + tty + rmnet Following lsusb output: Bus 003 Device 018: ID 1bc7:1100 Telit Wireless Solutions Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x1bc7 Telit Wireless Solutions idProduct 0x1100 bcdDevice 0.00 iManufacturer 3 Telit iProduct 2 Telit ME910 iSerial 4 1f5fec bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 108 bNumInterfaces 4 bConfigurationValue 1 iConfiguration 1 Telit Configuration bmAttributes 0xe0 Self Powered Remote Wakeup MaxPower 500mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 255 Vendor Specific Subclass bInterfaceProtocol 255 Vendor Specific Protocol iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x01 EP 1 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 1 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 255 Vendor Specific Subclass bInterfaceProtocol 255 Vendor Specific Protocol iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x82 EP 2 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 2 bAlternateSetting 0 bNumEndpoints 3 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 255 Vendor Specific Subclass bInterfaceProtocol 255 Vendor Specific Protocol iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x83 EP 3 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 5 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x84 EP 4 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 3 bAlternateSetting 0 bNumEndpoints 3 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 255 Vendor Specific Subclass bInterfaceProtocol 255 Vendor Specific Protocol iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x85 EP 5 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 5 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x86 EP 6 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x03 EP 3 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 Device Qualifier (for other device speed): bLength 10 bDescriptorType 6 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 bNumConfigurations 1 Device Status: 0x0000 (Bus Powered) --- drivers/net/usb/qmi_wwan.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/usb/qmi_wwan.c b/drivers/net/usb/qmi_wwan.c index a3ed811..d716576 100644 --- a/drivers/net/usb/qmi_wwan.c +++ b/drivers/net/usb/qmi_wwan.c @@ -1201,6 +1201,7 @@ static const struct usb_device_id products[] = { {QMI_FIXED_INTF(0x2357, 0x0201, 4)}, /* TP-LINK HSUPA Modem MA180 */ {QMI_FIXED_INTF(0x2357, 0x9000, 4)}, /* TP-LINK MA260 */ {QMI_QUIRK_SET_DTR(0x1bc7, 0x1040, 2)}, /* Telit LE922A */ + {QMI_FIXED_INTF(0x1bc7, 0x1100, 3)}, /* Telit ME910 */ {QMI_FIXED_INTF(0x1bc7, 0x1200, 5)}, /* Telit LE920 */ {QMI_QUIRK_SET_DTR(0x1bc7, 0x1201, 2)}, /* Telit LE920, LE920A4 */ {QMI_FIXED_INTF(0x1c9e, 0x9b01, 3)}, /* XS Stick W100-2 from 4G Systems */