Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Hermes Wu" <Hermes.wu@ite.com.tw>
Cc: media-ci@linuxtv.org, devicetree@vger.kernel.org,
	robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 17/21] media: i2c: it6625: require a DT endpoint and simplify endpoint parsing
Date: Fri, 18 Sep 2026 09:16:56 +0000	[thread overview]
Message-ID: <20260918091657.4F1381F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260918-upstream-it6625-follow-up-patch-v1-17-78d72d7886a5@ite.com.tw>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] dev_err() unconditionally logs -EPROBE_DEFER causing boot log spam
--

commit 60b825e6a08d82d6c62f40c034de7563ec028e05
Author: Hermes Wu <Hermes.wu@ite.com.tw>

media: i2c: it6625: require a DT endpoint and simplify endpoint parsing

This commit removes hardcoded configuration defaults that were applied when
no CSI-2 endpoint was found, requiring the configuration to come entirely
from the device tree. It deletes the early return for missing endpoints,
allowing the fwnode parser to handle the NULL fwnode and return -EPROBE_DEFER.

> diff --git a/drivers/media/i2c/it6625.c b/drivers/media/i2c/it6625.c
> index 4a54de2eb42bb..5fa8441f07369 100644
> --- a/drivers/media/i2c/it6625.c
> +++ b/drivers/media/i2c/it6625.c
[ ... ]
> @@ -2098,13 +2095,6 @@ static int it6625_parse_endpoint(struct it6625 *it6625)
>  			of_node_put(port_ep);
>  	}
>  
> -	if (!ep) {
> -		it6625->port_num = 1;
> -		dev_dbg(dev, "no CSI-2 endpoint node found, using default %u CSI lanes",
> -			it6625->csi_lanes);
> -		return 0;
> -	}
> -
>  	ret = v4l2_fwnode_endpoint_alloc_parse(of_fwnode_handle(ep), &endpoint);
>  	of_node_put(ep);
>  	if (ret) {
>  		dev_err(dev, "failed to parse endpoint: %d", ret);

[Severity: Medium]
Looking at it6625_parse_endpoint() in drivers/media/i2c/it6625.c, since the
early return for !ep was removed, a missing device tree endpoint node results
in ep evaluating to NULL. In this case, v4l2_fwnode_endpoint_alloc_parse()
intentionally returns -EPROBE_DEFER.

Since dev_err() is used here instead of dev_err_probe(), will this
unconditionally print an error message on every probe deferral retry and
cause boot log spam? Should dev_err_probe() be used here instead to
silence the -EPROBE_DEFER message?

>  		return ret;
>  	}

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260918-upstream-it6625-follow-up-patch-v1-0-78d72d7886a5@ite.com.tw?part=17

  reply	other threads:[~2026-09-18  9:16 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-18  8:57 [PATCH 00/21] media: i2c: it6625: address review feedback and adopt subdev state Hermes Wu via B4 Relay
2026-09-18  8:57 ` [PATCH 01/21] media: dt-bindings: ite,it6625: document the default CSI-2 bus type Hermes Wu via B4 Relay
2026-09-28 19:21   ` Rob Herring (Arm)
2026-09-18  8:57 ` [PATCH 02/21] media: i2c: it6625: propagate control-update errors Hermes Wu via B4 Relay
2026-09-18 10:05   ` Sakari Ailus
2026-09-18 11:05     ` Hermes.Wu
2026-09-18  8:57 ` [PATCH 03/21] media: i2c: it6625: default the debug module parameter to 0 Hermes Wu via B4 Relay
2026-09-18  8:57 ` [PATCH 04/21] media: i2c: it6625: drop unused bus field from struct it6625 Hermes Wu via B4 Relay
2026-09-18  8:57 ` [PATCH 05/21] media: i2c: it6625: drop stale GCC < 4.4.6 workaround Hermes Wu via B4 Relay
2026-09-18  8:57 ` [PATCH 06/21] media: i2c: it6625: use unsigned int loop indices in table lookups Hermes Wu via B4 Relay
2026-09-18  8:57 ` [PATCH 07/21] media: i2c: it6625: drop redundant parentheses in status helpers Hermes Wu via B4 Relay
2026-09-18  8:57 ` [PATCH 08/21] media: i2c: it6625: make the audio sampling-rate table static const Hermes Wu via B4 Relay
2026-09-18  8:57 ` [PATCH 09/21] media: i2c: it6625: tidy CEC buffer init and a continuation line Hermes Wu via B4 Relay
2026-09-18  8:57 ` [PATCH 10/21] media: i2c: it6625: clean up it6625_wait_for_status() Hermes Wu via B4 Relay
2026-09-18  8:57 ` [PATCH 11/21] media: i2c: it6625: use unsigned int indices in EDID read/write Hermes Wu via B4 Relay
2026-09-18  8:57 ` [PATCH 12/21] media: i2c: it6625: use unaligned/units helpers to decode pixel clock Hermes Wu via B4 Relay
2026-09-18  9:11   ` sashiko-bot
2026-09-18  8:57 ` [PATCH 13/21] media: i2c: it6625: decode detected timings via typed register structs Hermes Wu via B4 Relay
2026-09-18 10:09   ` Sakari Ailus
2026-09-18  8:57 ` [PATCH 14/21] media: i2c: it6625: fix link-frequency reporting for one-/two-trio C-PHY Hermes Wu via B4 Relay
2026-09-18  8:57 ` [PATCH 15/21] media: i2c: it6625: use early returns in it6625_update_timings_if_changed() Hermes Wu via B4 Relay
2026-09-18  8:57 ` [PATCH 16/21] media: i2c: it6625: drop the private CSI-format name table Hermes Wu via B4 Relay
2026-09-18  8:57 ` [PATCH 17/21] media: i2c: it6625: require a DT endpoint and simplify endpoint parsing Hermes Wu via B4 Relay
2026-09-18  9:16   ` sashiko-bot [this message]
2026-09-18  8:57 ` [PATCH 18/21] media: i2c: it6625: finish reverse fir-tree declaration order Hermes Wu via B4 Relay
2026-09-18  8:57 ` [PATCH 19/21] media: i2c: it6625: fold subdev initialization into probe Hermes Wu via B4 Relay
2026-09-18 10:13   ` Sakari Ailus
2026-09-18  8:57 ` [PATCH 20/21] media: i2c: it6625: use centrally managed active state Hermes Wu via B4 Relay
2026-09-18 10:24   ` Sakari Ailus
2026-09-18 11:19     ` Hermes.Wu
2026-09-18 15:28       ` Sakari Ailus
2026-09-21  2:24         ` Hermes.Wu
2026-09-25 11:35           ` Sakari Ailus
2026-09-18  8:57 ` [PATCH 21/21] media: i2c: it6625: use enable_streams and disable_streams Hermes Wu via B4 Relay

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=20260918091657.4F1381F000FF@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=Hermes.wu@ite.com.tw \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=media-ci@linuxtv.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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