From patchwork Tue Nov 1 01:58:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Slark Xiao X-Patchwork-Id: 13495 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2675774wru; Mon, 31 Oct 2022 19:17:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4wzltv+Pl6zGDfUwqT6VAwfnAtr9kRYOpLnQoCabMn2CgUozzm7jfE7qOe9Y3cP+lPbVAy X-Received: by 2002:a17:902:6a81:b0:186:7df2:340 with SMTP id n1-20020a1709026a8100b001867df20340mr17446333plk.120.1667269066237; Mon, 31 Oct 2022 19:17:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667269066; cv=none; d=google.com; s=arc-20160816; b=cJEMd+0xzaMWe/2IAMabt+5Dt6yc0EtE+e0kziizHsxSp+Nrj0OncwNfHctIzyT+fK tVhyDQeNo+s0MiVC4tJ9CKhcLA52aAFbUR1kfTlNibuTUCUtjYadNNKbAoXitDtUm5Qi tYV+58a1O5AQHyLpiOO6GCIDJjBJjPskQ2iynknFLqYFz0zgH8/QHA1lmkT89HSyzwDZ 3SffN5OrYY7eeCCU91nfX0ZyMHDfi5M80cuc9hDIEfUuHukNX3MHi0BJtfHDjAJXnxg6 fl6Z5xoU5GKqL2fEusdIG3cerRSVYCY4pBSgi63rvWgqjhb8JYY1A1gn79jLitcJj+BI Wiqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=N0hM1nAyAcqMRYO7veUovn/zmY6ZVwxa+Voc4ePVpJI=; b=Km194NeiYSMmFgWkReMm5cfB/BfK3AnrXjOazeOTQWUlEChNqRDCucRnEshbqXDQeT YLfT4067KJaJHwlP8mSMujkFPCMmY29G4NiviqhLQcYqXIB6fSJtk5d6HU9qb9vbQUjq WtcC2UEuBAa/oahQ/ohraRmza2YKT72+mNJJDqSNMxfWWqt6dldCbPLooJ/kPlXf3xyP kHS/7X+O8mciTx/QgfwyaImUTBYnwvme857NvrpJfB/Cmar/83qBUc8YSOHaS/hnm1jp Fj1+hjC4cYaYIl7lAwSMNl485yQPOyL6A1zSQX8ko/YFEUYAfQbMTOv1SAQzUMwESROB 2LkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=IYAMurcC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u16-20020a170902e5d000b00178431e09bdsi12499144plf.230.2022.10.31.19.17.29; Mon, 31 Oct 2022 19:17:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=IYAMurcC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229665AbiKAB7h (ORCPT + 99 others); Mon, 31 Oct 2022 21:59:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229475AbiKAB7e (ORCPT ); Mon, 31 Oct 2022 21:59:34 -0400 Received: from m12-11.163.com (m12-11.163.com [220.181.12.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DA417C0D; Mon, 31 Oct 2022 18:59:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=N0hM1 nAyAcqMRYO7veUovn/zmY6ZVwxa+Voc4ePVpJI=; b=IYAMurcCVuXtOuUl63xR5 kHW1ymWFPAyu2WW1rHRe4sznEJAGjEV18jCrgVqI4Fz4nWpePH3QsrqvuycjlHRc P1azNnpe3w7hYH+yXSxDLvX22eBaSULt+De6bDjccVFWGoJPyYlTRacFSK9HwqYo Vc5qJwGN99zEyrT+NkHNwo= Received: from jbd-ThinkPad-X1-Nano-Gen-1.. (unknown [223.104.68.52]) by smtp7 (Coremail) with SMTP id C8CowABnLfJlfWBjwnq9PA--.32038S2; Tue, 01 Nov 2022 09:59:02 +0800 (CST) From: Slark Xiao To: mani@kernel.org, quic_hemantk@quicinc.com, bhelgaas@google.com, loic.poulain@linaro.org Cc: dnlplm@gmail.com, yonglin.tan@outlook.com, mhi@lists.linux.dev, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Slark Xiao Subject: [PATCH v3] PCI: Add vendor ID for THALES Date: Tue, 1 Nov 2022 09:58:58 +0800 Message-Id: <20221101015858.6777-1-slark_xiao@163.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CM-TRANSID: C8CowABnLfJlfWBjwnq9PA--.32038S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7KrWDWr45uFyDWF1rAw4DXFb_yoW5Jr4xpF s0krW0yF4kJF4Ut3yvyF9ruF95Aa1DCFy5Kwn3Kw1F9F4Dta1Fgrn7ur4YvFyakayvqrWa qF1Du3yqgayqyaUanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0pEuc_UUUUUU= X-Originating-IP: [223.104.68.52] X-CM-SenderInfo: xvod2y5b0lt0i6rwjhhfrp/xtbCdQ+sZGBbF-yaewAAsD X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748258328087385446?= X-GMAIL-MSGID: =?utf-8?q?1748258328087385446?= In MHI driver, there are some companies' product still do not have their own PCI vendor macro. So we add it here to make the code neat. Ref ID could be found in link https://pcisig.com/membership/member-companies. We must clear that CINTERION belongs to THALES in case confusing user. There are some descriptions about that in below link: https://www.thalesgroup.com/en/markets/digital-identity-and-security/iot/iot-connectivity/products Signed-off-by: Slark Xiao --- v3: Separate different vendors into different patch, and change macro from CINTERION to THALES. v2: Update vendor ID to the right location sorted by numeric value. --- drivers/bus/mhi/host/pci_generic.c | 8 ++++---- include/linux/pci_ids.h | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/bus/mhi/host/pci_generic.c b/drivers/bus/mhi/host/pci_generic.c index caa4ce28cf9e..3ad39f5ac63b 100644 --- a/drivers/bus/mhi/host/pci_generic.c +++ b/drivers/bus/mhi/host/pci_generic.c @@ -583,16 +583,16 @@ static const struct pci_device_id mhi_pci_id_table[] = { { PCI_DEVICE(PCI_VENDOR_ID_FOXCONN, 0xe0d9), .driver_data = (kernel_ulong_t) &mhi_foxconn_sdx65_info }, /* MV31-W (Cinterion) */ - { PCI_DEVICE(0x1269, 0x00b3), + { PCI_DEVICE(PCI_VENDOR_ID_THALES, 0x00b3), .driver_data = (kernel_ulong_t) &mhi_mv31_info }, /* MV31-W (Cinterion), based on new baseline */ - { PCI_DEVICE(0x1269, 0x00b4), + { PCI_DEVICE(PCI_VENDOR_ID_THALES, 0x00b4), .driver_data = (kernel_ulong_t) &mhi_mv31_info }, /* MV32-WA (Cinterion) */ - { PCI_DEVICE(0x1269, 0x00ba), + { PCI_DEVICE(PCI_VENDOR_ID_THALES, 0x00ba), .driver_data = (kernel_ulong_t) &mhi_mv32_info }, /* MV32-WB (Cinterion) */ - { PCI_DEVICE(0x1269, 0x00bb), + { PCI_DEVICE(PCI_VENDOR_ID_THALES, 0x00bb), .driver_data = (kernel_ulong_t) &mhi_mv32_info }, { } }; diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index b362d90eb9b0..298c8cae66ff 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h @@ -1765,6 +1765,8 @@ #define PCI_VENDOR_ID_SATSAGEM 0x1267 #define PCI_DEVICE_ID_SATSAGEM_NICCY 0x1016 +#define PCI_VENDOR_ID_THALES 0x1269 + #define PCI_VENDOR_ID_ENSONIQ 0x1274 #define PCI_DEVICE_ID_ENSONIQ_CT5880 0x5880 #define PCI_DEVICE_ID_ENSONIQ_ES1370 0x5000