From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 40A03379C34 for ; Thu, 9 Jul 2026 15:27:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783610866; cv=none; b=dgJnsHeY2d+eD0QnpdMXOTqLWzy1jkoGikr1bxFYb+lAXwO1QyhRW8Xq5tU8G9Mkjuw1EDpwf30NOtZkdWRrXb5Ok0I2AXKmZ+uKWibnW+agWZFqr+3ecJ2V7NAbu3K9BzPsAe0BGYUUSmysQPmFE0JKTrJeW8EP1DtVodP1dDs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783610866; c=relaxed/simple; bh=aHGiKyTkGfXMqI+ggjvpHqsgsFe9NTsDqcpMbpRnHIM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=B7waErPRLYgag/Vq49BxKe2EAXS1Q8QdqyHioJ+mZGNPAuxZWaBeY1mIcVumFPatgV2/L4wlXdH08wFI2HzOhy0n/yhi8n4nYeKND2K662wX0wj1oRQQ3Dj87cKYonw/hHbwPDg0YPXH3X4yzzgZU6qHcOQ1gpgR71SSqOsiQC8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=EwepyIJj; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="EwepyIJj" Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2C4E43592; Thu, 9 Jul 2026 08:27:37 -0700 (PDT) Received: from localhost (unknown [10.2.196.114]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 239FC3F85F; Thu, 9 Jul 2026 08:27:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1783610861; bh=aHGiKyTkGfXMqI+ggjvpHqsgsFe9NTsDqcpMbpRnHIM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EwepyIJjB5VDfxNop+DFMdXvkRX+HpBt8kj4wEYoMNbiXsQBYRWHO4QWZ1r/KFThS UioKoaa+PCJmduo6H2zR0dtN4eGXWX28LckkcGOgLtfktYip29kM7NlxUjZSk9JlBm YrBsrIYYuxMeNZRKOPimdozQxOyg/l76GYX+7vHs= Date: Thu, 9 Jul 2026 16:27:39 +0100 From: Leo Yan To: Jie Gan Cc: Suzuki K Poulose , Mike Leach , James Clark , Alexander Shishkin , Anshuman Khandual , Yeoreum Yun , Yuanfang Zhang , Maxime Coquelin , Alexandre Torgue , Tingwei Zhang , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Subject: Re: [PATCH v2 2/2] coresight: tnoc: Fix clock refcount imbalance on platform remove Message-ID: <20260709152739.GF1024232@e132581.arm.com> References: <20260702-fix-clock-refcount-unbalance-v2-0-2383fbb9952e@oss.qualcomm.com> <20260702-fix-clock-refcount-unbalance-v2-2-2383fbb9952e@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260702-fix-clock-refcount-unbalance-v2-2-2383fbb9952e@oss.qualcomm.com> On Thu, Jul 02, 2026 at 04:54:20PM +0800, Jie Gan wrote: [...] > Resume the device with pm_runtime_get_sync() before tearing it down so > the clock is enabled again and balances the devm-managed disable. Then > pm_runtime_set_suspended() and pm_runtime_put_noidle() leave the device > in a coherent runtime PM state (suspended, usage count balanced) once > the devm action has disabled the clock. > > Fixes: 1abc1b212eff ("coresight: Appropriately disable programming clocks") > Signed-off-by: Jie Gan Reviewed-by: Leo Yan