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 D9FBB41E6CB for ; Thu, 16 Jul 2026 12:42:42 +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=1784205765; cv=none; b=Dgf+YY8XIsCUF7dqQiIEeJLKSQ1BoTI8kPoidxAE3lZA2StytPEc89A2wc7X5lj35drAA6MN/ojOskjVhGJuXqhUU9EVliZeVLkXYVQEbsJ40HMFDYASPEYnmUs8a2UXHEEiPTYNrfNP8sF6C0cIM9Pyvdz3687dtUEKCF2pua4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784205765; c=relaxed/simple; bh=XNq1uSYL8dyWNb/irmVfCXREisFf0/oT0XfdIKbSp1I=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=c3Mdd+RhLd1C/EVF6Dypln1nnwUATOStqlI7VuD2AnJnq7HOtdGhgT5a+IDVzaF5N8Cyv4vtAE6PcLKdk30nkuQp5rz4PzD+XPN2lNvtHM7dIqHQTczj0VUo/AyOBzMFP7Yi/LEEd+ahI3Ikt1JQg4VTXjL1yPGWylVDQe3s+PA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IOfIQC9/; 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="IOfIQC9/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C69661F00A3D; Thu, 16 Jul 2026 12:42:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784205762; bh=MUdMng31RJ6EZ+HZfPeuYK+RMaKpFTUY+QHh7XJi5ww=; h=Subject:To:Cc:From:Date; b=IOfIQC9/fmsfvqw6SM63H4KjzpEqzBV+C35k/MqJP+7Hl+DCVa4o/APjmzqstrAa9 TdB5E73VcDvlzzj3PXY9nSpjuClhxuAW/680TQ+29bLS8cNNXQ0I6CwqXWs4mCOVzH o9Jp2hqSWFNVabmUh9YKPYL/n+ZuYz/6dv02gmIE= Subject: FAILED: patch "[PATCH] i2c: davinci: Unregister cpufreq notifier on probe failure" failed to apply to 5.15-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:20 +0200 Message-ID: <2026071620-amuck-discount-27b0@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 5.15-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-5.15.y git checkout FETCH_HEAD git cherry-pick -x e43f32816a1b1fe5a86279411626fe3a9be56d45 # git commit -s git send-email --to '' --in-reply-to '2026071620-amuck-discount-27b0@gregkh' --subject-prefix 'PATCH 5.15.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);