From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 2E50C3290C9 for ; Wed, 13 May 2026 14:22:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778682136; cv=none; b=sJWg021w5pBoeZpnFsSe5l5ES6bTY0qkc/xDQcmsCGFcjadCQAxK9LeMYMpUYUpgWbUUlW8TtdRsCiUzaYrXJqcax5RNmidt74VPrd7BUh/WLPK+zSPf6Ga3W2z8ZPqbN2ccpBqNl3EiHxgFO9AmQwz1A7POHvc8d5XhLo56NoQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778682136; c=relaxed/simple; bh=yuwG+GQqPDxDLqa/iuf/1z9T8pkREhiSS+Co1wPvLtw=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=PFpzOID001YBEU5WrfwOk0MWte99FeOgdqDgM9ACkmCTwj7qmo8hofV10/g/BZ9HuwbLKmUVEU/zVqcewuuQAdl+R1rCNmdlDx1ez0fFb2lKHkOeJyL8ZvkLbT1QsFdtqMrp7RBgXxXF1FEKCTRuM1F4CFg5LMALpK/Srqx1bzA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=Ruukk2KU; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=aGZQY/t3; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="Ruukk2KU"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="aGZQY/t3" Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 64DAVjHU1393025 for ; Wed, 13 May 2026 14:22:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= jXzlpCGiQvqlBY0jfxDaEtKLtM70/40EGKAZonN0dNs=; b=Ruukk2KUyt45XQmU t5JxBn5tdz4i+cUgdv7fRNIgrqVUMPz24ZYKWupkD9N2pzVodJBAkV8OnLNKErcl QIwzvbT86O6hjvqcx1asf8cpQvOTaQrrrKXa6lHEWdZu0aD4MrdjIcrBh4Za+ii5 aB6kjvCS0Za693ksIrjMgeQmzVBUkpbauISE1rVbd8id+QDS5MO8yl8PbMTmFjX+ FGeFAj5lISK6sGBuE5tIsJW9dzjPH4KXIBtQlhn+pRgEZzXdVTT+R5PuL4CEoPxG oEwJ0E5+BSYZHPCPuJhzcafkfB258UEnS22nCG2X8eN9H9kpfvETSRpX6y9tP2ip jiMaOA== Received: from mail-vs1-f69.google.com (mail-vs1-f69.google.com [209.85.217.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4e4k2622hq-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 13 May 2026 14:22:14 +0000 (GMT) Received: by mail-vs1-f69.google.com with SMTP id ada2fe7eead31-63302aca17aso1966931137.1 for ; Wed, 13 May 2026 07:22:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1778682133; x=1779286933; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=jXzlpCGiQvqlBY0jfxDaEtKLtM70/40EGKAZonN0dNs=; b=aGZQY/t3yE4CXAX8ny8sts1vdpXH2hmNbWBrqT3utCtM0g9s05s+Zmm4fyMSpq9Wf8 6xJDTTB6xPbB4w4cAXeJ4vS3nToPmpd5Rvfv6tTq8me5g7x2tRoZVWpqPdhwrrSqvPi/ LhShifNpJUhfeG3hoYVWVcK6RzA93YTdLdW/byTNYdrlIaLTapV/omv6vsp/bNf7NAqZ ZkzWaI9NioDwfAaykYbGu9a5pPBct8RH6Jhobcgqs0rMUrPOKZ5lbS1aFybnY7vBXRDN +F1cqzkmselnxGWdQqGY8CM7S1fxlOj2xLXefX9eMlDV67JApkgc+NMhO6q3YWowCEWa 5rGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778682133; x=1779286933; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:date:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jXzlpCGiQvqlBY0jfxDaEtKLtM70/40EGKAZonN0dNs=; b=jQ8fFXEK7uRTyhkxU0yumltIgfOhaKQnDB1+jUwVVdW/NqTIx2dZxD75/6QYY/Dcc2 wRLYZB+C7GYLq1I5KiWN9j0Krwi0PoPTwY/A+cQjTII/WbuyYpmx/PBEoJoxODDavIdE DEnbj1Rucu3Xi+edfpIOME9Pq9Lex8/JW1+vwKlZoLM6p6r/Ep+506Hx9HPUkIOk7Mnp mG/UGk1goVYATmGcSfbOKUXYEAGGKuOOSBgm163FrskyEUnum/In54hHH8Md+DVHKCag 4oeSfYBot5U+z7ug4wJ8LYGSA76PHXqdVra4vRT+GwZkSRp4V5mEGdSqsbM210KLCYHz srHA== X-Forwarded-Encrypted: i=1; AFNElJ9uDvufuYvRi0QqnpKIXIkWAWr7BhTVYIasi8cIisWD53pf1zw9ll9vmw/6TDFgkicrZVcsabcbumeVLAE=@vger.kernel.org X-Gm-Message-State: AOJu0YwM9k/IbPcQNzr0i4scDrUFN29wx+C3CH3vHM5iobpQX0naN73x N6bAeG0KuK3i26r/rq88pDyuDXw48+/6JIjz3rlcs7/k0O2GCFAwyqrv/sQaDN1AqXeyDGb7kXV AKI3c9WbMc82OSFSs2xmzoDzzoSXCO7nf10hL1NwJpF5phFk5/tqTJrOTHEujkthRfp4= X-Gm-Gg: Acq92OF2Aj/VjmJu5eZSUzAkG7Qk7SwqUbMNnvAgZW+P/HZDTsotCNVHKHiLLQk5H+J 2L+vXCEqnVY+aphkGVDeyDxl0Au5a8KiDt8Op8E4wxbY8oH49AKD+VnDA5oVAzQXQA/DiDUEAOI hWfZrbe9+gEv/+bgjsb/yPS7QlAyOB8ZKrR1VBt4E0X1MHiF/iB0xdfd664OfXe3YpXJh9Llces MoRqxTJqEzhXmoFL1Ouu2TCrZn/+598H+v5xhKEfoR6sh/9EnTteqpMSc42LyQ9YobhH9UrpxuO eZIhpbSwu5TFrIu+5A3mhnDLSFq3xo1ipJiHnPi1rn7VB9ObJY0EG+XE9sYu5nEToY0OooAmeZz G+Iv+dLSDWIZtMyfiYoIUda+4AcJqWROQ+ND1re68NjGxVZ2UK7tj4qx+uXk/G+yUBGL9BQjd+L ntuQvtg2Xu X-Received: by 2002:a05:6102:3909:b0:5ff:cee8:660c with SMTP id ada2fe7eead31-6377487373dmr1615555137.31.1778682133110; Wed, 13 May 2026 07:22:13 -0700 (PDT) X-Received: by 2002:a05:6102:3909:b0:5ff:cee8:660c with SMTP id ada2fe7eead31-6377487373dmr1615514137.31.1778682132497; Wed, 13 May 2026 07:22:12 -0700 (PDT) Received: from ?IPV6:2a05:6e02:1041:c10:8164:8816:f817:5d0f? ([2a05:6e02:1041:c10:8164:8816:f817:5d0f]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48e8e5dd3e1sm73227655e9.1.2026.05.13.07.22.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 May 2026 07:22:10 -0700 (PDT) Message-ID: <48c1ae15-3fa7-439a-a492-c82b39fb0a89@oss.qualcomm.com> Date: Wed, 13 May 2026 16:22:10 +0200 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 0/4] thermal/core: Decouple release paths for tz and cdev From: Daniel Lezcano To: lukasz.luba@arm.com, rafael@kernel.org Cc: rui.zhang@intel.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20260508180511.1306659-1-daniel.lezcano@oss.qualcomm.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Authority-Analysis: v=2.4 cv=M/l97Sws c=1 sm=1 tr=0 ts=6a048916 cx=c_pps a=5HAIKLe1ejAbszaTRHs9Ug==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=NGcC8JguVDcA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22 a=M6oQX93JJpSEMruNXt8A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=gYDTvv6II1OnSo0itH1n:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNTEzMDE0NyBTYWx0ZWRfX6jCghZTJxvOR g46WaOlkoslWk+VuxNyfb90ri1dZOGwzSEKbZfTsj/kTOg6E/8VuigBw6EgM5nFq86rHTdGfbQS PjkoixWldS+JfrCFW17rAaWmRxn6Z9GVxflL6gZFdh2BqD4L5gJXq4e33HJxyMMsHQ30fVJ9cmF gwOnv+ZhFChmr9aNGSsWvZ1gQWEUyZvGG+vEVVf6e9i2hC7QQ+AHG4Tg28r6KD38srA4og0Jnic Vzu4nvEPQ836CbWp6UaqIusfEwNUA5Z13X38AbrG9+gSzEdN/Iqz9xZW51l3fvezTS+HxZvfRH4 wHbHJxVX6CFFvDs/4ny0GJkbGys1FrgtZ9hq1p170xyhAAlXB6B7Md/AO/D90byFrSRMdP9ReUS tRV4AyNwKt9WQ60RqbdulIjmXNsAY4ORzvnKwAKacJakUBIMIBSQmH0W0HNESszGVYuUe+UuKfy Kid3Qi8smEgWwEBRIDA== X-Proofpoint-ORIG-GUID: kiTKj_8LfOTzWviv-DRgkr4OqAdaMVBm X-Proofpoint-GUID: kiTKj_8LfOTzWviv-DRgkr4OqAdaMVBm X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-05-13_01,2026-05-13_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 clxscore=1015 impostorscore=0 malwarescore=0 suspectscore=0 spamscore=0 phishscore=0 lowpriorityscore=0 priorityscore=1501 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2605050000 definitions=main-2605130147 Hi Rafael, On 5/8/26 20:10, Daniel Lezcano wrote: > On 5/8/26 20:05, Daniel Lezcano wrote: >> This series cleans up the lifetime handling of thermal devices. >> >> Currently, the thermal class release callback handles both thermal >> zones and cooling devices by checking the device name prefix. This >> approach is fragile and mixes responsibilities across different object >> types. >> >> The first two patches introduce dedicated struct device release >> callbacks for thermal zones and cooling devices. This removes the need >> to rely on device names and keeps the lifetime management local to >> each object. >> >> The last two patches convert the thermal class to a dynamically >> allocated object and simplify the initialization logic by using the >> class pointer itself as a guard instead of a separate boolean flag. >> >> Overall, this results in a clearer separation of responsibilities and >> more robust lifetime management aligned with the device model. >> >> No functional change intended. > Unless I’m mistaken, the patch sent to split the cooling device > registration is correct with this cleanup. Were you able to apply the patch splitting the cooling device registration on top of this series ?