From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-184.mta0.migadu.com (out-184.mta0.migadu.com [91.218.175.184]) (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 E024C336892 for ; Sat, 7 Mar 2026 10:29:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.184 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772879357; cv=none; b=e6PxKSXhtPE8FNp1x8A9B/Vv/0yOhDVFlG7sA2vPCA/PZeZpeaIiAyjrbWf7WBWiyEkrwzaLoSaNjny8q4jSmy4VS1V1ugA3uV186YMpQtQXEYUaH7RvsXh0USvXKAgPSOSmPijxj56gKLGZcBIpgEe/JNdy/5zNApfmIUtf+uY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772879357; c=relaxed/simple; bh=ZqnMWuFNvDkRIvArOV8O4w1Fh9L2ypA0GJte+TskoUE=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=sxBAX7ltQgg23Wp2iudJFozsWQRCmhAC5lAqXwpl4iOzDps8da+iKRI6YcyrT7wXqRXaUbDeGFC/O+gGsg5rzCSsTW0M3Te6uS3ZYNzkmzZLlScOeQJzpJEPyYBcGvhNSZxOkUeJzuIsCTvg35FSlxM5rSyY33fcUuZjMpvFV0Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=tQZVGDp5; arc=none smtp.client-ip=91.218.175.184 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="tQZVGDp5" Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1772879343; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZqnMWuFNvDkRIvArOV8O4w1Fh9L2ypA0GJte+TskoUE=; b=tQZVGDp5gMZZ3dXdl6jjDpsk42lJFnH2jc/EYHQZE9N+n9WBCSRYi45Ttqouspz9cwRorj HYpHVEypXZC+gzoVdu7LKRv5SLU7sMwEpXCu5d4q2gcTtsvEsRODynKDJB1rIw25TF2pku jrYmH/A64iT0EicNtzCKSh6cnyNAq4g= Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81.1.4\)) Subject: Re: [PATCH RESEND 2/2] thermal: sprd: Fix raw temperature clamping in sprd_thm_rawdata_to_temp X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Thorsten Blum In-Reply-To: <20260307102422.306055-2-thorsten.blum@linux.dev> Date: Sat, 7 Mar 2026 11:28:30 +0100 Cc: stable@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: <688F36E4-511F-4C41-9EB8-5B14BA410AE3@linux.dev> References: <20260307102422.306055-1-thorsten.blum@linux.dev> <20260307102422.306055-2-thorsten.blum@linux.dev> To: "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Orson Zhai , Baolin Wang , Chunyan Zhang X-Migadu-Flow: FLOW_OUT On 7. Mar 2026, at 11:24, Thorsten Blum wrote: > The raw temperature data was never clamped to SPRD_THM_RAW_DATA_LOW or > SPRD_THM_RAW_DATA_HIGH because the return value of clamp() was not = used. > Fix this by assigning the clamped value to 'rawdata'. >=20 > Casting SPRD_THM_RAW_DATA_LOW and SPRD_THM_RAW_DATA_HIGH to u32 is = also > redundant and can be removed. >=20 > Fixes: 554fdbaf19b1 ("thermal: sprd: Add Spreadtrum thermal driver = support") > Cc: stable@vger.kernel.org > Reviewed-by: Baolin Wang > Signed-off-by: Thorsten Blum > --- > drivers/thermal/sprd_thermal.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > [...] Feel free to squash them as they touch the same file and fix the same commit. Thanks, Thorsten