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 DD10048E0F4 for ; Wed, 9 Sep 2026 10:55:07 +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=1788951309; cv=none; b=hW2ckBRH9/+awVx+4jHB99ZgmKDysSEel+m9FPEOOhQuxO1TyAB8NBqiJB00j0xwEpjQ2lGwh2J2SKNKm0C2osRNZjtxh8hvJ8pdUGacdAMkkwE+6eIOKUFEYKB+WvQfo1tiYLEF58c8d3+PZt+x73UYsyzTZh8wN8mu+fKAiQs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788951309; c=relaxed/simple; bh=XQtnmX6tQ+PbTykK42om25VS3QWSjIWZIl0OjGoIMpc=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=ITIan0O9FZRWoZ8AdxX+o2nbbWCgn0VHwhbl6ViyfkB6RCMxqdiFBCenZDXGjUzYR6Kvz3HofUUrVYKlixOfXWQ2WwNqqkamrFP0zKtMiu7pVw9qwJrZ9xZxuORE1P4R3dXfZEqFJGF6DF1Q48YnvEAcUA33EdzMaaG6I2olXpQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=F0vpINnV; 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="F0vpINnV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F2991F00A3D; Wed, 9 Sep 2026 10:55:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1788951306; bh=T+kN8f+rmR4ik0BOQCvBDFfKXzppY7Di7VpoNI5ahiM=; h=Subject:To:Cc:From:Date; b=F0vpINnVw0i9CoGuqDcvt/qgaBP2kQVHtHb6myNpJPtWJsZs8FyIId2RhnEL4uW57 cThvKLDU9cSzp+LQPnXLRUgTnBH32Wlj4xZDVMF0hJ2cUPKJQHP5FSlX3FXhxM6/Eu DvxMU7D5wg8aMGUBHgrWmm9dGAgXKBMay+7EP3qs= Subject: FAILED: patch "[PATCH] media: imx355: Avoid calling imx355_power_off twice in error" failed to apply to 6.1-stable tree To: dave.stevenson@raspberrypi.com,sakari.ailus@linux.intel.com Cc: From: Date: Wed, 09 Sep 2026 12:46:13 +0200 Message-ID: <2026090913-busybody-bluish-1dcb@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 ee737bc3ccae7dc713ccaa83ffa46080c6031b3e # git commit -s git send-email --to '' --in-reply-to '2026090913-busybody-bluish-1dcb@gregkh' --subject-prefix 'PATCH 6.1.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: