Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp898057pxb; Wed, 6 Apr 2022 03:38:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbOx4QUei7W6mXNbTg6tTFx5K8hb7DTdwoxDtoDHP9dpf4TQ8DBTeQpLrjQP8emhpUucr2 X-Received: by 2002:a65:5acd:0:b0:399:24bc:bbfd with SMTP id d13-20020a655acd000000b0039924bcbbfdmr6642999pgt.323.1649241482868; Wed, 06 Apr 2022 03:38:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649241482; cv=none; d=google.com; s=arc-20160816; b=SoiwVHHDxEp1QXaQricBsYPK5ulO7xxkYnzZQBNc4N82Kv1y3RulRXITym2N9kJSCG GkZZa8svdYTpbJizhQIRzmyX4dQRHDEt7GoNgGtVfUVs+x+WVWAQ3DQ1f+hn7iX8sEvj OZxO1izj46RtKgS8C0dosNlHQvZ01Seo5wfh9+6w+TIRT12DCvYkGJM8NlHQ07bSGApW AW/cS+BJuijc/1FQ/4ePjBvXMHry6akAIxzdee9nGF6MG9bbCg04RjLkmrjsQ+kvKO3U DtZX6R6zKPCfHo0NYxBEED9uADi63q/2MysM1ekgab8f5jOz3UysW+gkLdw5kDhfaAW5 iQXA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Xs46gtCHrN2Xj22efc/tp6G5IEmjXkw1YO+o1dIb0os=; b=WY1tXcKlBUIm2EETh16lGDM9aaAvU/MGU8dop2KhMcnN6LzHrzGtyDPJaZYZJDhP1/ Y3WntUOcX6Nnf3LUMbsLUANvQ8or44tWHjhACVOxh05rQcwSRFfaZS4scZvK0ZRYrW5Q NZ6oOrDAZtjC5uFaFYM1H3UMRVkKIykGEM46Ww6VvD7mNq10xSSqgvCH3cC58dAyi7Kk TCKYTcnnipFDSAuQ9mSt4mZBEyo9DgWx4vDI/I/ypGhYnb+m2V/fFaqnJgr6K7jfUeLj 9WmBIfWkTivXA9Yby5WoGwZEmInSoWGEGsHhy8WKww1BP211bCv61LcZWqXQ1fg2I+qB FiAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=V6TxoMgu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id e9-20020a17090301c900b00156701abd74si6518608plh.215.2022.04.06.03.38.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 03:38:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=V6TxoMgu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0B4E748BA96; Wed, 6 Apr 2022 01:59:21 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346865AbiDEUO1 (ORCPT + 99 others); Tue, 5 Apr 2022 16:14:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353330AbiDEKF7 (ORCPT ); Tue, 5 Apr 2022 06:05:59 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D4B9BF512; Tue, 5 Apr 2022 02:54:44 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 161DEB81B13; Tue, 5 Apr 2022 09:54:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5DF1FC385A1; Tue, 5 Apr 2022 09:54:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649152481; bh=TEt6u2v2p7dI5no1Pgbez4k7Gzktp4YSlW5alzX4JkU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=V6TxoMgu+35w5w1Ga6XEXrD4Y2goNM5jOljnineAyg3SQTtMXVDbVJYCNQs5g1/Ra VPkawp1ZGhLTKoCI46LCgas4q/i4vNOpSq/77eQnGFNKo2eR965fiyDM3ggUTbh//S 3srYIioqc4VYdWzj3Tol9yND3xr/072mvd7EAwps= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Himanshu Madhani , Bikash Hazarika , Nilesh Javali , "Martin K. Petersen" Subject: [PATCH 5.15 793/913] scsi: qla2xxx: Fix wrong FDMI data for 64G adapter Date: Tue, 5 Apr 2022 09:30:55 +0200 Message-Id: <20220405070403.603806154@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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: Bikash Hazarika commit 1cfbbacbee2d6ea3816386a483e3c7a96e5bd657 upstream. Corrected transmission speed mask values for FC. Supported Speed: 16 32 20 Gb/s ===> Should be 64 instead of 20 Supported Speed: 16G 32G 48G ===> Should be 64G instead of 48G Link: https://lore.kernel.org/r/20220110050218.3958-9-njavali@marvell.com Cc: stable@vger.kernel.org Reviewed-by: Himanshu Madhani Signed-off-by: Bikash Hazarika Signed-off-by: Nilesh Javali Signed-off-by: Martin K. Petersen Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/qla2xxx/qla_def.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) --- a/drivers/scsi/qla2xxx/qla_def.h +++ b/drivers/scsi/qla2xxx/qla_def.h @@ -2891,7 +2891,11 @@ struct ct_fdmi2_hba_attributes { #define FDMI_PORT_SPEED_8GB 0x10 #define FDMI_PORT_SPEED_16GB 0x20 #define FDMI_PORT_SPEED_32GB 0x40 -#define FDMI_PORT_SPEED_64GB 0x80 +#define FDMI_PORT_SPEED_20GB 0x80 +#define FDMI_PORT_SPEED_40GB 0x100 +#define FDMI_PORT_SPEED_128GB 0x200 +#define FDMI_PORT_SPEED_64GB 0x400 +#define FDMI_PORT_SPEED_256GB 0x800 #define FDMI_PORT_SPEED_UNKNOWN 0x8000 #define FC_CLASS_2 0x04