From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796387651; b=jFUidBXATeuhdQNUMVyx6HZQYt02waGfiwsWk4HKgidCpF6Nv6r+4ubazPMtu44IoeY7 pc0XGR7fzCH0dGqRunUCflZpUJT/NinoKblufBu/zfaIQJrJdvvh7wR2De/sUClF10OQe VGLAPbeowdGAWQXA2fHwPkBQ8iSL20sFYFGQ8C469VxvhXd/7Bd3LhJaJoYB4OO63Gbcz 49hmX+7R4mJmm5gUWO02yuo7bluWFQ5rCJdql5D+gruIakS3J20CvBKzHN4S/Mg9wYr4X P7exOIID3uwdPFDAB7kEzPuGrrkLX4Vm4Kdmq4cI96lxnXD9CpoAfygiUJ3i81dd1iA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796387651; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=wkNzz9io+1MflTiPVUmXvR8hWnb7H8Wqx2cUTHWYUk4=; b=prk/5XyjA2VxD43duc9A098e9CyeHR/vt6UdIx40hDNBSc/VMfxVa4kgegO4zlFNWCDR gumX8SIQCBjdwqKgjAZGINU1x8cwDFSO2bkWgxCAVonNGQ5GkYgsQ5ZGYGaInMH/ZPdH6 RCknHLtO+rgtDpg6+cRm7r59iXx8XiGRKbw4h11PymyWzrB8Edspv0cN2oU6HWNjkksQo o/6Z08NSxWJ5Dtouo/htZ/AlfH1KUwgkGSoCCqdcAz2FgLlXGijExc2Di+s0hQtQLANQB qn2pj9SeLnkcW28x4JnWMsw3TugH4BxzI3YMWwc+t/RrCAwUchZegFZ3gWFWTQmtGXw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=tgos7Wai; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 55A39606A32C; Fri, 4 Dec 2026 12:34:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=tgos7Wai Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9674E1F000C2; Fri, 4 Dec 2026 12:34:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796387651; bh=wkNzz9io+1MflTiPVUmXvR8hWnb7H8Wqx2cUTHWYUk4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=tgos7Waiyay8EblG+tp+N01Ny3DUY7Tef9ajdE4gp1rhLv0lDX54Te4NIPIBat3JG zvSzYBlxpIWuut+Rtw2H0c6QVxevtf1Q3w2yk+YG0xlMH7nZo+jSEiNGI0eMuP5RuT X7rPTMtm6s1MHVcvWgfzL4IYmlRJznXjuLAob2gU= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Guangshuo Li , Mark Brown , Sasha Levin Subject: [PATCH 6.1 0334/1059] spi: bcm63xx-hsspi: Disable runtime PM on remove Date: Fri, 4 Dec 2026 18:57:45 +0900 Message-ID: <20261204100652.917958629@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100643.980430235@linuxfoundation.org> References: <20261204100643.980430235@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Guangshuo Li [ Upstream commit 38232bd3cea74845c2064eb9f7eac77fa5a21d85 ] bcm63xx_hsspi_probe() enables runtime PM before creating the sysfs group, but bcm63xx_hsspi_remove() does not perform the matching pm_runtime_disable() after a successful probe. The probe error paths already disable runtime PM when sysfs group creation or controller registration fails. Add pm_runtime_disable() to the remove path after removing the sysfs group to balance pm_runtime_enable() from bcm63xx_hsspi_probe(). Fixes: fb8695e3749e ("spi: bcm63xx-hsspi: fix pm_runtime") Signed-off-by: Guangshuo Li Link: https://patch.msgid.link/20260924112329.1566051-4-lgs201920130244@gmail.com Signed-off-by: Mark Brown [ sashal: Added the missing pm_runtime_disable() call at the end of the int-returning remove(), since the driver has no sysfs group for the upstream context to anchor on. ] Signed-off-by: Sasha Levin --- drivers/spi/spi-bcm63xx-hsspi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spi-bcm63xx-hsspi.c b/drivers/spi/spi-bcm63xx-hsspi.c index 8822dd21486af..46d8c22e3b819 100644 --- a/drivers/spi/spi-bcm63xx-hsspi.c +++ b/drivers/spi/spi-bcm63xx-hsspi.c @@ -476,6 +476,7 @@ static int bcm63xx_hsspi_remove(struct platform_device *pdev) __raw_writel(0, bs->regs + HSSPI_INT_MASK_REG); clk_disable_unprepare(bs->pll_clk); clk_disable_unprepare(bs->clk); + pm_runtime_disable(&pdev->dev); return 0; } -- 2.53.0