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 BF8213EB0E1 for ; Wed, 5 Aug 2026 11:44:09 +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=ab1fkyrR3rm1H/xJ6bbMiiJkaR72HIOQVXIGegkMBQNYDr5vR8OAw5bWKmTNE24o+1wef7eToBl03UM7z5yiq2N4Lj5ZFVHgvKfZcmS6ngxfunCquGbW6t9eQVzLkEKENMAeH4iASJ/rEqBk6+mhJoH5SGsYey2/24eRDodbfHI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785930251; c=relaxed/simple; bh=eJHKLx9bwYNqMIOKuDWD0g3CDcuEBfQFQ0THTPzbU/w=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=F2tgdjEvL9Q3lSpwYOtLphep89jpycTLH3idYJgRKi4l8NFI0U1F1S5r2qBBretueMI8924z6P01HkeY+NYvy1tVrYwHUnWrB52FqdBFdd/8uVxqv6PR8Q9JXWQ52dm05clU7TdiVmx0jUT4w+sle3rQScccQgT1/no4RM1Q25M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lGvW6gs1; 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="lGvW6gs1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 645791F000E9; Wed, 5 Aug 2026 11:44:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1785930248; bh=vHbba0rThj3MXqUG5qh8HWWyhGwA3HkHK0H9BovvVJo=; h=Subject:To:Cc:From:Date; b=lGvW6gs1TCAdFjqGPtB/Mzdaq9KHcpe2k5W6kDUzCJnIgcwsIEzT1M8wDyhkeDNad DMGTqT7sXJ/LBjxezIOnE2yIW8v5B7iUHY/0zGoON4gzpGp8eT8kOsbDFgmmC+ZN+c Vujj5/7i1D81kwlbHcEqfViBHeyaNIHN/WDMwsws= Subject: FAILED: patch "[PATCH] i2c: qcom-cci: drop custom suspend/resume and rely on runtime" failed to apply to 5.10-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:43 +0200 Message-ID: <2026080543-agreeable-cloning-8808@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.10-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.10.y git checkout FETCH_HEAD git cherry-pick -x b08c9857aa1f5f3a81d375d6d4bb1d8b92f22ebc # git commit -s git send-email --to '' --in-reply-to '2026080543-agreeable-cloning-8808@gregkh' --subject-prefix 'PATCH 5.10.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) };