From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CA0D1C432BE for ; Mon, 16 Aug 2021 03:48:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AB3C1613E8 for ; Mon, 16 Aug 2021 03:48:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232384AbhHPDsq (ORCPT ); Sun, 15 Aug 2021 23:48:46 -0400 Received: from m12-17.163.com ([220.181.12.17]:33847 "EHLO m12-17.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229816AbhHPDsn (ORCPT ); Sun, 15 Aug 2021 23:48:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=COETZ u7ZPx6rWcNf4HNHWwUgw9Da5vyXCDI7uglVMrw=; b=DxxQ0YWbLXkW1CuuU4aDo ynq38Ox5VAF0EEr+zLD8esJunQJ1lPwN+ttaF7A4bOw6IkQIdLvAAZnA23rBDZg3 +v4HdZiBcfYopYOJgO9xbq7TQkhB6tYHyFq/eRrmV3AkEP/SxXZ7T/EQm+0ZW4Xt y7RSI+c6fAZMDAT2vaTH/E= Received: from localhost.localdomain (unknown [223.104.68.20]) by smtp13 (Coremail) with SMTP id EcCowACnlX3u3xlhY3XaGQ--.33083S2; Mon, 16 Aug 2021 11:48:01 +0800 (CST) From: Slark Xiao To: johan@kernel.org, gregkh@linuxfoundation.org Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Slark Xiao Subject: [PATCH] USB: serial: option: add Foxconn T77W175 composition 0x901d Date: Mon, 16 Aug 2021 11:47:46 +0800 Message-Id: <20210816034746.3536-1-slark_xiao@163.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: EcCowACnlX3u3xlhY3XaGQ--.33083S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7KF4UCF1fGF13KF18JF43Jrb_yoW8GryfpF 4jqFW5ZFyvq3yfXry0yrs7ZFyrua13t34Sg343Aw43XF13JaykK34xtFy5t343GFs5Jr90 vF1DAr4UGF4UtrDanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07b5sqAUUUUU= X-Originating-IP: [223.104.68.20] X-CM-SenderInfo: xvod2y5b0lt0i6rwjhhfrp/1tbiMBLwZFWByp+1nQAAsf Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Foxconn SDX55 T77W175 device is working in PCIe mode normally. You can find the PCIe support in drivers/bus/mhi/pci_geneirc.c file. But in some scenario, we need to capture the memory dump once it crashed. So a diag port under USB driver is needed. Only interface 0 is used: jbd@jbd-ThinkPad-P1-Gen-4:~$ lsusb | grep 05c6 Bus 003 Device 010: ID 05c6:901d Qualcomm, Inc. Generic Mobile Broadband Adapter jbd@jbd-ThinkPad-P1-Gen-4:~$ lsusb -t | grep "Dev 10" |__ Port 7: Dev 10, If 0, Class=Vendor Specific Class, Driver=option, 480M Signed-off-by: Slark Xiao --- drivers/usb/serial/option.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index 039450069ca4..c275f489c1cc 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c @@ -2068,6 +2068,7 @@ static const struct usb_device_id option_ids[] = { .driver_info = RSVD(0) | RSVD(1) | RSVD(6) }, { USB_DEVICE(0x0489, 0xe0b5), /* Foxconn T77W968 ESIM */ .driver_info = RSVD(0) | RSVD(1) | RSVD(6) }, + { USB_DEVICE(QUALCOMM_VENDOR_ID, 0x901d) }, /* Foxconn T77W175 PCIE+USB mode*/ { USB_DEVICE(0x1508, 0x1001), /* Fibocom NL668 (IOT version) */ .driver_info = RSVD(4) | RSVD(5) | RSVD(6) }, { USB_DEVICE(0x2cb7, 0x0104), /* Fibocom NL678 series */ -- 2.25.1