Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1437293imw; Tue, 5 Jul 2022 09:25:30 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tKza3j6FTmMQZKceT5mzdGp3nkkQaDOl+MmIUeCVtsy0x4aZWrWMnZlRqg37jmjKfiqp84 X-Received: by 2002:a17:902:e80a:b0:16a:311a:a672 with SMTP id u10-20020a170902e80a00b0016a311aa672mr42183974plg.161.1657038330363; Tue, 05 Jul 2022 09:25:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657038330; cv=none; d=google.com; s=arc-20160816; b=Y87C85gpVPQD/CrZUyyIQ6nEtR50K5uOR8z+fTjO5f/hQBkXeEpbOXE/XkIasDZ2mj ePVeThzHxLVQiZtlqWWiz8m5Bu+YWFoSScHqGLCJ2h7HnMAGrYg14jjzLFCoWmgcraxx 73WY7vufNf4fsVIrbke8kFhEAf0YsbJdZzGMG/9n8xTpliv03yLeQfHVJX6hstUIwejH R1ofsg4lfeaWf6CwRW20T0P32XPnxKY6QJqTd8qkpXfG7v+bU+k/x9pXeZjoauAylzyN 11zTrw39J7o9BNYH/2QUwTQhz1SrO6b2+ZtUaYmK+WaCnJAkDgN5+cBZzYaC501dHcdh j9Wg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=sKn44Eh6SKC3MpW0ESIoVdl1F0NyySuNtgAbuVvyeT4=; b=UQ0/er7wQW/IsaEzo1KQ8BIosvWuGFfjqYHA3IyI9wsTraXjVZjNPPKZVpJpjslNio pbjgeGafcUwOYhNuKT6IzI1qG4qJSKbilJMwxhMuld679d2CmWpSu2fOwk/r4hJjT9ql GjlKinggQGUteVhkaNWxRrchoejC0/N5Pk+0dq50MTNR2f4TzA1Ip3EbHp+c8gsEMk2S usrj+aAT/R4OqAa6vgcfuMdgg5+M1lpVcUz5PybPUpp6aMtUocCiTMRIR+TZFIWr63YP 2wXOYZjAaA5rFb0kC4Raug//fp/dFpW4ofFmCtQlYbheCdxMry+1vgYxybaRs50BdXy5 1c/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=aeEiI36p; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x7-20020a17090a970700b001ef8eee8241si5699553pjo.113.2022.07.05.09.25.17; Tue, 05 Jul 2022 09:25:30 -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=@intel.com header.s=Intel header.b=aeEiI36p; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232812AbiGEPvN (ORCPT + 99 others); Tue, 5 Jul 2022 11:51:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232787AbiGEPuw (ORCPT ); Tue, 5 Jul 2022 11:50:52 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC8B4114E; Tue, 5 Jul 2022 08:49:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657036188; x=1688572188; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=HCbJLPfxlxI92iZKFv4/AkOuve50aUnNogOmoa9pIRI=; b=aeEiI36pMDLMHq3xYXcvE89fiRE3zHZU7PvBHTBfWbq79/L2qNDpvB7L hiyMuMywb1CaWtfZP5s6RwfbnuZpGGHSpYBPKPcJyHRkdqg22N8iluosi AkdnadQJ207qTbYtI8OTLYBJGSlehfhkXtVdtBNb7Z9Cr2oLFCpb9Lvbz vrkeMIOpDQXFhfTZyWPvKoK8iyGsNM0SuN9ayRdJfJkAY9UArbVWhlKIJ i9j3FtalzFN8EkHzq/S/ZkZENHNJ/ZumFB0dI1qwHU2OB1halVek7+HFd zN1LGhQMzVM55WIP0gkv0dqaZ0y5E0PMqImny7k1mQknjDwGJw8zypPsi Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10398"; a="347369947" X-IronPort-AV: E=Sophos;i="5.92,247,1650956400"; d="scan'208";a="347369947" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jul 2022 08:49:47 -0700 X-IronPort-AV: E=Sophos;i="5.92,247,1650956400"; d="scan'208";a="695708965" Received: from amangla-mobl.amr.corp.intel.com (HELO localhost) ([10.255.0.184]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jul 2022 08:49:45 -0700 From: ira.weiny@intel.com To: Dan Williams , Bjorn Helgaas , Jonathan Cameron Cc: Ira Weiny , Davidlohr Bueso , Lukas Wunner , Alison Schofield , Vishal Verma , Dave Jiang , Ben Widawsky , linux-kernel@vger.kernel.org, linux-cxl@vger.kernel.org, linux-pci@vger.kernel.org Subject: [PATCH V13 2/9] PCI: Replace magic constant for PCI Sig Vendor ID Date: Tue, 5 Jul 2022 08:49:25 -0700 Message-Id: <20220705154932.2141021-3-ira.weiny@intel.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220705154932.2141021-1-ira.weiny@intel.com> References: <20220705154932.2141021-1-ira.weiny@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 From: Ira Weiny Replace the magic value in pci_bus_crs_vendor_id() with PCI_VENDOR_ID_PCI_SIG. Reviewed-by: Dan Williams Reviewed-by: Davidlohr Bueso Suggested-by: Bjorn Helgaas Acked-by: Bjorn Helgaas Signed-off-by: Ira Weiny --- Changes from V6 Simplify commit message --- drivers/pci/probe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 17a969942d37..6280e780a48c 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -2312,7 +2312,7 @@ EXPORT_SYMBOL(pci_alloc_dev); static bool pci_bus_crs_vendor_id(u32 l) { - return (l & 0xffff) == 0x0001; + return (l & 0xffff) == PCI_VENDOR_ID_PCI_SIG; } static bool pci_bus_wait_crs(struct pci_bus *bus, int devfn, u32 *l, -- 2.35.3