All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sui Jingfeng <sui.jingfeng@linux.dev>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: dri-devel@lists.freedesktop.org,
	Andrzej Hajda <andrzej.hajda@intel.com>,
	 Neil Armstrong <neil.armstrong@linaro.org>,
	Robert Foss <rfoss@kernel.org>, Jonas Karlman <jonas@kwiboo.se>,
	Jernej Skrabec <jernej.skrabec@gmail.com>
Subject: Re: [PATCH] drm: bridge: thc63lvd1024: Print error message when DT parsing fails
Date: Tue, 19 Mar 2024 02:18:41 +0800	[thread overview]
Message-ID: <f3dc3c95-4346-44dd-9e16-3f07a48d4cda@linux.dev> (raw)
In-Reply-To: <20240318180420.GP13682@pendragon.ideasonboard.com>

Hi,


On 2024/3/19 02:04, Laurent Pinchart wrote:
> Hi Sui,
>
> On Tue, Mar 19, 2024 at 12:42:41AM +0800, Sui Jingfeng wrote:
>> On 2024/3/19 00:06, Laurent Pinchart wrote:
>>> Commit 00084f0c01bf ("drm: bridge: thc63lvd1024: Switch to use
>>> of_graph_get_remote_node()") simplified the thc63lvd1024 driver by
>>> replacing hand-rolled code with a helper function.
>> [...]
>>
>>> While doing so, it
>>> created an error code path at probe time without any error message,
>> If this is a reason or a concern, then every drm bridges drivers will suffer from
>> such a concern. Right?
> Yes, bridge drivers (or any driver, really) should avoid failing probe
> silently.


Yes, I agree with you that bridge drivers should avoid failing probe.

But the real problem that deserve to discuss is that is it really *silently* ?

The of_graph_get_remote_node() function do have debug prints on failure:


   - pr_debug("no valid endpoint (%d, %d) for node %pOF\n", port, endpoint, node);
   - pr_debug("no valid remote node\n");
   - pr_debug("not available for remote node\n");

So it is not really *silently*.



  reply	other threads:[~2024-03-18 18:18 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-18 16:06 [PATCH] drm: bridge: thc63lvd1024: Print error message when DT parsing fails Laurent Pinchart
2024-03-18 16:42 ` Sui Jingfeng
2024-03-18 18:04   ` Laurent Pinchart
2024-03-18 18:18     ` Sui Jingfeng [this message]
2024-03-18 19:23     ` Sui Jingfeng
2024-03-18 19:33       ` Sui Jingfeng
2024-03-19 15:49       ` Neil Armstrong
2024-03-20 20:04         ` Sui Jingfeng
2024-03-19 15:44 ` Neil Armstrong
2024-03-19 15:49 ` Neil Armstrong

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=f3dc3c95-4346-44dd-9e16-3f07a48d4cda@linux.dev \
    --to=sui.jingfeng@linux.dev \
    --cc=andrzej.hajda@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jernej.skrabec@gmail.com \
    --cc=jonas@kwiboo.se \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=neil.armstrong@linaro.org \
    --cc=rfoss@kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.