Thread (21 messages) 21 messages, 2 authors, 2026-01-31

Re: [PATCH v4 1/4] drm/bridge: imx8qxp-pixel-link: simplify logic to find next bridge

From: Liu Ying <victor.liu@nxp.com>
Date: 2026-01-26 08:07:07
Also in: dri-devel, imx, lkml


On Wed, Jan 07, 2026 at 10:56:26AM +0100, Luca Ceresoli wrote:
imx8qxp_pixel_link_find_next_bridge() uses a sophisticated logic to find
the preferred next bridge, using an array with two supporting index
variables. This is more sophisticated than required because we only ever
need a pointer to the "current" bridge and to the "best so far" bridge.

Additionally this logic is going to make the addition of proper refcounting
quite complex.

Rewrite the logic using two drm_bridge pointers, which is by itself
slightly simpler and is a preparation step for introducing bridge
refcounting in a later commit.

Also reword a comment to make it clearer.

Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
---
 drivers/gpu/drm/bridge/imx/imx8qxp-pixel-link.c | 23 +++++++++++------------
 1 file changed, 11 insertions(+), 12 deletions(-)
Reviewed-by: Liu Ying <victor.liu@nxp.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help