[PATCH] drm/bridge: ti-sn65dsi86: Use dev_err_probe() to avoid polluting the log
Javier Martinez Canillas
javierm at redhat.com
Fri Jul 22 23:41:01 UTC 2022
On 7/22/22 15:35, Doug Anderson wrote:
> Hi,
>
> On Fri, Jul 22, 2022 at 12:48 AM Javier Martinez Canillas
> <javierm at redhat.com> wrote:
>>
>> If devm_drm_of_get_bridge() can't find the connected bridge, it returns an
>> ERR_PTR(-EPROBE_DEFER) to indicate that the probe should be deferred.
>>
>> But this path also prints an error message, which pollutes the kernel log
>> since is printed on every probe deferral, i.e:
>>
>> $ dmesg | grep "failed to create panel bridge" | wc -l
>> 38
>>
>> Signed-off-by: Javier Martinez Canillas <javierm at redhat.com>
>> ---
>>
>> drivers/gpu/drm/bridge/ti-sn65dsi86.c | 7 +++----
>> 1 file changed, 3 insertions(+), 4 deletions(-)
>
> Reviewed-by: Douglas Anderson <dianders at chromium.org>
>
> If someone else doesn't beat me to it, I'll apply next week sometime.
>
I've pushed this to drm-misc (drm-misc-next). Thanks all!
--
Best regards,
Javier Martinez Canillas
Linux Engineering
Red Hat
More information about the dri-devel
mailing list