Re: [PATCH v2 0/2] drm/bridge: panel: Check device dependency before managing device link

From: Linus Walleij
Date: Mon Nov 27 2023 - 11:04:12 EST


On Mon, Nov 27, 2023 at 6:10 AM Liu Ying <victor.liu@xxxxxxx> wrote:

> This series aims to check panel device dependency upon DRM device before
> managing device link between them. It fixes eariler patches in v6.7-rc1
> which tried to manage the link. Without this series, the link fails to
> be added for dependent panel devices and hence relevant panel bridges
> fail to be attached. A real broken panel is "novatek,nt35510" defined
> in arch/arm/boot/dts/st/ste-ux500-samsung-skomer.dts as reported by
> Linus Walleij.
>
> Patch 1 exports device_is_dependent() to modules as needed by patch 2.
> Patch 2 checks device dependency before managing the device link.
>
> Note that patch 2 is already in drm-misc/drm-misc-fixes and
> drm-misc/for-linux-next-fixes. Patch 1 needs to be reviewed and picked up.
>
> v2:
> * Introduce patch 1 to export device_is_dependent() to modules as needed by
> patch 2.
>
> Liu Ying (2):
> driver core: Export device_is_dependent() to modules
> drm/bridge: panel: Check device dependency before managing device link

I just applied patch 1 directly to the drm-misc-fixes so we don't have to
revert and then re-apply patches, because that is a bigger evil. (We can't
rebase these branches...)

Yours,
Linus Walleij