On Sun, 15 Feb 2026 03:30:02 +0200, Dmitry Baryshkov wrote:
> The typec_set_*() functions do not tolerate being passed the NULL
> typec_port instance. However, if CONFIG_TYPEC is enabled, but anx7625
> DT node doesn't have the usb-c connector fwnode, then typec_port remains
> NULL, crashing the kernel. Prevent calling typec_set_foo() functions by
> checking that ctx->typec_port is not NULL in anx7625_typec_set_status().
>
> Call trace:
> typec_set_orientation+0x18/0x68 (P)
> anx7625_typec_set_status+0x108/0x13c
> anx7625_work_func+0x124/0x438
> process_one_work+0x214/0x648
> worker_thread+0x1b4/0x358
> kthread+0x14c/0x214
> ret_from_fork+0x10/0x20
> Code: 910003fd a90153f3 aa0003f3 2a0103f4 (f9431400)
>
> [...]
Applied to drm-misc-next, thanks!
[1/1] drm: bridge: anx7625: don't crash if Type-C port is not used
commit: 8e3d8b33859bb8229d1f0b88752cbecb4932790a
Best regards,
--
With best wishes
Dmitry