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 E53911EA7DB for ; Fri, 15 May 2026 08:34:14 +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=1778834055; cv=none; b=ineZc/PKgGX0Mry6/HhrFdEz1akScuRo448VhAMVxIBwXg20F9lodsE04N3n3EpOcXV96hGruFcgQmQNoBoCz/vSFG523Wg1V+tXetE6DJiUWx15FM4IdLA26vdwhaRLHdZPUcrGhSaqHlj96eYoZxTJtqRHsp2e3/tW4xeFPYI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778834055; c=relaxed/simple; bh=Vkf0Jpc44dDfsYgtwlcIA9VhThsmlK94t54lqLZjxRw=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=UdIjUdRogPohGNfGk70B3ldvuUq4w2+gCWu55bOYBqK5KnCJPd18vvlGXtrOqh3YPnhQJwoJos/mQfZ9CpwPq4tiOhCOjh183Rk/BtUTua3tm4xsTtVwnXC0MRQoXob8pW7BOvxCjkz6+3+gS4XfysSOi4f7NBovVBpl2Odu8Sk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uM1+vEpV; 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="uM1+vEpV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 74B66C2BCB0; Fri, 15 May 2026 08:34:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778834054; bh=Vkf0Jpc44dDfsYgtwlcIA9VhThsmlK94t54lqLZjxRw=; h=Subject:To:Cc:From:Date:From; b=uM1+vEpVdvKjfkiEidIduZmPiZetFUXF8yO9FddWsEEk47QTeBWR5kQwQmgsWzI5x 4tAK4cqTwKKon2KFB+DIN5N46JRJDd4AhrHf35b5BfsV6n7n44fhQM4VWChpGxFEIA cmkbUX9rDr7ltBl1ecCIX6TJ/MaB9E58M7LfNBaI= Subject: FAILED: patch "[PATCH] spi: cadence-quadspi: fix clock imbalance on probe failure" failed to apply to 6.1-stable tree To: johan@kernel.org,a-dutta@ti.com,broonie@kernel.org Cc: From: Date: Fri, 15 May 2026 10:34:05 +0200 Message-ID: <2026051505-fedora-lustily-9e02@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.1-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.1.y git checkout FETCH_HEAD git cherry-pick -x cba53fe20c18688c17ca668ad0e4ec05e31c70d3 # git commit -s git send-email --to '' --in-reply-to '2026051505-fedora-lustily-9e02@gregkh' --subject-prefix 'PATCH 6.1.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From cba53fe20c18688c17ca668ad0e4ec05e31c70d3 Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Tue, 21 Apr 2026 14:53:50 +0200 Subject: [PATCH] spi: cadence-quadspi: fix clock imbalance on probe failure Drop the bogus runtime PM get on probe failures that was never needed and that leaks a usage count reference while preventing the clocks from being disabled (as runtime PM has not yet been enabled). Fixes: 1889dd208197 ("spi: cadence-quadspi: Fix clock disable on probe failure path") Cc: stable@vger.kernel.org # 6.19 Cc: Anurag Dutta Signed-off-by: Johan Hovold Link: https://patch.msgid.link/20260421125354.1534871-3-johan@kernel.org Signed-off-by: Mark Brown diff --git a/drivers/spi/spi-cadence-quadspi.c b/drivers/spi/spi-cadence-quadspi.c index 2ab6d2a81865..87e2bb66ad6c 100644 --- a/drivers/spi/spi-cadence-quadspi.c +++ b/drivers/spi/spi-cadence-quadspi.c @@ -2000,8 +2000,7 @@ static int cqspi_probe(struct platform_device *pdev) pm_runtime_disable(dev); cqspi_controller_enable(cqspi, 0); disable_clks: - if (pm_runtime_get_sync(&pdev->dev) >= 0) - clk_bulk_disable_unprepare(CLK_QSPI_NUM, cqspi->clks); + clk_bulk_disable_unprepare(CLK_QSPI_NUM, cqspi->clks); return ret; }