public inbox for dri-devel@lists.freedesktop.org
 help / color / mirror / Atom feed
* [bug report] drm/bridge: add a driver for T-Head TH1520 HDMI controller
@ 2026-04-10 10:11 Dan Carpenter
  2026-04-10 10:15 ` Icenowy Zheng
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2026-04-10 10:11 UTC (permalink / raw)
  To: Icenowy Zheng; +Cc: linux-riscv, dri-devel

Hello Icenowy Zheng,

Commit 96f30ee0fb9d ("drm/bridge: add a driver for T-Head TH1520 HDMI
controller") from Jan 29, 2026 (linux-next), leads to the following
Smatch static checker warning:

	drivers/gpu/drm/bridge/th1520-dw-hdmi.c:139 th1520_dw_hdmi_probe()
	warn: 'hdmi' isn't an ERR_PTR

drivers/gpu/drm/bridge/th1520-dw-hdmi.c
    133         plat_data->output_port = 1;
    134         plat_data->mode_valid = th1520_hdmi_mode_valid;
    135         plat_data->configure_phy = th1520_hdmi_phy_configure;
    136         plat_data->priv_data = hdmi;
    137 
    138         hdmi->dw_hdmi = dw_hdmi_probe(pdev, plat_data);
--> 139         if (IS_ERR(hdmi))
    140                 return PTR_ERR(hdmi);

s/hdmi/hdmi->dw_hdmi/

    141 
    142         platform_set_drvdata(pdev, hdmi);
    143 
    144         return 0;
    145 }

This email is a free service from the Smatch-CI project [smatch.sf.net].

regards,
dan carpenter

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [bug report] drm/bridge: add a driver for T-Head TH1520 HDMI controller
  2026-04-10 10:11 [bug report] drm/bridge: add a driver for T-Head TH1520 HDMI controller Dan Carpenter
@ 2026-04-10 10:15 ` Icenowy Zheng
  0 siblings, 0 replies; 2+ messages in thread
From: Icenowy Zheng @ 2026-04-10 10:15 UTC (permalink / raw)
  To: Dan Carpenter; +Cc: linux-riscv, dri-devel

在 2026-04-10五的 13:11 +0300,Dan Carpenter写道:
> Hello Icenowy Zheng,
> 
> Commit 96f30ee0fb9d ("drm/bridge: add a driver for T-Head TH1520 HDMI
> controller") from Jan 29, 2026 (linux-next), leads to the following
> Smatch static checker warning:
> 
> 	drivers/gpu/drm/bridge/th1520-dw-hdmi.c:139
> th1520_dw_hdmi_probe()
> 	warn: 'hdmi' isn't an ERR_PTR
> 
> drivers/gpu/drm/bridge/th1520-dw-hdmi.c
>     133         plat_data->output_port = 1;
>     134         plat_data->mode_valid = th1520_hdmi_mode_valid;
>     135         plat_data->configure_phy = th1520_hdmi_phy_configure;
>     136         plat_data->priv_data = hdmi;
>     137 
>     138         hdmi->dw_hdmi = dw_hdmi_probe(pdev, plat_data);
> --> 139         if (IS_ERR(hdmi))
>     140                 return PTR_ERR(hdmi);
> 
> s/hdmi/hdmi->dw_hdmi/

Thanks for the report.

A pending fix is at [1].

[1]
https://lore.kernel.org/dri-devel/20260321-th1520-v1-0-ec877197770d@gmail.com/


Thanks,
Icenowy

> 
>     141 
>     142         platform_set_drvdata(pdev, hdmi);
>     143 
>     144         return 0;
>     145 }
> 
> This email is a free service from the Smatch-CI project
> [smatch.sf.net].
> 
> regards,
> dan carpenter

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-04-10 10:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-10 10:11 [bug report] drm/bridge: add a driver for T-Head TH1520 HDMI controller Dan Carpenter
2026-04-10 10:15 ` Icenowy Zheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox