Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1015163pxb; Thu, 9 Sep 2021 18:03:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBtKTn0mrUo6s1Fh5OJ7ac3Nxn95lLLs7QHq2IYf4W1zPG/5DBCZwJCmgyZoQzWcKqCi0J X-Received: by 2002:a17:907:1de0:: with SMTP id og32mr6557130ejc.348.1631235811123; Thu, 09 Sep 2021 18:03:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631235811; cv=none; d=google.com; s=arc-20160816; b=i11PfBTKPP8dRuPrmZOp2WgpVUcCT50D9zSIwegpwlTxiKaDM+yuh3JxNQluUICRsm 9Mg31neJchbc8NW1CngGl6x6Ey0Sv8CbUlOojjTvszXoL67m3bL/QqkI7VzkAS3wdOG9 dkaTP8Uswlhhgdi3pGDrLT3pQiY0Y2xQisyTR01OHOhDT/we58hwJQNgA55snFxTkEs6 nQFS6+kQPThzw9kFFQIzbU89aitO8zFCOL1R4fNveZ6slQu/xOCoPI6HiH9JwB9LBSqa tEirvNRflZC25iWh0dfSCkBFkSrvToMR/aBH6AQ3/5oHJYzRU6qqxOpRLYvuQXTeVYSX FRxg== 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=JK3AQTPnM/tKaCCgCoJCqrbnHHsoVbT5zKvsfxJ81bQ=; b=O7TbXITI75NDGCbXJH6OMWys53vIhmGq2X9Z7A2QcXDe8//hicKj8yW3TBZvduj0+x R32/xMXTWi73l1oKepRk9yNKRxqyhbZWcp2E34WW5rXsbXXmZWE/RBExn8ZJWwzakYuj zx6Td6Cx0KDyUsYix+554DCif8zk7B17pM2s9mlJJ6P3p1NSB2GkZIJa8ntXuvYIsU68 aIcr0KtExLRzBhtzpSz7HerEMYzB7tXEDzhCCm4l5VYl2aMRMtJ4S92bj/EVMfI4fdZi GxE4UzXTcHoxxBVdhXvCZo+btGSpSYxwOHmkqapCkNydbR6SVWt956rKe4hV/LT2gGTz EJGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lXgdRPjC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m8si3867854edi.225.2021.09.09.18.03.05; Thu, 09 Sep 2021 18:03:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lXgdRPjC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244687AbhIJA76 (ORCPT + 99 others); Thu, 9 Sep 2021 20:59:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:48756 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234353AbhIJAXO (ORCPT ); Thu, 9 Sep 2021 20:23:14 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 15787610A3; Fri, 10 Sep 2021 00:22:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631233323; bh=PScb27fn+aJGyKxpJbKJTVdAtjPqpdvxwnLiAKuZws4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lXgdRPjCTalBcr7/WQ9ucndP3dZGHgJrOIDdtVG9br6dOZH+LnXZd18CGuvZ2ISvT rOjrg57NBSS1wh0Y9S1h1Jeqku1t5+yK4yJ0WKGF3051Y1pEhHmhWPxREITRqNfHMk otLXADGsxNSW73muL+ZTL/ZgwwKxcAZv0w1W4vSwPMTE67ltwXTqBS/MdX45r0syfs MFO6lD9PmaxUF8ZzV/+c297R833LZK+4XYR+RT1IyyFsYNAXPQlVXhZs0SPgs12VAG KVLGBewtJBLatDM96G1cFTuiRRprC3mNsN33MOxOKF4GbiTthXeQH+tmET5A5FxDgI DLdaEI+bXxnwQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Quinn Tran , Himanshu Madhani , Nilesh Javali , "Martin K . Petersen" , Sasha Levin , linux-scsi@vger.kernel.org Subject: [PATCH AUTOSEL 5.4 15/37] scsi: qla2xxx: Fix port type info Date: Thu, 9 Sep 2021 20:21:20 -0400 Message-Id: <20210910002143.175731-15-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210910002143.175731-1-sashal@kernel.org> References: <20210910002143.175731-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Quinn Tran [ Upstream commit 01c97f2dd8fb4d2188c779a975031c0fe1ec061d ] Over time, fcport->port_type became a flag field. The flags within this field were not defined properly. This caused external tools to read wrong info. Link: https://lore.kernel.org/r/20210810043720.1137-8-njavali@marvell.com Reviewed-by: Himanshu Madhani Signed-off-by: Quinn Tran Signed-off-by: Nilesh Javali Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/qla2xxx/qla_def.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h index 7c22f8eea3ea..04c713e832a5 100644 --- a/drivers/scsi/qla2xxx/qla_def.h +++ b/drivers/scsi/qla2xxx/qla_def.h @@ -2307,11 +2307,9 @@ struct mbx_24xx_entry { */ typedef enum { FCT_UNKNOWN, - FCT_RSCN, - FCT_SWITCH, - FCT_BROADCAST, - FCT_INITIATOR, - FCT_TARGET, + FCT_BROADCAST = 0x01, + FCT_INITIATOR = 0x02, + FCT_TARGET = 0x04, FCT_NVME_INITIATOR = 0x10, FCT_NVME_TARGET = 0x20, FCT_NVME_DISCOVERY = 0x40, -- 2.30.2