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 3E8602BD0B for ; Sun, 1 Mar 2026 01:21:11 +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=1772328071; cv=none; b=jOqwu+5I6Dj5c5sXGG78/Cq1XkDPVCVhHgnM6N5PksNriRpxpRkNI53pYIfSyUEHs91f3T1+Q/OKMVP9GT9cq4boAFcjzShY4dqLxabLH7QaRq6CleUgUMwqoIFIOTg1urM2mqDJ1qve1lySuwHs0U5lrCRsVFwa3vPIDCxe0EM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772328071; c=relaxed/simple; bh=4WWKyiG9qAaiOSxqqzzHrHoxjrCIcIALKXvNgcOKJXU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gcPWswItqcaAPQB+SqGhotFP/k7P/1TeKlcUv3mXYz0gjkNwVP8FxywtjISRRTX1wNN+gzXnYKlllKOwHnAvpFOMgYvMcabFH0AqQafUBeCsFvSnOmwMAgYylAR7lNppaT5+tWgcI3SvjIYldRAtq5nfVFeDF7GymqzEh4mHak4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YMpYDi5f; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="YMpYDi5f" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82E82C19421; Sun, 1 Mar 2026 01:21:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772328071; bh=4WWKyiG9qAaiOSxqqzzHrHoxjrCIcIALKXvNgcOKJXU=; h=From:To:Cc:Subject:Date:From; b=YMpYDi5fLXp33kTYe0rMUU98zUPtvjtCz4tX5sc4tlPYIOIGUym0AU7bVcGFPkUCf 81IJ7dFxyivvv9W5qDGbkYd9iE2iXWqQuB22qca6Zik58l5yF5gJoNMysvePKGxEAZ aOpUqv1Z7PwpHvqLxwJVr5YNFlp/z6yZMRoPmdsE6RC3oPFJMsiL4oJpMv4WjUc8xJ Mz08kUbWnokLPKWHcK7Y+dsRm5Sj/KAnf7vVVZnbKAo6i3sODSbIfLAHbv1hw++sRw 1V8Z4jxcPLOKebwUGrGdDnnzsSRQGQcuXS5cs8XKX3ePpwBkUwYggdsOUKg0XnBDVv QarPpB11umiNA== From: Sasha Levin To: stable@vger.kernel.org, johan@kernel.org Cc: Andrew Davis , Nishanth Menon , linux-arm-kernel@lists.infradead.org Subject: FAILED: Patch "soc: ti: k3-socinfo: Fix regmap leak on probe failure" failed to apply to 6.12-stable tree Date: Sat, 28 Feb 2026 20:21:09 -0500 Message-ID: <20260301012109.1676981-1-sashal@kernel.org> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Hint: ignore X-stable: review Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.12-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 . Thanks, Sasha ------------------ original commit in Linus's tree ------------------ >From c933138d45176780fabbbe7da263e04d5b3e525d Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Thu, 27 Nov 2025 14:49:42 +0100 Subject: [PATCH] soc: ti: k3-socinfo: Fix regmap leak on probe failure The mmio regmap allocated during probe is never freed. Switch to using the device managed allocator so that the regmap is released on probe failures (e.g. probe deferral) and on driver unbind. Fixes: a5caf03188e4 ("soc: ti: k3-socinfo: Do not use syscon helper to build regmap") Cc: stable@vger.kernel.org # 6.15 Cc: Andrew Davis Signed-off-by: Johan Hovold Acked-by: Andrew Davis Link: https://patch.msgid.link/20251127134942.2121-1-johan@kernel.org Signed-off-by: Nishanth Menon --- drivers/soc/ti/k3-socinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/ti/k3-socinfo.c b/drivers/soc/ti/k3-socinfo.c index 50c170a995f90..42275cb5ba1c8 100644 --- a/drivers/soc/ti/k3-socinfo.c +++ b/drivers/soc/ti/k3-socinfo.c @@ -141,7 +141,7 @@ static int k3_chipinfo_probe(struct platform_device *pdev) if (IS_ERR(base)) return PTR_ERR(base); - regmap = regmap_init_mmio(dev, base, &k3_chipinfo_regmap_cfg); + regmap = devm_regmap_init_mmio(dev, base, &k3_chipinfo_regmap_cfg); if (IS_ERR(regmap)) return PTR_ERR(regmap); -- 2.51.0