From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 03398375F67 for ; Fri, 8 May 2026 18:10:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778263832; cv=none; b=Wy/1OgCuIATJWuvtuU1KMdRtcg8gHLVH0iJllj902F1V5UiijF5BkW7MI1PB/cpzl+WPKmczzeCMZSndsMWXB8Jk1Vdbu4U29NKyMVaHQdg2LdumKpzKtEW7dg3GLaYLYCf8f9Dzv+/jqdSn3WeBVW+Ze9Nr4sRN9bmHr1gPG0s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778263832; c=relaxed/simple; bh=rDOq0L6/M5sP8BXonAMiVzQUSqGp8PFm06N9pip70kk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=YjrGKqV4+KvfarnqjIbqb5xrdtvRv/Xm8b/a+Rghiu2hRgCAG0VOUcDMCD65Km+cvOMkNZh41Hxj3QgdSkkKIExxazNzdGD280P1OiEl5c/b5dzfTruvZ5Uqw9nEJ6lqYQ9Ptva86/A5KgH/ZMKHf1xT8DPOBVS8c5B+q1tdmSo= 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=BMUxxJ1J; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=g36lBb90; arc=none smtp.client-ip=205.220.180.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="BMUxxJ1J"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="g36lBb90" Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 648HedZG1661975 for ; Fri, 8 May 2026 18:10:28 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= FKDB7NkSZ+mEr+2vdzq3XP98X54E/DRWyAMpZqMFsXw=; b=BMUxxJ1JhY9EGzQx CgSBzzgbY5dgQ6qNdSMecHT1hgVdIMS332pgZP2018Js1sW6Kysf8rI/rnWCeySP faLfT4Pt27zDdmAL97nETKhVKLSLzx5DqJFxUZWTnHk/wzuia35kIxCXlM5HJYpV llRII8D1ItjsgVe8JYw7fbt/zc4T8/fSjAgh+GhPShxPVyjPbCYY7xQkfr1j84ia 5+tL+jS6PiItIh/hf5U2iexxLAu42YZkK5mUWnI++QExx5YboIME0oTsZObB84T5 PZv7YypPTW9EEtoO1MYMOzahXWzmQViw9yzJkm49jUDnjlgoIjAsay+7B4FuZZUE z884Fw== Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4e1men03te-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 08 May 2026 18:10:27 +0000 (GMT) Received: by mail-qt1-f200.google.com with SMTP id d75a77b69052e-50fb3c7b989so37020981cf.0 for ; Fri, 08 May 2026 11:10:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1778263827; x=1778868627; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=FKDB7NkSZ+mEr+2vdzq3XP98X54E/DRWyAMpZqMFsXw=; b=g36lBb904IXaPXgKSVkQdmmlvlbUXukkKnXtArvv+iMCTT3+ev9cTYDJ9boTslVcaE ORc7mi8aHd8iZfBtlFDOWch8vK0GRH45CySSyYSJrwuoHq+INJo8cnUgLmMfjld6hTxx rSU+ZAgWr1kF9vZ65AAUVmbdJrVeGRldr+O3hneybkOwfy6mc+vFZUg/gqGj7SReoIRf UrV6L4t48/SqahXs18uPyuYPVb/kWvPt5FsU3/74ddaks7r5w7EPOO2NEZVqnA5uBPTO jiJh4TSuglrYKNNQ9U3Nuhj5u+PqlHjZVvYE9SLxGXQCS0EVqtPxXV0J/NfG3ZNGwDQY JNDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778263827; x=1778868627; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to: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=FKDB7NkSZ+mEr+2vdzq3XP98X54E/DRWyAMpZqMFsXw=; b=In4umtfetpcZcSO0FiU3gdUGVIIelcWRfSU87sXsuYlFlrPF44L3jj2a52OsQ96ip5 BoCrEz8fn6mONG86cy3SW2STiPDP3lZ8X7QtZAVfQci0L9KJv8MIKRgpd9wffibt6w+c UHwT14nPgqXHcLYFJA1QHcwIOUQKpS00TDiMuThusramtFAut1PbwcryLh4vYmfmVwRP sJYianhEjclfkgdjRpCWa7FtjW6MLE4riIWS+wKTzajY/g+7BEWcX+/dvW7A9LHwj9A/ aGrhte67+pYH/5+1+AF3lqerlM26TEoPgV0AoE55arsVygUF9h8VfINvNuOF90qZRKgw 8p+w== X-Forwarded-Encrypted: i=1; AFNElJ/PCF9hz1wzupDBOZcZmSIsua7BCkWTaQD1r5ssG/JTyik3/wDcaA/O3yLT2OP9QWccSe/mqy/DTD7mAuY=@vger.kernel.org X-Gm-Message-State: AOJu0Yw0S65B08Af7qYGm3Iva2PIXzEAVrxwcXiLXG9aYG4e4nSa3VAU ZdQaUmy65nnONKn9OTVeNUjvEYUTwzMRz5n7CxlSkApX4iZtcnHYcFDrtPLjoZU38of+2k+qvPa Qq+9dVJryZf//8B+IZapsTW3SDpweYfD2wIKamGfJo2/88/tUAjEzJt5M42KdDknMAVY= X-Gm-Gg: AeBDiet3OhM/9mtjhKvIZeIU22UhFaL5vKj+i6rKyheachBnPE5t0E/kk7VDJouVeYl Nl8gWjOM7/YYlGgP0XFqS7Ng591omcx2J5DrakaiZLP3RoT2Wk52vw5bR5XoCI26ozjsDizW3b5 KPPJjg5yCQ5gaZlB4tgA38RYhYne8euPhCuEpTrH6LkBPgai4Boza2bOuS9uWNoxknpra+TAXk7 ZL3YkuFCC0sT/YIG9Q/yRPxQNm7XV46Q8Y8XuL9mF3rC3lfd4vrxenHs0Da2l9xAvIvugH7rKuB 82X5Mqa2Bm634q3pg9I01KGugj8SByO+9FzR8+Hts8RyrLNIufNgGESRaiPp2X20Ncb8HJEAjWC mFlFbBumXeCHMMkevk9hpaEif3CYBtuiGWy55DXoh58X24ULKbMG9af1LJXIubuPnPwl3UyfHSt EV11q4M/XM X-Received: by 2002:a05:622a:5c7:b0:50f:b790:96ae with SMTP id d75a77b69052e-5148e871055mr49993331cf.22.1778263827262; Fri, 08 May 2026 11:10:27 -0700 (PDT) X-Received: by 2002:a05:622a:5c7:b0:50f:b790:96ae with SMTP id d75a77b69052e-5148e871055mr49992651cf.22.1778263826673; Fri, 08 May 2026 11:10:26 -0700 (PDT) Received: from ?IPV6:2a05:6e02:1041:c10:cda6:5a1c:b564:d3ee? ([2a05:6e02:1041:c10:cda6:5a1c:b564:d3ee]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48e6db09943sm4881635e9.19.2026.05.08.11.10.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 08 May 2026 11:10:25 -0700 (PDT) Message-ID: Date: Fri, 8 May 2026 20:10:25 +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 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 From: Daniel Lezcano In-Reply-To: <20260508180511.1306659-1-daniel.lezcano@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNTA4MDE4MiBTYWx0ZWRfX6WP8gnihscK6 xibq0Jm62SndEWnmI/82R42VJUJ7ZqSyIQzBp1FcmOHbLGVuhxNUpplgf8mtkAWjCJs/ze0H9JE ta7Z7j5Ulmk+yyrZu7rs5IIb2D8dW+GsLn6JlEA8JltVNYkHl760Q19dEp7CcY2vzyIwDAPvSBf Gl+rb0op1OfycjmSf9Yp6udntF+jOY8kix9sQ4bk5hn8d6SNqn+bwOEWMhai7QM0obKSQvsqKpE Mrjv53om54vtW6BMBGxiNbos1TJUXj/se5PnzjNAizTXk5rc5oRqSJGGecYofmxwWHHpS4Pt1mP Py0elz5MInMgMZXfPuzFtHhdF7C9ATdU15BiZHaloB08zYiZs87q97xiByW0ojG2BRqty2uYoWM ebk6ripi8aDI9RGpck6RuENcv2+fLBkVRxzRWaUy8xQldlquOYB88C7hBxMiduwj4eV0fJk4vdS wine61X+vUhtgVbWo6A== X-Authority-Analysis: v=2.4 cv=LORWhpW9 c=1 sm=1 tr=0 ts=69fe2713 cx=c_pps a=JbAStetqSzwMeJznSMzCyw==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=NGcC8JguVDcA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=lUpQ5I083-l-Vf84Yc8A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=uxP6HrT_eTzRwkO_Te1X:22 X-Proofpoint-ORIG-GUID: --mJAzKMqTxfJByxhYMQZ4CKXLvGNC6f X-Proofpoint-GUID: --mJAzKMqTxfJByxhYMQZ4CKXLvGNC6f 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-07_02,2026-05-08_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 bulkscore=0 priorityscore=1501 lowpriorityscore=0 spamscore=0 malwarescore=0 clxscore=1015 phishscore=0 suspectscore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2604200000 definitions=main-2605080182 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.