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 2F30042A7BA for ; Wed, 5 Aug 2026 11:44:08 +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=1785930251; cv=none; b=URup0uQ58KbKy7ucAsBGGL3c84sQ4+yU9KhQsKGJ2XaFILnWWtrysQv6QcazpuXKxSB7w6nlzkUfBcYgnr+aLE5tWxH87fabLcWkKGiCZX3mCCYONISQfN3nVuMryM8iu+bcjgpFol9YQPPEoCi7wix9DzlitT/BGzvjvmH4UxI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785930251; c=relaxed/simple; bh=tL77JMoFhtTXmvKdGAaW9G2ymjSwvHbfR5V+9VGDNpw=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=CRuVZaC6LY2v4MF7ktPVFusSfsVBtUkCn2ZtMJ1NHoYiRZoMH/UK+kjzmMHEqZlKy4JvZUcyz5H/2JeYlTrdiSUKJyo9KInrrj5DQO0+QUPqd3qxR2AhEFv18iVvAVc46hiNc1AxibJgzoeYx5DsFLYLqn+9nb1TMzkyfZNk1cg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=d5f0DdhL; 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="d5f0DdhL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 90A2A1F00A3A; Wed, 5 Aug 2026 11:44:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1785930246; bh=MkXCIXnR0PThyvxGYAUyDA8+WZla+52I+zIWHTqdhL0=; h=Subject:To:Cc:From:Date; b=d5f0DdhLwQIQLLEbPGptpjonMueb+Qwy/qeO8d3X0WnT8g7AHAlDCTwtxCUJJk+7z vfuNKOCOTxCqpzplIjzIt3yXQTG7V0EXgr2xDMu3MRuB8VB1RsvA9IqR9S339gkkgu HeB3grgo6WempfvCVLsSnf2F/UsvIm00F8zT0LTw= Subject: FAILED: patch "[PATCH] i2c: qcom-cci: drop custom suspend/resume and rely on runtime" failed to apply to 6.1-stable tree To: wenmeng.liu@oss.qualcomm.com,andi.shyti@kernel.org,konrad.dybcio@oss.qualcomm.com,loic.poulain@oss.qualcomm.com,stable@vger.kernel.org,vladimir.zapolskiy@linaro.org Cc: From: Date: Wed, 05 Aug 2026 13:43:42 +0200 Message-ID: <2026080542-moonlike-embezzle-e876@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 b08c9857aa1f5f3a81d375d6d4bb1d8b92f22ebc # git commit -s git send-email --to '' --in-reply-to '2026080542-moonlike-embezzle-e876@gregkh' --subject-prefix 'PATCH 6.1.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From b08c9857aa1f5f3a81d375d6d4bb1d8b92f22ebc Mon Sep 17 00:00:00 2001 From: Wenmeng Liu Date: Thu, 25 Jun 2026 17:42:45 +0800 Subject: [PATCH] i2c: qcom-cci: drop custom suspend/resume and rely on runtime PM helpers cci_resume() unconditionally calls cci_resume_runtime() regardless of the runtime PM state. If the device is already runtime-suspended before system suspend, the clock is re-enabled while runtime_status remains RPM_SUSPENDED. As a result, pm_request_autosuspend() does not arm the timer, leaving the clock permanently enabled. Fixes: e517526195de ("i2c: Add Qualcomm CCI I2C driver") Signed-off-by: Wenmeng Liu Cc: # v5.8+ Reviewed-by: Vladimir Zapolskiy Reviewed-by: Konrad Dybcio Reviewed-by: Loic Poulain Signed-off-by: Andi Shyti Link: https://lore.kernel.org/r/20260625-cci-v1-1-a100cda673ce@oss.qualcomm.com diff --git a/drivers/i2c/busses/i2c-qcom-cci.c b/drivers/i2c/busses/i2c-qcom-cci.c index 4d64895a9e9e..bdeda3979c48 100644 --- a/drivers/i2c/busses/i2c-qcom-cci.c +++ b/drivers/i2c/busses/i2c-qcom-cci.c @@ -492,24 +492,8 @@ static int __maybe_unused cci_resume_runtime(struct device *dev) return 0; } -static int __maybe_unused cci_suspend(struct device *dev) -{ - if (!pm_runtime_suspended(dev)) - return cci_suspend_runtime(dev); - - return 0; -} - -static int __maybe_unused cci_resume(struct device *dev) -{ - cci_resume_runtime(dev); - pm_request_autosuspend(dev); - - return 0; -} - static const struct dev_pm_ops qcom_cci_pm = { - SET_SYSTEM_SLEEP_PM_OPS(cci_suspend, cci_resume) + SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, pm_runtime_force_resume) SET_RUNTIME_PM_OPS(cci_suspend_runtime, cci_resume_runtime, NULL) };