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 4C0DD4D2ED7 for ; Wed, 9 Sep 2026 10:55:01 +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=1788951303; cv=none; b=VfTM+LJwsKBix+/EVZwVjmKwmaF8D4iBwZS1TxhBlqocgmUm+7eW1ruIpmQl3E0BKaYs/3+jD1tRj2y+21X4psIgy2eWR8nkc6mipQByGXYfKIE3ejX2vC+vY8o2Sd7REYOy029bvElbXDWy1LW0T68AZzJJhVquDPrDVOrVr3M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788951303; c=relaxed/simple; bh=UoJ1Pe/BPwiSbqBvryAvjxN74y/qsYWfUOkdBsjkXcs=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=pmm02SQeC/BOOZS4dwQ4fUN0FGF9cX9HzCXMOxne60j/U984mAyTBEUg7tZMOGaMB/yY2ko4ETD7uzNRhqv13n/EON736PQO0xR8UpM/WC8CFPKU4D2jkJH0gL0GyGauEfGaepV+VJJIBZYSFAjiH5VViqCms8cEA/7avBE0L2A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gocMZ80W; 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="gocMZ80W" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A0C991F00A3D; Wed, 9 Sep 2026 10:55:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1788951301; bh=8P3nmohI0EjECQvzFy5CFCj2/L8wu7mVZPNQ+HkW/Vc=; h=Subject:To:Cc:From:Date; b=gocMZ80WSGzPTMHPGpm8AebKG3O/C/9SdC/nWrNeHyh/xFwxTK9pzuebI1XHTGbCY lnEmlH6WQUXBL44QR//Uxk+8NGoIS7ms/FIpMVVPQiImCGWBPjuMJJY9UUIBTDO1CX KkTR/DI+AZvqLoNVUnpMKZvC1jse/ZMbgrZ2Nzjw= Subject: FAILED: patch "[PATCH] media: imx355: Avoid calling imx355_power_off twice in error" failed to apply to 6.12-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-lid-cattail-734c@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.12-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.12.y git checkout FETCH_HEAD git cherry-pick -x ee737bc3ccae7dc713ccaa83ffa46080c6031b3e # git commit -s git send-email --to '' --in-reply-to '2026090912-lid-cattail-734c@gregkh' --subject-prefix 'PATCH 6.12.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: