Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp42516imw; Thu, 14 Jul 2022 20:07:13 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v+rXZOZsUKCjU266CJujicreGeeHbXt4ZA29nECIAID6DIni9h97wrQc4wYjuP4YWl8CJo X-Received: by 2002:a05:6402:3201:b0:43a:b203:219c with SMTP id g1-20020a056402320100b0043ab203219cmr15927310eda.371.1657854432981; Thu, 14 Jul 2022 20:07:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657854432; cv=none; d=google.com; s=arc-20160816; b=tDynEZbOipcWOQAuQQQKUli6BcxypIa3qn9wkq4lq9Ceesg9EKqB+dAEyotL/PFtVf cXzrfga1YTyF6/x33AfMKPrePzhBJrkd8IeQajxv7daciT72M6UbPHHijj3mjhXYJ5YM 7VIw9VAf2pCzxFRpK+qK4TSBDO7aicOU5k2TUV+yHRMvZWbgAqXnqsDowAlKfHyC06+m ksaxO04KPooak54Zvk2DUUUXTA91eS+We0eNIjaP180FFQHhw/idgFr37kNdcuvtoBXE oa1zjJM315KCiRDpFRzefFyWCOogC+5YiK+puI1FI6d+dAkQ2kFoBOxiXMLx9MGU+Ug1 dbpA== 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=lLdv+VasHPtGSKb68GT/YyKMHICBdYUpD/p0ilU31b/qBQWQ3TKXcBbT+3UfkK3VfR 83wx3dpsD0lDihaP9zc08H6o+zVZIW+HrdMrG0b9vA5aQc+D6yCzVY6xNgReEDQ0dGph HL+yxk/EaUa90THv87x8FknhHwJ+x0aL+KRHcyR3RQDkycAW8BQSjOn4Z1SEcP8+sdw6 oWPsQ1FHZgDABUBIK6koWe1MS9RVLKPjdpmjmmkdXZOq70SGYiXuulQkbxm6l6+msj/9 1TaDfV78DHR399i58K/YOz1IcSgGICbEk+ndi6TlMjzQwBObSgeJ1KEhDX8wRRHLiL9o GVFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DieyfJYb; 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 du16-20020a17090772d000b0070dcedd6ca2si4494462ejc.713.2022.07.14.20.06.46; Thu, 14 Jul 2022 20:07:12 -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=DieyfJYb; 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 S241244AbiGODEt (ORCPT + 99 others); Thu, 14 Jul 2022 23:04:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241230AbiGODEl (ORCPT ); Thu, 14 Jul 2022 23:04:41 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F7E37694E; Thu, 14 Jul 2022 20:04:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657854280; x=1689390280; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=HCbJLPfxlxI92iZKFv4/AkOuve50aUnNogOmoa9pIRI=; b=DieyfJYbGkFynsEdraa00+3cj66i3dfkc5ImKBEdCVxUnKKnpLV9F/JK cj5+q6W4Wk7g+Q4/rKQkPFUwZyD3oLXMzkseLeGT7CipTc7Tu/UrnPoZ9 hnPXbkIx/4LwZc5ULsQckIv4Mjy4a0etcyFjXm3Xf+CH4grZCJuw7QIkS Tcd3ymYLQ35zZWP910u0DIeLep0DV7jfUi1L24OJlTpg+sQXVKLbAj8qO FVlXl6ZBO80LDPBJTwU2aydNEMrpWxBpsKiW9qW8WLx3MJLpQw3XvA1yH lPIsqCxQBGRK7bmMBHruMy+T3Bwd6v0asQXovo2jRfvtIIlysqTZ2j0Rc w==; X-IronPort-AV: E=McAfee;i="6400,9594,10408"; a="268713301" X-IronPort-AV: E=Sophos;i="5.92,272,1650956400"; d="scan'208";a="268713301" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jul 2022 20:04:40 -0700 X-IronPort-AV: E=Sophos;i="5.92,272,1650956400"; d="scan'208";a="699038301" Received: from mbordone-mobl.amr.corp.intel.com (HELO localhost) ([10.255.5.217]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jul 2022 20:04:37 -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 V14 2/7] PCI: Replace magic constant for PCI Sig Vendor ID Date: Thu, 14 Jul 2022 20:04:19 -0700 Message-Id: <20220715030424.462963-3-ira.weiny@intel.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220715030424.462963-1-ira.weiny@intel.com> References: <20220715030424.462963-1-ira.weiny@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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