From: "Heiko Stübner" <heiko@sntech.de>
To: long.yunjian@zte.com.cn, hjc@rock-chips.com,
Krzysztof Kozlowski <krzk@kernel.org>
Cc: andy.yan@rock-chips.com, maarten.lankhorst@linux.intel.com,
mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com,
simona@ffwll.ch, dri-devel@lists.freedesktop.org,
linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org,
fang.yumeng@zte.com.cn, mou.yi@zte.com.cn, xu.lifeng1@zte.com.cn,
ouyang.maochun@zte.com.cn
Subject: Re: [PATCH] drm/rockchip: Use dev_err_probe() to simplify code
Date: Fri, 16 May 2025 11:58:11 +0200 [thread overview]
Message-ID: <2022996.jZfb76A358@diego> (raw)
In-Reply-To: <94e0951b-46e1-439b-9dbc-c2009a78b04b@kernel.org>
Am Donnerstag, 15. Mai 2025, 17:54:20 Mitteleuropäische Sommerzeit schrieb Krzysztof Kozlowski:
> On 15/05/2025 14:35, long.yunjian@zte.com.cn wrote:
> > From: Yumeng Fang <fang.yumeng@zte.com.cn>
> >
> > In the probe path, dev_err() can be replaced with dev_err_probe()
>
> That's not probe path. I am not sure if you really understand this code.
I think that is somewhat debateable.
dw_hdmi_rockchip_bind() is part of the rockchip-drm component device,
so part of its probe-path. Also I think just the presence of EPROBE_DEFER
which causes the device to re-try probing later is a nice indicator that the
code in question is _a_ probe path. (and usage of EPROBE_DEFER is an
established pattern to make that component device re-try probing later)
And the parse_dt function itself is part of that path too.
> > which will check if error code is -EPROBE_DEFER and prints the
> > error name. It also sets the defer probe reason which can be
> > checked later through debugfs.
> >
> > Signed-off-by: Yumeng Fang <fang.yumeng@zte.com.cn>
>
> Incomplete chain.
Yep, the patch needs a 2nd Signed-off-by line from
long.yunjian@zte.com.cn please.
Heiko
WARNING: multiple messages have this Message-ID (diff)
From: "Heiko Stübner" <heiko@sntech.de>
To: long.yunjian@zte.com.cn, hjc@rock-chips.com,
Krzysztof Kozlowski <krzk@kernel.org>
Cc: andy.yan@rock-chips.com, maarten.lankhorst@linux.intel.com,
mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com,
simona@ffwll.ch, dri-devel@lists.freedesktop.org,
linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org,
fang.yumeng@zte.com.cn, mou.yi@zte.com.cn, xu.lifeng1@zte.com.cn,
ouyang.maochun@zte.com.cn
Subject: Re: [PATCH] drm/rockchip: Use dev_err_probe() to simplify code
Date: Fri, 16 May 2025 11:58:11 +0200 [thread overview]
Message-ID: <2022996.jZfb76A358@diego> (raw)
In-Reply-To: <94e0951b-46e1-439b-9dbc-c2009a78b04b@kernel.org>
Am Donnerstag, 15. Mai 2025, 17:54:20 Mitteleuropäische Sommerzeit schrieb Krzysztof Kozlowski:
> On 15/05/2025 14:35, long.yunjian@zte.com.cn wrote:
> > From: Yumeng Fang <fang.yumeng@zte.com.cn>
> >
> > In the probe path, dev_err() can be replaced with dev_err_probe()
>
> That's not probe path. I am not sure if you really understand this code.
I think that is somewhat debateable.
dw_hdmi_rockchip_bind() is part of the rockchip-drm component device,
so part of its probe-path. Also I think just the presence of EPROBE_DEFER
which causes the device to re-try probing later is a nice indicator that the
code in question is _a_ probe path. (and usage of EPROBE_DEFER is an
established pattern to make that component device re-try probing later)
And the parse_dt function itself is part of that path too.
> > which will check if error code is -EPROBE_DEFER and prints the
> > error name. It also sets the defer probe reason which can be
> > checked later through debugfs.
> >
> > Signed-off-by: Yumeng Fang <fang.yumeng@zte.com.cn>
>
> Incomplete chain.
Yep, the patch needs a 2nd Signed-off-by line from
long.yunjian@zte.com.cn please.
Heiko
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
next prev parent reply other threads:[~2025-05-16 10:01 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-15 12:35 [PATCH] drm/rockchip: Use dev_err_probe() to simplify code long.yunjian
2025-05-15 12:35 ` long.yunjian
2025-05-15 15:54 ` Krzysztof Kozlowski
2025-05-15 15:54 ` Krzysztof Kozlowski
2025-05-16 9:58 ` Heiko Stübner [this message]
2025-05-16 9:58 ` Heiko Stübner
2025-05-22 8:45 ` Krzysztof Kozlowski
2025-05-22 8:45 ` Krzysztof Kozlowski
2025-05-23 9:36 ` Andy Yan
2025-05-23 9:36 ` Andy Yan
2025-07-08 17:35 ` Heiko Stuebner
2025-07-08 17:35 ` Heiko Stuebner
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=2022996.jZfb76A358@diego \
--to=heiko@sntech.de \
--cc=airlied@gmail.com \
--cc=andy.yan@rock-chips.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=fang.yumeng@zte.com.cn \
--cc=hjc@rock-chips.com \
--cc=krzk@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=long.yunjian@zte.com.cn \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mou.yi@zte.com.cn \
--cc=mripard@kernel.org \
--cc=ouyang.maochun@zte.com.cn \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
--cc=xu.lifeng1@zte.com.cn \
/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.