Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4833647imw; Tue, 19 Jul 2022 14:18:51 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sBhM8qEzeiLdvL5FbVPf2zxwoihUxQYg1ZAX4CrjS5Y6+lsMm6TmbMPR+t7A0+7opdoJOE X-Received: by 2002:a17:907:7290:b0:72b:3799:624c with SMTP id dt16-20020a170907729000b0072b3799624cmr32485464ejc.108.1658265531283; Tue, 19 Jul 2022 14:18:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658265531; cv=none; d=google.com; s=arc-20160816; b=G/UXM7WvQpf1qyZhtRl2V/XoiW65M90sgs8U/QwSHi27DNw7Lq4CmYfDZVsEuLd8MA xnXCQX4ZKg5KXiRmleXUgKePTcpTpSY7ZKZ2Nd6BONsvVAMcEAd/L55ljlkagu4aEOeZ 7FF9foIABWUPeVrH6F2xXCvNO/VnX55qoV7nP5XCv40tkE+R1bXjmvVWy5m0DIURVj45 fqaotsdWiYaixcu9lfl84DhvFy3UwinuAHy7R+HvWPdNLUwrFh2TlaUTC/oPKmR1Cwyc AoBfUypmBOD7n7UrwTuYPSO9vTqHw/C5zayJi2SOgO+7n/hR4tnnt925/MySPyLH+zNy zwfQ== 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=x1+m1OplA8EFDh12aZOcxVl/9DLBcM67a5ncwOUc/WYS2+O0WwOCt0FlON8r6ABPTi tglmu6es1gdmHTY/BAmaciVqrpLg41ecp3jl2kKIAHJT9+GgFQq6Dfu9OHMnJfvYDvdW IAZQhsPPEJ6jUwh8sk9JYIkuLP/M/tQnRfhjYG5AaX6c7URP6VscC+eVb4Ovj+NUVVxl 8cxxx+S3IVtHutB2VYcuuksB3GjkkVnCZLQGpYhyIyXhvi9MhlKfX0OI9lyofXqQ2fYq 6Pw7W7jQQI5S88xM6NrRsqPN2xqscySmsmCVTIz48cp5pGHtIiWXscob81X69lo2ma0k j6Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MOPXEW3e; 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 gt36-20020a1709072da400b0072b13abe376si22242204ejc.789.2022.07.19.14.18.26; Tue, 19 Jul 2022 14:18:51 -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=MOPXEW3e; 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 S240393AbiGSUxH (ORCPT + 99 others); Tue, 19 Jul 2022 16:53:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240375AbiGSUxA (ORCPT ); Tue, 19 Jul 2022 16:53:00 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26C4E61104; Tue, 19 Jul 2022 13:52:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658263979; x=1689799979; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=HCbJLPfxlxI92iZKFv4/AkOuve50aUnNogOmoa9pIRI=; b=MOPXEW3efk1J96dFxnbmI6wdKKakLIdb95VVkc1BEaomoSw7CgOZcDJV jii27rWIIdMwfUkBvCx39Dk7kfGqVgvuAtCILexHFOvKGmiAoQl9nkWn7 CwHPdRA3dxVQudZ5QEJV5m5QvliAkC+m3oYbiqlER7q2jVw9oZukV7Qgp xKq++w4LDmNQlP2b3MblpwDHrR9pIIgMEnDT5IyCnHzYczMBNlJMVSrh5 b8ubjnRoEHRJSVn02Yg1aIWSXJ/Xsry9E/Gk6piNVo4yLzaAh5KGtm4B7 APc+RXjeYqnfPqOg747+VoLcLVl6avzUxirBL1rLb1Dd39yT/vmXtHLo2 g==; X-IronPort-AV: E=McAfee;i="6400,9594,10413"; a="348291047" X-IronPort-AV: E=Sophos;i="5.92,285,1650956400"; d="scan'208";a="348291047" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jul 2022 13:52:58 -0700 X-IronPort-AV: E=Sophos;i="5.92,285,1650956400"; d="scan'208";a="548063475" Received: from kscamus-mobl1.amr.corp.intel.com (HELO localhost) ([10.255.6.221]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jul 2022 13:52:57 -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 V16 2/6] PCI: Replace magic constant for PCI Sig Vendor ID Date: Tue, 19 Jul 2022 13:52:45 -0700 Message-Id: <20220719205249.566684-3-ira.weiny@intel.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220719205249.566684-1-ira.weiny@intel.com> References: <20220719205249.566684-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 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