From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 619F037AA81 for ; Fri, 15 May 2026 07:22:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778829732; cv=none; b=g+zO1UzsTXc/4QReGEPTX6TfxKisXVS0LIJsnKGtwvmqZBR4nHde5HF1P4XYdARl0F3/zutqmoL5HYN0yQ1Sb/itaiudswshaGA1hfLfr1hzX1OtzWyTZhJZmXtynXymzqrzN0+GtcyGSF1V9nJ2PGILsAgAlqVjmz4jNZtRdNk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778829732; c=relaxed/simple; bh=GkVRT5gi9XiwlH/ssAjGxzbs8DAAUcRc4f03goGimjM=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=hvH8AMFOLpDw6Uc1KD+e+wqzmHERLcV5Ay2Ewwrb4GR5+6FgpDlQUzLrl8AD3VHQfeppTkKMYIQD58M1N+a8PjCFxcFhX1uNJjwT1II+D6yRZjeTE6qA9UsFesE2dxAVAZtrUkatygwR1VaP+LR4phSK/I9EMG8/V4txjlDZdtQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KCESLviv; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="KCESLviv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AFA59C2BCB0; Fri, 15 May 2026 07:22:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778829732; bh=GkVRT5gi9XiwlH/ssAjGxzbs8DAAUcRc4f03goGimjM=; h=Subject:To:Cc:From:Date:From; b=KCESLvivPbWsBMk5Q50BqKEy/3NudWguDL8DiX5/X0AlywVNbu7dSAW8Ys3LHG+IT 8nbROgAd2SWyu1z5yhGBi6EU7XPyl2Gp0b/2yiwRfPR/6EveprBV14nIUFFPE5OK2g UHnvJV5kNywjdD9F/4wevTP989TbL70qqW1AEBVk= Subject: FAILED: patch "[PATCH] media: i2c: ov08d10: fix runtime PM handling in probe" failed to apply to 6.12-stable tree To: matthias.fend@emfend.at,hverkuil+cisco@kernel.org,p.zabel@pengutronix.de,sakari.ailus@linux.intel.com Cc: From: Date: Fri, 15 May 2026 09:22:16 +0200 Message-ID: <2026051516-spelling-bobbed-868d@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 35c7046be2be5e60be8128facb359a47f39e99cd # git commit -s git send-email --to '' --in-reply-to '2026051516-spelling-bobbed-868d@gregkh' --subject-prefix 'PATCH 6.12.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 35c7046be2be5e60be8128facb359a47f39e99cd Mon Sep 17 00:00:00 2001 From: Matthias Fend Date: Tue, 24 Mar 2026 11:41:35 +0100 Subject: [PATCH] media: i2c: ov08d10: fix runtime PM handling in probe Set the device's runtime PM status and enable runtime PM before registering the async sub-device. This is needed to avoid the case where the device is runtime PM resumed while runtime PM has not been enabled yet. Remove the related, non-driver-specific comment while at it. Fixes: 7be91e02ed57 ("media: i2c: Add ov08d10 camera sensor driver") Cc: stable@vger.kernel.org Reviewed-by: Philipp Zabel Signed-off-by: Matthias Fend Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil diff --git a/drivers/media/i2c/ov08d10.c b/drivers/media/i2c/ov08d10.c index 43ec2a1f2fcf..5b02f61e359f 100644 --- a/drivers/media/i2c/ov08d10.c +++ b/drivers/media/i2c/ov08d10.c @@ -1430,6 +1430,9 @@ static int ov08d10_probe(struct i2c_client *client) goto probe_error_v4l2_ctrl_handler_free; } + pm_runtime_set_active(ov08d10->dev); + pm_runtime_enable(ov08d10->dev); + ret = v4l2_async_register_subdev_sensor(&ov08d10->sd); if (ret < 0) { dev_err(ov08d10->dev, "failed to register V4L2 subdev: %d", @@ -1437,17 +1440,13 @@ static int ov08d10_probe(struct i2c_client *client) goto probe_error_media_entity_cleanup; } - /* - * Device is already turned on by i2c-core with ACPI domain PM. - * Enable runtime PM and turn off the device. - */ - pm_runtime_set_active(ov08d10->dev); - pm_runtime_enable(ov08d10->dev); pm_runtime_idle(ov08d10->dev); return 0; probe_error_media_entity_cleanup: + pm_runtime_disable(ov08d10->dev); + pm_runtime_set_suspended(ov08d10->dev); media_entity_cleanup(&ov08d10->sd.entity); probe_error_v4l2_ctrl_handler_free: