Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp3381600rwi; Tue, 1 Nov 2022 20:41:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4fYTi9Gqim13kWLWo9wqR1j6Z78MUWvpBMmR27AMYrCXR9xoidjpg+ZN9DjPyXiyKY3mFz X-Received: by 2002:a17:907:75ef:b0:7aa:3373:e7d8 with SMTP id jz15-20020a17090775ef00b007aa3373e7d8mr21903799ejc.231.1667360468407; Tue, 01 Nov 2022 20:41:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667360468; cv=none; d=google.com; s=arc-20160816; b=shj24EOozSmXMCHM+kR/0RAze1fl0BUDW3sGVZxUOhO/eTaz31eoDL/J/hyrv98UOM lUNYNybmX/BjW87KCQ+X2J/2wkfVuqM8lyzV14iOtC+gSiDdHg8MFb/oimJKIlnOuXfH eq80hzNaO2eG+kYviNyZL86eRYyd5dPQvd3wFjILZ3amfHsRc4TZC5jClTsewlw3qdnq jgixAnryBQ2JmAiZv7j1Mnqn+rmRFsaaCFRkkBcuWRABYMArC8sPPygiXp9aTt3Y3cN5 MFrFqcaeKWALLgp1UBZO4kB4SV9YoQrDv2NlA1eyKmvk1XBcXtAPRnPBVKfPZ+mCkBZ1 V/fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=hKxe7n9CGxb+jXW6mTIrCP7AS5ofdViaMasdKQhrBfI=; b=WOLoDddDu2nhLrpLZQAjQ8dLQpvPN9tnBtMsJHllgnIXP+gTFBR2lOxEePlqWwVtUx RceZsb5pri36IH+vAwaJmUohvjSUb9PnQWGLkggpfNagaAzBiRdr/oLjKr91HGjS1i/c 5E3c1+eSf+MrG4tflRKNaWpkpTTfVkIzkk8UatzoOJqwcXB9svT1x/xWhbFGjXry18XD /MNIqYblaanV+zEJqpjNhitL9RABJD27YpRYOTqQR1lCG2SfRmQzhWTgjh1ycwsetiE8 gh739epJnZHBvmMklAzajvwhbUfuujHLoXozirBZiN9cerXvPb5H0UMTcdmkTwlyLdS9 v+KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=jzh9l9DP; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id he11-20020a1709073d8b00b0078d99e20b68si16858797ejc.715.2022.11.01.20.40.45; Tue, 01 Nov 2022 20:41:08 -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=jzh9l9DP; 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 S230384AbiKBCqX (ORCPT + 97 others); Tue, 1 Nov 2022 22:46:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230305AbiKBCqW (ORCPT ); Tue, 1 Nov 2022 22:46:22 -0400 Received: from mail-m972.mail.163.com (mail-m972.mail.163.com [123.126.97.2]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 226B420F7B; Tue, 1 Nov 2022 19:46:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=hKxe7n9CGxb+jXW6mT IrCP7AS5ofdViaMasdKQhrBfI=; b=jzh9l9DPAgdUMyshApYODmpJrl+X8+FiZ6 RH3H2/vPHFgB+Y8wJ/jUJyPR3uhva/pFau3UnYvSda5fEWsGXWTpW26nUHYwYqyf HmfkuKl8tHnLw9SoasQEzYoB4TIJa5ontxr35wsAfqJWNaYiHbU5HSekjLXlBTpk Fyn54nOgU= Received: from localhost.localdomain (unknown [43.134.191.38]) by smtp2 (Coremail) with SMTP id GtxpCgC3Utag2WFjidLwqA--.28382S2; Wed, 02 Nov 2022 10:44:50 +0800 (CST) From: Slark Xiao To: mani@kernel.org, gregkh@linuxfoundation.org, loic.poulain@linaro.org Cc: dnlplm@gmail.com, yonglin.tan@outlook.com, fabio.porcedda@gmail.com, mhi@lists.linux.dev, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Slark Xiao Subject: [PATCH] bus: mhi: host: pci_generic: Add macro for some vids Date: Wed, 2 Nov 2022 10:44:37 +0800 Message-Id: <20221102024437.15248-1-slark_xiao@163.com> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: GtxpCgC3Utag2WFjidLwqA--.28382S2 X-Coremail-Antispam: 1Uf129KBjvJXoWxur1kGry8Zw1DWr17Xr1kKrg_yoW5XFyfpF 4Y9rWvvF4Dtr4UKw1vyayDZF95Aa17Cry3K3Wxtw4F9F4qkF4Fgr92vrySyFyaqa4kXrWa qF1DZFWUKa1qyr7anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0ziWrW7UUUUU= X-Originating-IP: [43.134.191.38] X-CM-SenderInfo: xvod2y5b0lt0i6rwjhhfrp/xtbBDQKtZFaELmhrRwAAs+ 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,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 To make code neat and for convenience purpose, using macro for some vids. Refer to previous patch in pci_ids.h side, they are not allowed to add new entries of single driver needed. So we add it in our local file. Signed-off-by: Slark Xiao --- drivers/bus/mhi/host/pci_generic.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/drivers/bus/mhi/host/pci_generic.c b/drivers/bus/mhi/host/pci_generic.c index c4259cb2d289..5abc778a5290 100644 --- a/drivers/bus/mhi/host/pci_generic.c +++ b/drivers/bus/mhi/host/pci_generic.c @@ -24,6 +24,10 @@ #define HEALTH_CHECK_PERIOD (HZ * 2) +#define PCI_VENDOR_ID_THALES 0x1269 + +#define PCI_VENDOR_ID_QUECTEL 0x1eac + /** * struct mhi_pci_dev_info - MHI PCI device specific information * @config: MHI controller configuration @@ -557,11 +561,11 @@ static const struct pci_device_id mhi_pci_id_table[] = { .driver_data = (kernel_ulong_t) &mhi_telit_fn990_info }, { PCI_DEVICE(PCI_VENDOR_ID_QCOM, 0x0308), .driver_data = (kernel_ulong_t) &mhi_qcom_sdx65_info }, - { PCI_DEVICE(0x1eac, 0x1001), /* EM120R-GL (sdx24) */ + { PCI_DEVICE(PCI_VENDOR_ID_QUECTEL, 0x1001), /* EM120R-GL (sdx24) */ .driver_data = (kernel_ulong_t) &mhi_quectel_em1xx_info }, - { PCI_DEVICE(0x1eac, 0x1002), /* EM160R-GL (sdx24) */ + { PCI_DEVICE(PCI_VENDOR_ID_QUECTEL, 0x1002), /* EM160R-GL (sdx24) */ .driver_data = (kernel_ulong_t) &mhi_quectel_em1xx_info }, - { PCI_DEVICE(0x1eac, 0x2001), /* EM120R-GL for FCCL (sdx24) */ + { PCI_DEVICE(PCI_VENDOR_ID_QUECTEL, 0x2001), /* EM120R-GL for FCCL (sdx24) */ .driver_data = (kernel_ulong_t) &mhi_quectel_em1xx_info }, /* T99W175 (sdx55), Both for eSIM and Non-eSIM */ { PCI_DEVICE(PCI_VENDOR_ID_FOXCONN, 0xe0ab), @@ -585,16 +589,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 }, { } }; -- 2.17.1