From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailgw.kylinos.cn (mailgw.kylinos.cn [124.126.103.232]) (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 1667D2D4813; Fri, 5 Sep 2025 10:21:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=124.126.103.232 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757067686; cv=none; b=lbW7tEUS5/D3x90FWf06EXNdqZx7LwAoVJSTJmE5sVTqSqTZZdo07nCx0RvEqJcK+lv/lWj7Hw/nAgnr6Q/XmV/yQKcQSvCWIqBiHicDtdDNF88gvltTL93YShoTRkUZrBAfNmEb7bbWidoBfGUx62B2l9dfP7ZI1Z0TRQQOwh8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757067686; c=relaxed/simple; bh=OfTOMWX66TbAfkqnKGzCFdhIOFRb5l9VXCVY15B8Ww4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=rJjsovBX2u6NXwmH3Xd8kizvWTQ6QzRiO8n7G06pUNe/LfxeJkjU06CxVj0Xr5Ov0NCQ9rglEeStn/lTo8qeSnB5ribsWKJpWkwLFxYxKLDg0njWQkj7lh36o4GQUMM5WmDhknD3lwJ0EBkqNvNSvfVGIxm4rR3n1HJnXz9lfAo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn; spf=pass smtp.mailfrom=kylinos.cn; arc=none smtp.client-ip=124.126.103.232 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kylinos.cn X-UUID: 0e7797928a4211f0b29709d653e92f7d-20250905 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.45,REQID:14f482f1-1678-4861-8721-a3d21e06eb8e,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:-5 X-CID-META: VersionHash:6493067,CLOUDID:91ab872eaa9ae72f0b505e024ab096ae,BulkI D:nil,BulkQuantity:0,Recheck:0,SF:81|82|83|102,TC:nil,Content:0|52,EDM:-3, IP:nil,URL:0,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV: 0,LES:1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0,ARC:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: 0e7797928a4211f0b29709d653e92f7d-20250905 Received: from mail.kylinos.cn [(10.44.16.175)] by mailgw.kylinos.cn (envelope-from ) (Generic MTA) with ESMTP id 829448159; Fri, 05 Sep 2025 18:21:16 +0800 Received: from mail.kylinos.cn (localhost [127.0.0.1]) by mail.kylinos.cn (NSMail) with SMTP id E4DD9E008FA4; Fri, 5 Sep 2025 18:21:15 +0800 (CST) X-ns-mid: postfix-68BAB99B-76698910 Received: from [172.25.120.24] (unknown [172.25.120.24]) by mail.kylinos.cn (NSMail) with ESMTPA id 96DA5E008FA3; Fri, 5 Sep 2025 18:21:07 +0800 (CST) Message-ID: <59305500-9ecf-4eeb-b4dc-9c9eed02454f@kylinos.cn> Date: Fri, 5 Sep 2025 18:21:06 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 08/10] thermal: imx: Use scope-based cleanup helper To: Jonathan Cameron Cc: "Rafael J . wysocki" , Viresh Kumar , Catalin Marinas , Will Deacon , Borislav Petkov , Dave Hansen , Srinivas Pandruvada , Michael Ellerman , Krzysztof Kozlowski , Alim Akhtar , Thierry Reding , MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Jani Nikula , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Simona Vetter , Daniel Lezcano , Sascha Hauer , Shawn Guo , Eduardo Valentin , Keerthy , Ben Horgan , zhenglifeng , Zhang Rui , Len Brown , Lukasz Luba , Pengutronix Kernel Team , Beata Michalska , Fabio Estevam , Pavel Machek , Sumit Gupta , Prasanna Kumar T S M , Sudeep Holla , Yicong Yang , linux-pm@vger.kernel.org, linux-acpi@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, imx@lists.linux.dev, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org References: <20250903131733.57637-1-zhangzihuan@kylinos.cn> <20250903131733.57637-9-zhangzihuan@kylinos.cn> <20250905110551.00006588@huawei.com> From: Zihuan Zhang In-Reply-To: <20250905110551.00006588@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable =E5=9C=A8 2025/9/5 18:05, Jonathan Cameron =E5=86=99=E9=81=93: > This radically changes the lifetime of the reference to policy. > If that is valid, then I'd expect a lot more description of why! Thanks for your comment. Initially I thought policy was only used within this function, so I=20 moved it here. After your feedback, I realize that this change might affect the=20 reference lifetime in ways I didn=E2=80=99t fully consider. I need to rev= iew it=20 further to ensure it=E2=80=99s safe.