Luca Ceresoli
0a7f39ba3f
drm/omap: dss: convert to of_drm_find_and_get_bridge()
...
of_drm_find_bridge() is deprecated. Move to its replacement
of_drm_find_and_get_bridge() which gets a bridge reference, and ensure it
is put when done.
omapdss_device_init_output() can take one bridge pointer in out->bridge or
two pointers in out->bridge and out->next_bridge. Ensure each has a
corresponding drm_bridge_get() and add drm_bridge_put() calls in the
cleanup code.
Also slightly change the initial code assigning out->panel and out->bridge
to ensure and clarify that either out->panel or out->bridge is set in the
function prologue, not both. If both were set, the 'if (out->panel){...}'
code that follows would overwrite out->bridge without having put the
reference.
Finally, take a reference in case a panel_bridge is added using
drm_panel_bridge_add(). This ensures we always need to put a reference,
which came either from of_drm_find_and_get_bridge() or by the
drm_panel_bridge_add+drm_bridge_get() branch.
Reviewed-by: Louis Chauvet <louis.chauvet@bootlin.com >
Reviewed-by: Linus Walleij <linusw@kernel.org >
Link: https://patch.msgid.link/20260402-drm-bridge-alloc-getput-drm_of_find_bridge-4-v4-4-421781c8c061@bootlin.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com >
2026-04-09 14:38:08 +02:00
..
2025-10-31 10:34:52 +02:00
2026-04-08 10:09:43 +02:00
2026-03-24 16:08:54 +00:00
2026-02-21 17:09:51 -08:00
2026-04-08 11:04:49 +02:00
2026-02-25 09:20:45 +05:30
2026-04-09 14:10:46 +02:00
2026-04-03 18:57:00 +10:00
2026-02-21 17:09:51 -08:00
2026-03-24 13:54:35 +01:00
2026-02-21 20:03:00 -08:00
2026-04-09 14:10:46 +02:00
2026-02-21 17:09:51 -08:00
2026-03-03 09:28:56 +01:00
2026-03-26 09:41:26 +10:00
2026-01-20 10:53:14 +02:00
2026-02-14 11:09:38 +01:00
2026-04-07 12:36:31 +02:00
2026-04-08 11:17:14 +01:00
2026-04-09 14:10:21 +02:00
2026-03-20 10:03:11 +01:00
2026-04-09 14:38:08 +02:00
2026-02-21 17:09:51 -08:00
2026-02-10 15:18:36 +01:00
2026-03-11 09:40:07 +01:00
2026-02-23 10:10:34 +01:00
2026-03-31 07:51:02 +10:00
2026-04-03 18:57:00 +10:00
2026-02-21 20:03:00 -08:00
2026-04-03 18:57:00 +10:00
2026-03-10 09:42:09 +08:00
2026-03-11 11:18:31 +01:00
2026-03-26 02:08:04 +01:00
2026-04-09 14:38:08 +02:00
2026-03-27 08:37:11 -07:00
2026-03-27 02:06:42 +00:00
2026-04-08 15:08:12 +01:00
2026-01-28 12:44:28 +10:00
2026-02-23 16:14:19 +01:00
2026-03-17 18:04:15 -04:00
2026-03-26 15:16:25 +02:00
2026-04-09 14:10:39 +02:00
2026-03-11 11:18:31 +01:00
2026-03-27 12:45:54 +10:00
2026-02-26 13:42:09 +01:00
2026-02-21 17:09:51 -08:00
2025-10-31 10:34:52 +02:00
2026-03-24 13:54:35 +01:00
2026-04-07 12:36:31 +02:00
2026-03-20 10:03:11 +01:00
2026-03-24 13:54:35 +01:00
2026-03-27 12:26:45 +02:00
2026-04-01 08:09:37 +02:00
2026-03-25 15:05:02 +01:00
2026-04-08 06:52:48 +10:00
2025-10-31 10:34:52 +02:00
2026-03-26 02:08:04 +01:00
2026-02-21 17:09:51 -08:00
2026-04-04 07:41:08 -03:00
2026-02-21 17:09:51 -08:00
2026-04-02 10:21:12 -03:00
2026-03-25 15:21:23 +01:00
2026-02-21 17:09:51 -08:00
2026-02-23 11:48:20 +01:00
2026-03-18 09:59:57 +00:00
2026-03-31 07:51:02 +10:00
2026-04-07 12:36:31 +02:00
2026-02-22 08:26:33 -08:00
2026-02-21 17:09:51 -08:00
2026-02-23 11:48:20 +01:00
2026-03-18 09:59:57 +00:00
2026-03-18 09:59:57 +00:00
2026-03-20 10:03:11 +01:00
2026-02-21 17:09:51 -08:00
2026-03-18 09:59:57 +00:00
2026-04-07 12:36:31 +02:00
2026-02-22 08:26:33 -08:00
2025-11-25 08:43:46 +01:00
2026-02-25 09:31:54 +02:00
2025-11-25 08:43:47 +01:00
2026-03-03 09:28:31 +01:00
2025-11-26 23:03:35 +01:00
2026-03-16 08:33:05 +05:30
2026-03-24 13:54:35 +01:00
2026-02-22 08:26:33 -08:00
2025-11-26 23:03:32 +01:00
2026-03-25 15:05:22 +01:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-01-19 13:11:47 +02:00
2025-11-04 14:49:30 +02:00
2025-11-04 14:49:30 +02:00
2025-12-19 23:06:41 +01:00
2025-12-19 23:06:41 +01:00
2026-03-27 12:45:54 +10:00
2025-10-31 10:34:52 +02:00
2026-03-31 09:45:06 -05:00
2026-03-16 16:50:53 +10:00
2025-11-25 11:02:43 +01:00
2025-11-25 11:02:43 +01:00
2025-11-25 11:02:43 +01:00
2026-03-26 14:09:26 +01:00
2026-02-21 01:02:28 -08:00
2026-02-21 17:09:51 -08:00
2026-03-25 15:05:22 +01:00
2026-03-26 14:35:18 +08:00
2026-02-21 17:09:51 -08:00
2026-03-31 07:51:02 +10:00
2025-10-31 10:34:52 +02:00
2026-02-21 17:09:51 -08:00
2026-04-03 13:23:27 +02:00
2026-03-13 18:12:07 -07:00
2026-02-21 17:09:51 -08:00
2025-11-25 08:43:47 +01:00
2026-04-02 08:24:55 +02:00
2025-11-26 23:03:32 +01:00
2026-02-21 20:03:00 -08:00
2026-03-25 15:05:17 +01:00
2026-02-21 17:09:51 -08:00
2025-10-31 10:34:52 +02:00
2026-04-07 12:36:31 +02:00
2026-01-14 02:18:31 +02:00
2026-02-21 17:09:51 -08:00
2026-03-25 15:05:22 +01:00
2026-02-21 01:02:28 -08:00
2026-03-17 15:39:07 +01:00
2026-03-13 18:12:59 -07:00
2026-01-09 08:53:27 +00:00
2026-02-21 20:03:00 -08:00
2026-02-21 20:03:00 -08:00
2026-03-23 13:23:29 +08:00
2026-02-21 17:09:51 -08:00
2026-02-09 09:41:09 +01:00
2026-02-21 17:09:51 -08:00
2026-03-05 19:38:55 -05:00
2026-03-05 19:38:55 -05:00
2026-03-05 19:38:55 -05:00
2026-03-05 19:38:55 -05:00
2026-02-23 11:48:20 +01:00
2026-03-25 15:05:22 +01:00
2026-03-03 10:37:29 +10:00
2026-03-25 08:05:35 +00:00
2026-02-21 17:09:51 -08:00
2025-11-10 13:22:58 +02:00
2026-03-27 13:40:44 +02:00
2026-02-21 17:09:51 -08:00
2026-02-23 16:14:19 +01:00
2026-04-01 07:32:05 +10:00
2026-03-24 16:19:04 +01:00
2026-03-12 07:23:23 -07:00