From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E2C3217D8BB; Tue, 30 Jul 2024 16:58:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722358707; cv=none; b=KkxeE0FIUcLbY+hLVEPj1WQt2sdj1zLPQmJd2DIEh20Lk2z3PCng35BzkB5oEEofK1Gpq29dX2g3Sc0hjQDUGUlYcUUAfmlxFZ5BgyYA14yUfCmHNUgq7s1GoueMEUyChZ2fBi8b4s+0pVjUP+VzOroavQ+S5TS5s2MiVjyCg2U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722358707; c=relaxed/simple; bh=+c3KkB7aw7uscrd86xfwvdkxOTpcHnvRVlQfAAmNRmg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=r/8IAL8pWxW/bhAZD1uaXi/rg8GdXMIlSIMDtDbDcLAQVx3ziboW5yBRLdlUKQuJyJ4B0euwLIGk8liFdNUDGtRnSU84Jzfty3VQaIcIm+RxTaRlGSOba2ZaCUtnWhIjz0wildcFit8jCo2loRvW26eVGNn9HMafooWPIO9ba5U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZI6BDCM7; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ZI6BDCM7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4D405C32782; Tue, 30 Jul 2024 16:58:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722358706; bh=+c3KkB7aw7uscrd86xfwvdkxOTpcHnvRVlQfAAmNRmg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZI6BDCM7JcbZ3Q+JjC2aEfHsju5iZsksJ0WGfGbZ1goMQSsIID3839s/h0c5waTcg D0LIbAdkeLzJ0+0rS9C+C/cvZacj19GQsRPDOwTjocpXXscoFZdq8QmIG+3pCBBZiZ fmX5g6wrOvKiPJ9FfUkPnlK5wI9vt8vJK8wbClb0= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Shreyas Deodhar , Nilesh Javali , Himanshu Madhani , "Martin K. Petersen" Subject: [PATCH 6.6 387/568] scsi: qla2xxx: Fix optrom version displayed in FDMI Date: Tue, 30 Jul 2024 17:48:14 +0200 Message-ID: <20240730151654.991221106@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240730151639.792277039@linuxfoundation.org> References: <20240730151639.792277039@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Shreyas Deodhar commit 348744f27a35e087acc9378bf53537fbfb072775 upstream. Bios version was popluated for FDMI response. Systems with EFI would show optrom version as 0. EFI version is populated here and BIOS version is already displayed under FDMI_HBA_BOOT_BIOS_NAME. Cc: stable@vger.kernel.org Signed-off-by: Shreyas Deodhar Signed-off-by: Nilesh Javali Link: https://lore.kernel.org/r/20240710171057.35066-9-njavali@marvell.com Reviewed-by: Himanshu Madhani Signed-off-by: Martin K. Petersen Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/qla2xxx/qla_gs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/scsi/qla2xxx/qla_gs.c +++ b/drivers/scsi/qla2xxx/qla_gs.c @@ -1710,7 +1710,7 @@ qla2x00_hba_attributes(scsi_qla_host_t * eiter->type = cpu_to_be16(FDMI_HBA_OPTION_ROM_VERSION); alen = scnprintf( eiter->a.orom_version, sizeof(eiter->a.orom_version), - "%d.%02d", ha->bios_revision[1], ha->bios_revision[0]); + "%d.%02d", ha->efi_revision[1], ha->efi_revision[0]); alen += FDMI_ATTR_ALIGNMENT(alen); alen += FDMI_ATTR_TYPELEN(eiter); eiter->len = cpu_to_be16(alen);