Message ID | 20231124090919.23687-4-ilpo.jarvinen@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp1022005vqx; Fri, 24 Nov 2023 01:10:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IF3Kj54RlMudNfaHI+egIROYNmgw4OyGw3BZdGn5t8raVqxke02ujP7qveb+f1ALtyLVq50 X-Received: by 2002:a17:902:ced1:b0:1cf:5782:7d5c with SMTP id d17-20020a170902ced100b001cf57827d5cmr3051485plg.11.1700817010882; Fri, 24 Nov 2023 01:10:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700817010; cv=none; d=google.com; s=arc-20160816; b=Wsp1IoqITqBiy5LGq0owklYsurTOCQlYxUPsrAZ0qie1AL4Z1fCeyl93gHokgJXanz aMCYDYzcs1Z/kqzqU3EoRv+8mJmHh/3ILbDappqYk+CJ1EkSfs41/D7RaO74BtxRSDKD etr/Q507QdSl9MSDhuTArufuo8LX4gYPZBucj7J2KRWvf+chsXFtjOZwTulsild332wR /U2gT/l2+/C56JM7UfQny+aPTRanUpQ+yakU+9n14IxmuDI4sa7Rw9aFmyBMcWn95P4M JiBwNr6m4eK8h4FY1zS1MZ6qfFycHguXayh92KSy1ohu71n3KOOXzo0JZbKABzuViVd4 ZeTg== 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 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id c10-20020a170902d48a00b001cfa8efdf9esi339215plg.25.2023.11.24.01.10.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 01:10:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; 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 2620:137:e000::3:5 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 E59868373510; Fri, 24 Nov 2023 01:10:07 -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 <rfc822;ouuuleilei@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com> To: James Smart <james.smart@broadcom.com>, Dick Kennedy <dick.kennedy@broadcom.com>, "James E.J. Bottomley" <jejb@linux.ibm.com>, "Martin K. Petersen" <martin.petersen@oracle.com>, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: =?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com> 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: <linux-kernel.vger.kernel.org> 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:08 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783435897989595510 X-GMAIL-MSGID: 1783435897989595510 |
Series |
[1/6] x86: Use PCI_HEADER_TYPE_* instead of literals
|
|
Commit Message
Ilpo Järvinen
Nov. 24, 2023, 9:09 a.m. UTC
Replace literal 0x80 with PCI_HEADER_TYPE_MFD.
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
---
drivers/scsi/lpfc/lpfc_sli.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Ilpo,
> Replace literal 0x80 with PCI_HEADER_TYPE_MFD.
Applied to 6.8/scsi-staging, thanks!
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;