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 80369169AD2 for ; Mon, 10 Nov 2025 13:17:13 +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=1762780635; cv=none; b=MK60NhxmlmMoyGBRGABxromKUQ/ZIger+Ryw4uwtX0aw3bSbsdoUn08PgoA0TeXObcLxlpscfrx7qq2zdPpyY/jA+C+G514KFja0pknV6acX/xezWaT2lhsbWqT055o6SjssqToq+rvK8iay3AMpqiPLufPSYS1bFOnnJJIUWPU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762780635; c=relaxed/simple; bh=Pp8sadZa6Fs6HKKvmeIz/tCuyq6jNOOSo/X07LKN+cY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=hLIayIutc2H62+l0Cd89aoquYsmeiorjqWOmPwWwuZLWTfbAdfr0nRUStbVT58FSAwMRsy6UgPlEqQx0KIjqKfi4XgBMKx6pPZclkPvTDbjrYisexsVxZVO8XeYYBCkLwLpz6M8vp8XUNc7OwDXDfN17OPO14g8R3T3uB6rgzlg= 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=OvY3moLp; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=ZTdXay+u; 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="OvY3moLp"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="ZTdXay+u" Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 5AA9CgaE3146244 for ; Mon, 10 Nov 2025 13:17:12 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= Pp8sadZa6Fs6HKKvmeIz/tCuyq6jNOOSo/X07LKN+cY=; b=OvY3moLpUsOteqmG 7FaRwCntbyDcESMa9uIAqudJib2CAr6icWKX7xY0rNOroYd+ksfRylKfEuP7/rVE qga6hb3W9zSlH8inJFBepLe6X5L6LzVLoW2/+ra30IkQnWVb72O8wGnOd5BATPCq bF1AL/cV8b2MQqOxYwOoGHJJwuI6CVG2QOqJNCX/rQSYqP/bBmBVDK2RJics28KB vjVNFoFMf/lLkFJgCLX56SpqkjZskL53C+tP3Xikn+DU0g93lwmECn0jnF3tj0cz g7/qYWaloHL67MWQMaCUecqToxFNX5wQRV3PDLiaZH5VidrU4ZT8qKS19761oy0A E9b17w== Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4abd7hrq3q-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 10 Nov 2025 13:17:12 +0000 (GMT) Received: by mail-pf1-f197.google.com with SMTP id d2e1a72fcca58-7ae9be0d8d5so5932522b3a.3 for ; Mon, 10 Nov 2025 05:17:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1762780631; x=1763385431; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Pp8sadZa6Fs6HKKvmeIz/tCuyq6jNOOSo/X07LKN+cY=; b=ZTdXay+uzxfci4YByhvlHrvvq3VidpEP+eUL/aPIAOxmaxJO1KQv417UnVZ0bjwjHj IyJIIDSrxpcOZx94MPKSuW4y9ZgYikaGluE9eAQFcvFzUKlr41+PtOarnGjCT9K+slF5 LUpU9rM9GoHSSKxqAqk10g4ZjH31HE47sdZwFEOfgJ/h8CAXVgCOUIrT3xG+dPGpYCxa wIZWpDugKQGM6kmBEOPNb9lTKLDThSZ5YNcBRox1HRvvRMGkvRNEOz55BwIzSZv2qkLU mPeQHh46p0AeV5nPmwd4NEes2eyOmqqMvhHHtVyIjVudcYyYzo24GHpA6/ZlnZpN4KUb fQ3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762780631; x=1763385431; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language: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=Pp8sadZa6Fs6HKKvmeIz/tCuyq6jNOOSo/X07LKN+cY=; b=TH1C++zt5VroIjVgXzB6kxREjTFNxe6SMh1WvXrM5Qreu4uGJu3Ma3DlmiIoCjMdhn 3LRER84qg9Ed61ptQzThuzc8aFRuKrC00pbvD8YLlMcrjEKJR6RiSp+XyUs4AHv4ZAsi AthgVJm+kjf92dmKDNE+jcf5qBXLxgEdDX/FABPnCUX6UF/oaMuinycOS69R3c8LmbCa s1YHSJTA6ur+j/7JNxTZALt8zubz8h6MD6DCToPJxJdaCKb3YtomSfr8TyD/P1n38LTV Q9iN9vAG8EUEn0TI6TBTfwUQdaGgecuUN+FDoow2m8COsliVZ2DbdMROu73TY6wuKfiE iFkQ== X-Forwarded-Encrypted: i=1; AJvYcCUO9LhER+xVosMa9i/ph4snSLJaVsTmCHFEiGTST7naBBc+A4smLrTLf+OOLxf9msmMIGqtALsA7HN+s6M=@vger.kernel.org X-Gm-Message-State: AOJu0Yxss1vc5RlgKMuP8y3oc+5dVCEd8ClFiScFLP5oS7NdOqoOss+H 9iijgYoXkfpJoIc1l9DsvuBnI6sWVlGsdCpC/vkvVdoUE7XTDNNf7AMpCjKig52TT6aWdHzQi3m pbMHmDpi7epzIOq6IDGcesYBWPitkFK5zadginweDzL/OSPAF85SjbPZ+Zg6Kn8x0if4= X-Gm-Gg: ASbGncsV1bM3x1EL/avSagUvQgfIRhyRN57kKC5OWo+rmrb2XvQQ+vtDoJ4hvSfcxWB OTrbNCI85FJiFRgjKKRyb6bfUd9zWx0yu4J+KrNnuJtdAdgbKWO9N1VqugURCZtZ1Wt4C3aHIE/ 7+2rqLwB03Xy3mokLsHVVn97+Rj01Z925uJQBNHmFZNRmcXBwIo6fjtm4fL7YsF9PL8K/0TxBa8 rmLfFTrdzatfQX8ZuYwrS2UQvJJQK2AhULgzQp2z+XMf7Qurd0+DLj4fME7D5GYYNJk/uT/jwi7 BfWlAlXEfsCr6VfVpbprKOgygLtFwqW0qpHkIUskKw0WtXd2ljgiEadYd51pQafCzDtJ2guSJMu XQ6Rwr2q9j/oN69XKozmGrwm1dB/Nq7LR X-Received: by 2002:a05:6a21:99a0:b0:33b:4747:a258 with SMTP id adf61e73a8af0-353a3c6009fmr12911277637.46.1762780631403; Mon, 10 Nov 2025 05:17:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IGkxP2hPnDoM4zia18XuhPq48JzSy1cdEh/jpvEdsdq3YcmavDKiIkTcVKGhtOOp9ROXx9gMg== X-Received: by 2002:a05:6a21:99a0:b0:33b:4747:a258 with SMTP id adf61e73a8af0-353a3c6009fmr12911218637.46.1762780630744; Mon, 10 Nov 2025 05:17:10 -0800 (PST) Received: from [10.219.57.23] ([202.46.23.19]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7b0cca5fd74sm11778345b3a.58.2025.11.10.05.17.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 10 Nov 2025 05:17:10 -0800 (PST) Message-ID: <4fc9c7cb-72dc-27a2-deba-4fd3eabb1fc6@oss.qualcomm.com> Date: Mon, 10 Nov 2025 18:47:01 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: [PATCH v17 01/12] power: reset: reboot-mode: Remove devres based allocations Content-Language: en-US To: Bartosz Golaszewski Cc: Bjorn Andersson , Sebastian Reichel , Rob Herring , Sudeep Holla , Souvik Chakravarty , Krzysztof Kozlowski , Conor Dooley , Andy Yan , Mark Rutland , Lorenzo Pieralisi , Arnd Bergmann , Konrad Dybcio , cros-qcom-dts-watchers@chromium.org, Vinod Koul , Catalin Marinas , Will Deacon , Florian Fainelli , Moritz Fischer , John Stultz , Matthias Brugger , Krzysztof Kozlowski , Dmitry Baryshkov , Mukesh Ojha , Stephen Boyd , Andre Draszik , Kathiravan Thirumoorthy , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, Elliot Berman , Xin Liu , Srinivas Kandagatla References: <20251109-arm-psci-system_reset2-vendor-reboots-v17-0-46e085bca4cc@oss.qualcomm.com> <20251109-arm-psci-system_reset2-vendor-reboots-v17-1-46e085bca4cc@oss.qualcomm.com> From: Shivendra Pratap In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-GUID: ayO-WbB_kDkUpEfMNsE8AQbVIA47H4Hc X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMTEwMDExNiBTYWx0ZWRfX6mq75G4Jrhcu DZEMTwE22xGCfRsvLk9/S8Ewmp78jaE9RocngOqb7M7pwiB6OhvR4Yzy+jD4upbzxWmtwnliDKq ejgHF2WEEuyeueca8oU7KAAUIER1bEScgI3zefWPhG+Age/0+1kivIWeMuAqg9tE7XxAFxaldNj iqv55RdLX5fzinntZTYbrDVaQnsVVC0rpaTes2HOQDL8vF7G4FniOC+8Y3dOJv/+lGzhQD/6EjG mZzp1iOnFimnOfDrDOmlTaWMgmGRl1lIh7V2OwMDGygWvPTk440YWSqRPvP+jTbiOayvBEBXfsi UjZnf9d+8I49pnU3G7tEsxW2ElorrWILOL4QUVJg1klHUfT3VBLU7Dqqz810msBPP9AX1ICebuM aGPM0SlYvpMCRVdmtV1uT43oJWYHng== X-Proofpoint-ORIG-GUID: ayO-WbB_kDkUpEfMNsE8AQbVIA47H4Hc X-Authority-Analysis: v=2.4 cv=Yt4ChoYX c=1 sm=1 tr=0 ts=6911e5d8 cx=c_pps a=rEQLjTOiSrHUhVqRoksmgQ==:117 a=j4ogTh8yFefVWWEFDRgCtg==:17 a=IkcTkHD0fZMA:10 a=6UeiqGixMTsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=OnlfXhMgL6LeeRaFfUwA:9 a=QEXdDO2ut3YA:10 a=2VI0MkxyNR6bbpdq8BZq:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2025-11-10_05,2025-11-10_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 adultscore=0 spamscore=0 phishscore=0 malwarescore=0 impostorscore=0 clxscore=1015 suspectscore=0 lowpriorityscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2510240001 definitions=main-2511100116 On 11/10/2025 6:40 PM, Bartosz Golaszewski wrote: > You're making it sound as if there's some race condition going on. > That's not the reason. They should be avoided in subsystem code > because you have no guarantee that the function will be called after > the driver is attached to the device nor that it will not be > referenced after the managed resources were released after a driver > detach. It's about life-times not synchronization. sure. Will correct the language and make it more clear in the commit message. thanks, Shivendra