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 01D2C3E3C78 for ; Fri, 15 May 2026 07:22:22 +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=1778829743; cv=none; b=s1ZevEyyLK2Q13a/Qq3cQAVqULpCAMQWLSWKYVzYbyDLJNTiXVV5cQGd1OLZaVcnHkmTbi/YAo1mO7aaGBh/daBuQm7Tgr6Bvk4VMqU+ubv60j+B6jFw3uYs4rcnbXZCzjzk4Q1KK4wtzKchkQ6Sfd+VmFgn72CH0HQExT/Osr0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778829743; c=relaxed/simple; bh=8/Hson3qfRqgWhQ1PUgPqwD6NAsBRbC7eb/CVd5/Mgo=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=iv6qIyPT8H+CTXVIQwyjoWrvxm9DIv6RpzAx56H/O1VLxu+ulfRBZ7yxNat6Iw8JA51P5yQyfbW2HgJ1PBYtj3X8I8c8pECjh3mGKmC16jgztlfAZIcD34z+YphMPfl/KhUdfwt1hnkc06w49rm41KeSJXjjmUf94lqXwthxufQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NUlz3edv; 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="NUlz3edv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 886C9C2BCB0; Fri, 15 May 2026 07:22:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778829742; bh=8/Hson3qfRqgWhQ1PUgPqwD6NAsBRbC7eb/CVd5/Mgo=; h=Subject:To:Cc:From:Date:From; b=NUlz3edvjXpivbXnePtgU/TksZF0BkDJCDOUh5EFY6PG4O0+sVbMrqeqZN8yYHulT 9Fxa3/LAzkTFiJhx4nh4ChkMJEy6EPcJ4Q9L3w9gJ33AW1TWC2rWrZdCjLNaofbbZ0 o41k2iMLbDopldca07XDNkFZd8hbJ3XOpl+V2yek= Subject: FAILED: patch "[PATCH] media: i2c: ov08d10: fix runtime PM handling in probe" failed to apply to 6.1-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-showoff-escalate-741f@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 35c7046be2be5e60be8128facb359a47f39e99cd # git commit -s git send-email --to '' --in-reply-to '2026051516-showoff-escalate-741f@gregkh' --subject-prefix 'PATCH 6.1.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: