From: Benjamin Mugnier <benjamin.mugnier@foss.st.com>
To: Jizhou Tong <fqwqf@fqwqf.xyz>, <sakari.ailus@linux.intel.com>,
<sylvain.petinot@foss.st.com>
Cc: <mchehab@kernel.org>, <hverkuil@kernel.org>,
<linux-media@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v3 1/2] media: i2c: vd55g1: preserve the stream-start error
Date: Tue, 13 Oct 2026 11:24:54 +0200 [thread overview]
Message-ID: <791913a6-8250-4c9b-8bee-95703c490bd7@foss.st.com> (raw)
In-Reply-To: <010601a1333dc2ae-f24ce995-a0a2-4d38-80a6-43a3696713ef-000000@ap-northeast-1.amazonses.com>
Hi,
Thank you for your patch.
Le 13/10/2026 à 05:10, Jizhou Tong a écrit :
> The stream-start error path replaces failures from register accesses and
> sensor configuration with -EINVAL. This hides the cause of failures such
> as an I2C error or a timeout.
>
> Return the saved error after dropping the runtime PM reference. All
> paths reaching this label already set ret to the error that triggered
> cleanup.
>
> Signed-off-by: Jizhou Tong <fqwqf@fqwqf.xyz>
Reviewed-By: Benjamin Mugnier <benjamin.mugnier@foss.st.com>
> ---
> Changes in v3: no code changes from v2.
>
> Fault-injection harness:
> https://gist.github.com/fQwQf/60bd12627e06b10a2fc159e545f85dae/7b21a7d3a1b676a0e4cdaba06168ede09a2949e3
>
> drivers/media/i2c/vd55g1.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/media/i2c/vd55g1.c b/drivers/media/i2c/vd55g1.c
> index 6f458f611f63451c97c708e187a313cf7b2aab4c..78e4aebfdd3b24b867ea4d077dc1b676c4a595da 100644
> --- a/drivers/media/i2c/vd55g1.c
> +++ b/drivers/media/i2c/vd55g1.c
> @@ -1178,7 +1178,7 @@ static int vd55g1_enable_streams(struct v4l2_subdev *sd,
>
> err_rpm_put:
> pm_runtime_put(sensor->dev);
> - return -EINVAL;
> + return ret;
> }
>
> static int vd55g1_disable_streams(struct v4l2_subdev *sd,
--
Regards,
Benjamin
next prev parent reply other threads:[~2026-10-13 9:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-10 9:23 [PATCH v2 0/2] media: i2c: vd55g1: preserve stream errors and always attempt stop fQwQf
2026-10-13 2:54 ` [PATCH v3 " Jizhou Tong
2026-10-13 3:10 ` [PATCH v3 1/2] media: i2c: vd55g1: preserve the stream-start error Jizhou Tong
2026-10-13 9:24 ` Benjamin Mugnier [this message]
2026-10-13 3:10 ` [PATCH v3 2/2] media: i2c: vd55g1: stop streaming after an exposure read error Jizhou Tong
2026-10-13 9:24 ` Benjamin Mugnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=791913a6-8250-4c9b-8bee-95703c490bd7@foss.st.com \
--to=benjamin.mugnier@foss.st.com \
--cc=fqwqf@fqwqf.xyz \
--cc=hverkuil@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=sakari.ailus@linux.intel.com \
--cc=sylvain.petinot@foss.st.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®