Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp822814img; Tue, 26 Feb 2019 09:10:19 -0800 (PST) X-Google-Smtp-Source: AHgI3IbUpSc029F083ILDu72YrR7zUVob1FAiHPzBbA9oIPaT1hV49QngXapmyLbP1A39617YriM X-Received: by 2002:a17:902:7890:: with SMTP id q16mr26999247pll.63.1551201019301; Tue, 26 Feb 2019 09:10:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551201019; cv=none; d=google.com; s=arc-20160816; b=la8mAcKR2U/4003TvIRTf7bSgNWV8WwC0xd+c7VKX18yvW0lR2AfvPPIPkqpFMqWNT /K8K0XZVpjZ9WKkk9F9ymswbqA6fi8rj/R/UAkiOZ5KMG3SD/CQk5pbs6edYUgOXxKJm LWT8F3FfSMtPTO65MGrSCADskelx1Cm5vPOgKCqlvAgr/dl19CwLfl9APpdo/QVTGJMq eLCDFTYHFR7nxsZRV2KuQQdO2MCcSmsRmSBdUM1dgiBD1ZXLOxLX24ObaQbd4A8sbtW1 8pJWGC1xMjVC2BKHJhz6X+gGMYQDwZXqC9uDcFPeAnBXqLMlkGj/7qg2/VSBn1mNhh/S iAAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=eziX+JwtNudzuIkJJ4VxcboF2UKwP+7GH5jGbMIjtkU=; b=Zr5SSpge7g8cXo8fvfQgILyMQvwmDiCTAFyH8HOyxkSc1E6ifaDQ2nK3PX55lTB77d ISl2r8GggwlczTpH5UkbPMy61lbOajq/oznkBUlKSZh67+ye+wFBhOUyJZbrTVyMIGW9 Zntsjdtp4oKGuS2Z0dzCrpYTAlFJZyO9Ow6J5SJ0LkmJ20K1Wu/xJXLIw/tydcPf1GE3 Mwegmmn8NSF8sgJk+qsLkdrVchp49a246OosNDGJwiZhzFc82f5wyXBvK1O6kmUg7Gzk hWaUJx+zbklDp5jN4amGw+Q6UVKBqehVsGZiVO+eS+Pt/pf3oZPVXTT0RGuFyAOJr94n L+sQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v63si12257133pgd.563.2019.02.26.09.10.04; Tue, 26 Feb 2019 09:10:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728714AbfBZRHQ (ORCPT + 99 others); Tue, 26 Feb 2019 12:07:16 -0500 Received: from unicorn.mansr.com ([81.2.72.234]:34548 "EHLO unicorn.mansr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727580AbfBZRHQ (ORCPT ); Tue, 26 Feb 2019 12:07:16 -0500 Received: by unicorn.mansr.com (Postfix, from userid 51770) id 2230F15AC5; Tue, 26 Feb 2019 17:07:13 +0000 (GMT) From: Mans Rullgard To: Johan Hovold Cc: Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] USB: serial: option: set driver_info for SIM5218 and compatibles Date: Tue, 26 Feb 2019 17:07:10 +0000 Message-Id: <20190226170710.12709-1-mans@mansr.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The SIMCom SIM5218 and compatible devices have 5 USB interfaces, only 4 of which are serial ports. The fifth is a network interface supported by the qmi-wwan driver. Furthermore, the serial ports do not support modem control signals. Add driver_info flags to reflect this. Signed-off-by: Mans Rullgard --- drivers/usb/serial/option.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index fb544340888b..af4cbfecc3ff 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c @@ -1066,7 +1066,8 @@ static const struct usb_device_id option_ids[] = { .driver_info = RSVD(3) }, { USB_DEVICE(QUALCOMM_VENDOR_ID, 0x6613)}, /* Onda H600/ZTE MF330 */ { USB_DEVICE(QUALCOMM_VENDOR_ID, 0x0023)}, /* ONYX 3G device */ - { USB_DEVICE(QUALCOMM_VENDOR_ID, 0x9000)}, /* SIMCom SIM5218 */ + { USB_DEVICE(QUALCOMM_VENDOR_ID, 0x9000), /* SIMCom SIM5218 */ + .driver_info = NCTRL(0) | NCTRL(1) | NCTRL(2) | NCTRL(3) | RSVD(4) }, /* Quectel products using Qualcomm vendor ID */ { USB_DEVICE(QUALCOMM_VENDOR_ID, QUECTEL_PRODUCT_UC15)}, { USB_DEVICE(QUALCOMM_VENDOR_ID, QUECTEL_PRODUCT_UC20), -- 2.20.1