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 3DDBB48E0F4 for ; Wed, 9 Sep 2026 10:54:58 +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=1788951301; cv=none; b=drCfWIH5YyKxApedn5aTjRyQaKS/ZT15SXBGB5vT++CMkPlW5Z1l3l24ovlSMfDU1eMSaAFQ0GtMpGKXGfAC5V9/ESO7IKHKIELyTHzt3fUBO4QVwy8nA9aiQ3yBCtsTYQaPSvN/jae0Zkhun/URhAwCiESeX1bUvE5qm1TDsSc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788951301; c=relaxed/simple; bh=bApCDsDmKIeFclKhV0zeaP+u5pFGfU//MLnMtMG+7oE=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=KJktsT5zqJxNaxj9Gzgxqss+cT9xlRXTj5WJvypymzS46L38kVp0KkrqX1ipSiyT0gxTeTqj/gL1Yz+C+D4/GKYQLBqpqiU0NK5J68YTNq8UHRt9ALkpi6UwJOS1OWkTF+SXhU3EZKZhhEfTQjaXaGY9MGxsv3Q2qr7uX0fk1Ck= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0WoIesbk; 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="0WoIesbk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0DDD1F00A3A; Wed, 9 Sep 2026 10:54:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1788951298; bh=QWq4HSvV1wreHS3JwYrt+3Q31aocEDaBIOBUM6sk4O4=; h=Subject:To:Cc:From:Date; b=0WoIesbk8Y6BJ1A/vNFf0TG4xZ8cr6VmajtzmFKAXMZOn0WcLDFM57c4qstR+Taeb 3oFZ54uaUQiJFyZmwaoWTsZ5ZwM8coPvRQtzMUtP249uyH6TEWVCk2+Gk8CgbyEjcZ cyoJvQ2cbHdShTQK4jLINVGPLJ7sz9+ZALQoSIds= Subject: FAILED: patch "[PATCH] media: imx355: Avoid calling imx355_power_off twice in error" failed to apply to 6.6-stable tree To: dave.stevenson@raspberrypi.com,sakari.ailus@linux.intel.com Cc: From: Date: Wed, 09 Sep 2026 12:46:12 +0200 Message-ID: <2026090912-crazily-password-6b21@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 ee737bc3ccae7dc713ccaa83ffa46080c6031b3e # git commit -s git send-email --to '' --in-reply-to '2026090912-crazily-password-6b21@gregkh' --subject-prefix 'PATCH 6.6.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From ee737bc3ccae7dc713ccaa83ffa46080c6031b3e Mon Sep 17 00:00:00 2001 From: Dave Stevenson Date: Wed, 15 Jul 2026 12:43:14 +0100 Subject: [PATCH] media: imx355: Avoid calling imx355_power_off twice in error path If v4l2_async_register_subdev_sensor failed, then the sensor had already been powered down by pm_runtime_idle, but the error path then also explicitly called imx355_power_off as well. That left an imbalance in the regulator and clock calls. Call pm_runtime_idle only after v4l2_async_register_subdev_sensor succeeds to avoid this. Fixes: efa5fe19c0a9 ("media: imx355: Enable runtime PM before registering async sub-device") Cc: stable@vger.kernel.org Signed-off-by: Dave Stevenson Signed-off-by: Sakari Ailus diff --git a/drivers/media/i2c/imx355.c b/drivers/media/i2c/imx355.c index 27a5c212a527..ac59908f57aa 100644 --- a/drivers/media/i2c/imx355.c +++ b/drivers/media/i2c/imx355.c @@ -1822,12 +1822,13 @@ static int imx355_probe(struct i2c_client *client) */ pm_runtime_set_active(imx355->dev); pm_runtime_enable(imx355->dev); - pm_runtime_idle(imx355->dev); ret = v4l2_async_register_subdev_sensor(&imx355->sd); if (ret < 0) goto error_media_entity_runtime_pm; + pm_runtime_idle(imx355->dev); + return 0; error_media_entity_runtime_pm: