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 8530741E6CB for ; Thu, 16 Jul 2026 12:42:34 +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=1784205755; cv=none; b=iP/vw7X3TzR9nab38VjMHnDfZS8AgLU2JGAhrgyOHXYJJPVeTRut1VoXxdBjv8u1DkyYLPacxxrlcXfw1jum93oNwyYrOiDsjKATdgHrUDHZD3a5S0wWJ7bjDiCKVjtifp4M51qeI6AWcCy8slHQoGMbYHKE7OyJZh/+SjUJGkA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784205755; c=relaxed/simple; bh=dIv1q6t3vGLFBdjWuaqW+XdF9+qvEZN+5un1oyJ3NBI=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=HZSyI3FY0YQqfScJCl7A/5/gPYRHYpMI8WoYNkBn4LakhLc1AColht4VzptyTkAp9NXL01ewfCxGScfOoeWLRPJWEF/qlPUdx9mzuYYNUWBPDt/9kKn1OP8+unYYDXGauYc/FLPdg6gWEL+S+0gS75zBrvz88kxRQn3LXaC+vVs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DyAq+9x+; 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="DyAq+9x+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC1841F000E9; Thu, 16 Jul 2026 12:42:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784205754; bh=QoKvwC81WiM/lebuUGPLTWcwllD1fA6VEeovvQWtNvU=; h=Subject:To:Cc:From:Date; b=DyAq+9x+Ico+Yal8RoHJvo9CBfurVbx1HAJt80jzAxUUwuvlAD+xbvWoX/ztYMjUm 1Qi8cmE4VyeFFHj1YNpIwYh7ndbP9dWTeUzZFP69rr+0s2nPKLGZQhoe7plginvykA 7gPygjxwY7ffl7rrgS9/lym4Tm4lEwPviyWZfWxs= Subject: FAILED: patch "[PATCH] i2c: davinci: Unregister cpufreq notifier on probe failure" failed to apply to 6.6-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-glancing-hydrated-8528@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.6-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.6.y git checkout FETCH_HEAD git cherry-pick -x e43f32816a1b1fe5a86279411626fe3a9be56d45 # git commit -s git send-email --to '' --in-reply-to '2026071619-glancing-hydrated-8528@gregkh' --subject-prefix 'PATCH 6.6.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);