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 55F3E24BBE3; Thu, 13 Feb 2025 14:44: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=1739457866; cv=none; b=TLIa7l29/z0pyH4yoPcI8ms0uDl2YzlCBRZAWvjDoHjZNfqULVyBWsvNxRokAdYebC/3g5up48zWsQudAWLmMbxnoo1D4GQJTITkVPkJn1NKQEVqw+W9F/UqwlyUoZaTC0mp9F6isoDIHlsc+8p3lpjDbbCt/cN+KtMmD+eeZf4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739457866; c=relaxed/simple; bh=3MTesvRcC+4Dqjc7Ac4QaiPGlcuDIlFGQ5PluFV/Kvo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=L1Eum5IEgU69ozcl6zrdrXpUuFH4RyuNJuJEUwlWlcrDGSzq03TqTnKraToEYIYp0SEYARL6Y6ZvSx5r4AkGdmdFYjSjSGXN4F2spjPZdJuOG9uozgrkBdJrbsFXdccRrJkEfm6fkfP7edhFVbyUQ1qwDKocmvsNHyxzmC6GB4E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=q6H3nSRA; 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="q6H3nSRA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B9017C4CED1; Thu, 13 Feb 2025 14:44:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1739457866; bh=3MTesvRcC+4Dqjc7Ac4QaiPGlcuDIlFGQ5PluFV/Kvo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=q6H3nSRAJ4uAhTWM6Ej3o+FBmPjb3My7SwbKwlDx947Odw7hx1JBoaiBCfWY5qv3N +7hDYFyfrtUZ2QbkCMAOff8wgIEAjO1UPR3JiCxvNMBwJKb2FDdteyTPRcN0lyla40 46o32ukKERAsm9ljf1bXIfD0JA0W55+iHWEk43co= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, "Bao D. Nguyen" , Avri Altman , Peter Wang , "Martin K. Petersen" Subject: [PATCH 6.12 193/422] scsi: ufs: core: Fix the HIGH/LOW_TEMP Bit Definitions Date: Thu, 13 Feb 2025 15:25:42 +0100 Message-ID: <20250213142443.992635612@linuxfoundation.org> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250213142436.408121546@linuxfoundation.org> References: <20250213142436.408121546@linuxfoundation.org> User-Agent: quilt/0.68 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.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Bao D. Nguyen commit 1b3e2d4ec0c5848776cc56d2624998aa5b2f0d27 upstream. According to the UFS Device Specification, the dExtendedUFSFeaturesSupport defines the support for TOO_HIGH_TEMPERATURE as bit[4] and the TOO_LOW_TEMPERATURE as bit[5]. Correct the code to match with the UFS device specification definition. Cc: stable@vger.kernel.org Fixes: e88e2d32200a ("scsi: ufs: core: Probe for temperature notification support") Signed-off-by: Bao D. Nguyen Link: https://lore.kernel.org/r/69992b3e3e3434a5c7643be5a64de48be892ca46.1736793068.git.quic_nguyenb@quicinc.com Reviewed-by: Avri Altman Reviewed-by: Peter Wang Signed-off-by: Martin K. Petersen Signed-off-by: Greg Kroah-Hartman --- include/ufs/ufs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/include/ufs/ufs.h +++ b/include/ufs/ufs.h @@ -386,8 +386,8 @@ enum { /* Possible values for dExtendedUFSFeaturesSupport */ enum { - UFS_DEV_LOW_TEMP_NOTIF = BIT(4), - UFS_DEV_HIGH_TEMP_NOTIF = BIT(5), + UFS_DEV_HIGH_TEMP_NOTIF = BIT(4), + UFS_DEV_LOW_TEMP_NOTIF = BIT(5), UFS_DEV_EXT_TEMP_NOTIF = BIT(6), UFS_DEV_HPB_SUPPORT = BIT(7), UFS_DEV_WRITE_BOOSTER_SUP = BIT(8),