Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp933257rdh; Fri, 24 Nov 2023 01:10:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IGGor0np3rgbFFLCtLtYB1zAO5RIHLbiZoI3Yt34xLK3h+7qZzfcgOGyQDSFy/7sFpPEwCo X-Received: by 2002:a05:6e02:1d03:b0:35b:37a:fa98 with SMTP id i3-20020a056e021d0300b0035b037afa98mr2784257ila.29.1700817015332; Fri, 24 Nov 2023 01:10:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700817015; cv=none; d=google.com; s=arc-20160816; b=rWT9gZldyQAyL/NZut/WJGrzRY6IV+m7nSUbtdP++PdpynUEbGm0pTu/fXDiLozgRV FL7JtujKRWWoW6yggbChmZnQN8ieuhFMdVaW82QZMtKZ3eygiw3QjlnHZG2lToQEPgSl JjQqaIfuJHNKOWZfSFSaAuYPj31QdEarbOSWQWXkDhXhjY16K/vdbzjAacf78ZuGTesJ GK2RQU4Af5BGmsaEpS6d7DcfUQnlhtf3SOil7b++G8RraPHINep4keOXyDOzc85K2HF9 +U01caKkJ7zlxhOu06xuOV0kdbD4gS3IlfhnonUicYYIJktTPeRgDaUsQkHYaE7/e2A0 p0Aw== 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=Ecp5Kik4RMgyQahD/UtWLJeBvVecBielg59MqdL0UXo=; fh=6cfrbESYOWoAQ4EhIxGwiCeQJsG9kOCP4eBD/14OTc0=; b=SQrlTvCREh4pzhVmwzXF4WoTQ7D38MVymg7rpKwQ9GLYHKfnmqt9gsQyiPCRFydJtw HVZBHAib1gvhqepwvSNCcRfjFwqv+UWvUaCo+yhCSs4aGADzTofMMwSRSmVEE9kuAmpn +e0MiGoeJFBNK5WxofSCXfr/ViA1ZOU/k8YgqiyANbbQhj4NldifpzbE6Eu8BtgRFOtq YM91053heDrzZty8x7rFEdrq403SqIZqBKbbXIZnp5a7wFyhgnh2m1DXnxbCTNgc96s7 /xPK5scVT3PV8AGI15f0tIBFGBEMfiDcCYW8KJ9JUGBhdc57E4t8jdfWgd+cl75PrN0Z Tp3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mFFtnsM5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id w15-20020a056a0014cf00b006c3077a3400si3161144pfu.279.2023.11.24.01.10.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 01:10:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mFFtnsM5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id A4E048373506; Fri, 24 Nov 2023 01:10:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232958AbjKXJJv (ORCPT + 99 others); Fri, 24 Nov 2023 04:09:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232199AbjKXJJt (ORCPT ); Fri, 24 Nov 2023 04:09:49 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72AC9D5A; Fri, 24 Nov 2023 01:09:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700816995; x=1732352995; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=QYDq6Z5tWNEhZ/J5NePC3bRbFwseCQaqr4/k79zRT+I=; b=mFFtnsM5WrosV8S5HFysiMce0CybzIRKWfVqR+R1EaJ8RLYPv57i1vPq Tk1iknXmx0PqOPk4ZBYxLQPeU6bjmi/CKKAE1FaKAbsHs7+SOSMtvyGTm S35YzVGCtbAn2H+NgR/JY1ZxTtAyBQUBpJRyJJin+n0FXLn5y/MZGEQKW 3+i3dDLACIDEH1GJyYPaVL6Eh7xKN4beZnP0EXU5tLsH9g5p9LntvNY3V iYjpY3h/vbJ9IwxH5CjbWT8qHBLAtVzGVdduvxl+sbEtgjfKMXjzmGq6K T9RxboqHsPGo5PGKBUsMz0eOYQyeKE3Ipz1PALXVhkJchmyG/hAM/96co Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="478603449" X-IronPort-AV: E=Sophos;i="6.04,223,1695711600"; d="scan'208";a="478603449" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2023 01:09:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,223,1695711600"; d="scan'208";a="15911569" Received: from mvlasov-mobl1.ger.corp.intel.com (HELO localhost) ([10.251.220.89]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2023 01:09:52 -0800 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= To: James Smart , Dick Kennedy , "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Subject: [PATCH 4/6] scsi: lpfc: Use PCI_HEADER_TYPE_MFD instead of literal Date: Fri, 24 Nov 2023 11:09:16 +0200 Message-Id: <20231124090919.23687-4-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231124090919.23687-1-ilpo.jarvinen@linux.intel.com> References: <20231124090919.23687-1-ilpo.jarvinen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 24 Nov 2023 01:10:12 -0800 (PST) Replace literal 0x80 with PCI_HEADER_TYPE_MFD. Signed-off-by: Ilpo Järvinen --- drivers/scsi/lpfc/lpfc_sli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/lpfc/lpfc_sli.c b/drivers/scsi/lpfc/lpfc_sli.c index 9386e7b44750..4ac6afd3c2fe 100644 --- a/drivers/scsi/lpfc/lpfc_sli.c +++ b/drivers/scsi/lpfc/lpfc_sli.c @@ -4875,7 +4875,7 @@ void lpfc_reset_barrier(struct lpfc_hba *phba) lockdep_assert_held(&phba->hbalock); pci_read_config_byte(phba->pcidev, PCI_HEADER_TYPE, &hdrtype); - if (hdrtype != 0x80 || + if (hdrtype != PCI_HEADER_TYPE_MFD || (FC_JEDEC_ID(phba->vpd.rev.biuRev) != HELIOS_JEDEC_ID && FC_JEDEC_ID(phba->vpd.rev.biuRev) != THOR_JEDEC_ID)) return; -- 2.30.2