From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 536A041E6A5 for ; Thu, 16 Jul 2026 12:42:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784205749; cv=none; b=ZBUOF5Fu3JcnB+jrTaJ4ZjOTIrg/2uqsvnk36QRnep/yZFRLT+OgYylcozSaBml7EttV/0O0r6AeJKR1QtDpOOxhEN+WMqvn8BrkTZ0p3abgXe2Zxx6dT4iQZdJ+OpbK7d2gu2NYyRFhRrONiy5u4Xg+IyRdWxGwW4BJRiJqA7E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784205749; c=relaxed/simple; bh=2eQ/lS3S6NiZIMca/8iN7Kb3tb2c9udpYFinmTi4FD8=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=MMl/aaBRDZweyIcs0aAGx1wXEyEVzpYfyRtogqvxVRfWj5emsYEThnm5QDZzimLWMKstscj7+++7bKbz/lp9ZuHcTcP98REvWK1Cl42mSjjxvLkKUoDnFs45zADr+/bDw7m/N+0Zk5plmlIsLJr+u8OL57lBEF3MxCtnucLCpwY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Byg786Re; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Byg786Re" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A11891F000E9; Thu, 16 Jul 2026 12:42:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784205746; bh=+Lh6hCKf1fWfJDPWZiZQm/9AmD3fKHA3fcROxxz3Tm4=; h=Subject:To:Cc:From:Date; b=Byg786ReaglPeINUDZglCpHitwPp1aAD9TporgZJKxlNLLP3o/unSilHvKtfO48CS BrSiRIvs/mNpw0IC2ssBaEN6S7Uj51xpKkOhoYSF/f/3fKOmIhQvaqTspsuHY2JzZE NOz5g4FOlpwHidDu2hTjs7p6ZnuCu53gGvIJqbl0= Subject: FAILED: patch "[PATCH] i2c: davinci: Unregister cpufreq notifier on probe failure" failed to apply to 6.12-stable tree To: haoxiang_li2024@163.com,andi.shyti@kernel.org,bartosz.golaszewski@oss.qualcomm.com,stable@vger.kernel.org Cc: From: Date: Thu, 16 Jul 2026 14:42:19 +0200 Message-ID: <2026071619-till-joyous-84a7@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.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 . 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.12.y git checkout FETCH_HEAD git cherry-pick -x e43f32816a1b1fe5a86279411626fe3a9be56d45 # git commit -s git send-email --to '' --in-reply-to '2026071619-till-joyous-84a7@gregkh' --subject-prefix 'PATCH 6.12.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From e43f32816a1b1fe5a86279411626fe3a9be56d45 Mon Sep 17 00:00:00 2001 From: Haoxiang Li Date: Wed, 10 Jun 2026 11:05:13 +0800 Subject: [PATCH] i2c: davinci: Unregister cpufreq notifier on probe failure davinci_i2c_probe() registers a cpufreq transition notifier before adding the I2C adapter. If i2c_add_numbered_adapter() fails, the probe error path releases the device resources without unregistering the notifier. Add a dedicated error path to unregister the cpufreq notifier after i2c_add_numbered_adapter() fails. Fixes: 82c0de11b734 ("i2c: davinci: Add cpufreq support") Signed-off-by: Haoxiang Li Cc: # v2.6.36+ Reviewed-by: Bartosz Golaszewski Signed-off-by: Andi Shyti Link: https://lore.kernel.org/r/20260610030513.2651018-1-haoxiang_li2024@163.com diff --git a/drivers/i2c/busses/i2c-davinci.c b/drivers/i2c/busses/i2c-davinci.c index 66c23535656b..0617f416cb0b 100644 --- a/drivers/i2c/busses/i2c-davinci.c +++ b/drivers/i2c/busses/i2c-davinci.c @@ -818,12 +818,14 @@ static int davinci_i2c_probe(struct platform_device *pdev) adap->nr = pdev->id; r = i2c_add_numbered_adapter(adap); if (r) - goto err_unuse_clocks; + goto err_cpufreq; pm_runtime_put_autosuspend(dev->dev); return 0; +err_cpufreq: + i2c_davinci_cpufreq_deregister(dev); err_unuse_clocks: pm_runtime_dont_use_autosuspend(dev->dev); pm_runtime_put_sync(dev->dev);