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 218A643803A for ; Wed, 5 Aug 2026 11:44:11 +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=1785930253; cv=none; b=kHCXAhb8N4FQQG4XPI0xnkJ46kXQEwCoiEWdj0vwhzl69qOonrAgNLikOFjceGOyEYcx3hISrThdwwOEMqKq2oHHlFux+iOPev7Y4ZBxifaxVpoGrZeg8F4sBY6owGdW573NOd71rZOrfunP3e69IzShB5gpjSruo9Ub+DPR6Bc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785930253; c=relaxed/simple; bh=fvjU8Swtp/BffqHelqx8GQYw836+GWVOHjODx2UNSls=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=MOaT9za9wryZiKlynCuPksfyvYbMbBVjZZJYLjYbAUiPLwNO8Xtt+3GHrFPrGPxYi+UUXxoS8LrEHe8WtLSOCx9HfHoOv8aW2thyBEYzJhq+Yucg8PdfiXc9LRdJQOTu9CDi9qBnhyRwUgb+i3hRL0c4U//HbOfhuVeVb6BU8ig= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2qjjduTl; 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="2qjjduTl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2FF581F00A3D; Wed, 5 Aug 2026 11:44:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1785930251; bh=rTHg9njcJSVi98rjbuWd9Eizc3ybBWTLIShcERZ2JO8=; h=Subject:To:Cc:From:Date; b=2qjjduTlk2jvkXypCdWsSB0NRGAltRHdP3l87RXJZYsgd7UNeMqUWMecck4hrHZQq Zi+VfcpRJgUKObZ8O5YhjG3yjj/NLNcFDUqaH98HPXnF98OTZ4XwRZwNxYlizRMtw7 8i3z0qm6zXgEso6g4tp2U4OnIzfYhQjfftWAt9DM= Subject: FAILED: patch "[PATCH] i2c: qcom-cci: drop custom suspend/resume and rely on runtime" failed to apply to 5.15-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-paparazzi-numbness-e97d@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 b08c9857aa1f5f3a81d375d6d4bb1d8b92f22ebc # git commit -s git send-email --to '' --in-reply-to '2026080543-paparazzi-numbness-e97d@gregkh' --subject-prefix 'PATCH 5.15.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) };