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

2023-11-27 Thread Linus Walleij
On Mon, Nov 27, 2023 at 2:36 PM Ville Syrjälä wrote: > > + panel_bridge->is_independent = !device_is_dependent(drm_dev->dev, > > + panel->dev); > > This broke the build. Looks like device_is_dependent() is not even exported. > ERROR: mod

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

2023-11-27 Thread Ville Syrjälä
On Thu, Nov 23, 2023 at 11:26:15AM +0800, Liu Ying wrote: > Some panel devices already depend on DRM device, like the panel in > arch/arm/boot/dts/st/ste-ux500-samsung-skomer.dts, because DRM device is > the ancestor of those panel devices. device_link_add() would fail by > returning a NULL pointe

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

2023-11-24 Thread Linus Walleij
On Thu, Nov 23, 2023 at 4:22 AM Liu Ying wrote: > Some panel devices already depend on DRM device, like the panel in > arch/arm/boot/dts/st/ste-ux500-samsung-skomer.dts, because DRM device is > the ancestor of those panel devices. device_link_add() would fail by > returning a NULL pointer for th

[PATCH] drm/bridge: panel: Check device dependency before managing device link

2023-11-22 Thread Liu Ying
Some panel devices already depend on DRM device, like the panel in arch/arm/boot/dts/st/ste-ux500-samsung-skomer.dts, because DRM device is the ancestor of those panel devices. device_link_add() would fail by returning a NULL pointer for those panel devices because of the existing dependency. So,