From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 C7AE43E00A8; Fri, 15 May 2026 16:20:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778862043; cv=none; b=ski222RyKdIb0dSjSsOw0ZdscRH6Rg7B0b9Vwh6zk/pNQ6LrZYIa8tFNY0tmS3zkCfhbZiWOJMaz4GVcH8UmBIdX9O9k+whS335HQNwmzZthdZdeI3hR/jWZPcI9DqyjWKtvJFc0YTZX/rFM51HOreNBuZmpP1oTdqmKEQpPQnw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778862043; c=relaxed/simple; bh=XqQHtz84Bf30w629F42AD5OlnVIBLTWoQ5KTPfHUqFE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JXvj1eWqRCpXJ0+BfgoHJVkT2ApEqj5kLCfryFgqgjLlnXkQPC3jBsPdz6WOPmQyDSvGODxWaTOoMbkfhvxfmxTbZd5aSDBtysCER0JlCJ84nkFS4+B+/oVl/GfhQseYb7f0OQ1d7Wk8DbqLXNRrDrCnAoZjSB2lH/6cypmB/cw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=B9y8PcQn; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="B9y8PcQn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34E59C2BCB0; Fri, 15 May 2026 16:20:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778862043; bh=XqQHtz84Bf30w629F42AD5OlnVIBLTWoQ5KTPfHUqFE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=B9y8PcQnUwsOaN7BzHkKXfrj8IFx/aA/T5DvEOQNh7NiZ+eDMSy+Tk/CxcwuFGa33 T0ojco0ntxAvnauZ0BJybSAiY+oazVbmuf6VoRuFCgxZCkFNFJGcYlM5HwK3spcwMR QuplWs7McDOJ0OF6SstrmxwS3XdF2G2tJTDsSpmg= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Sascha Hauer , Johan Hovold , Mark Brown Subject: [PATCH 6.18 086/188] spi: imx: fix runtime pm leak on probe deferral Date: Fri, 15 May 2026 17:48:23 +0200 Message-ID: <20260515154659.191137565@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260515154657.309489048@linuxfoundation.org> References: <20260515154657.309489048@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Johan Hovold commit a1d50a37d3b1df84f536a982f692371039df4a48 upstream. Make sure to balance the runtime PM usage count before returning on probe failure (e.g. probe deferral) so that the controller can be suspended when a driver is later bound. Fixes: 43b6bf406cd0 ("spi: imx: fix runtime pm support for !CONFIG_PM") Cc: stable@vger.kernel.org # 5.10 Cc: Sascha Hauer Signed-off-by: Johan Hovold Link: https://patch.msgid.link/20260421125632.1537235-1-johan@kernel.org Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- drivers/spi/spi-imx.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/spi/spi-imx.c +++ b/drivers/spi/spi-imx.c @@ -1948,6 +1948,7 @@ out_register_controller: out_runtime_pm_put: pm_runtime_dont_use_autosuspend(spi_imx->dev); pm_runtime_disable(spi_imx->dev); + pm_runtime_put_noidle(spi_imx->dev); pm_runtime_set_suspended(&pdev->dev); clk_disable_unprepare(spi_imx->clk_ipg);