All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] Add mode_valid and atomic_check hooks for sii902x bridge
@ 2024-05-30  9:29 Jayesh Choudhary
  2024-05-30  9:29 ` [PATCH v4 1/2] drm/bridge: sii902x: Fix mode_valid hook Jayesh Choudhary
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Jayesh Choudhary @ 2024-05-30  9:29 UTC (permalink / raw)
  To: linux-kernel, dmitry.baryshkov, andrzej.hajda, neil.armstrong,
	rfoss, Laurent.pinchart, mripard, sam, j-choudhary
  Cc: jonas, jernej.skrabec, maarten.lankhorst, tzimmermann, airlied,
	daniel, a-bhatia1, dri-devel

Move the mode_valid hook to drm_bridge_funcs structure to take care
of the case when the encoder attaches the bridge chain with the
DRM_BRIDGE_ATTACH_NO_CONNECTOR flag in which case, the connector is not
initialized in the bridge's attach call and mode_valid is not called.

Also add this check to the atomic_check call as suggested by Maxime in
v1 patch.

Changelog v3->v4:
- Remove mode_valid hook from connector_helper_funcs as it is not needed.

v3 patch:
<https://lore.kernel.org/all/20240524093509.127189-1-j-choudhary@ti.com/>

Changelog v2->v3:
- Remove newline that was introduced in [1/2] and later deleted in [2/2]
  in v2

v2 patch:
<https://lore.kernel.org/all/20240524073305.107293-1-j-choudhary@ti.com/>

Changelog v1->v2:
- Add KHZ suffix in the macros to be more clear
- Add the hook for drm_bridge_funcs as well
- Add check in atomic_check dunction call (in a separate patch)

v1 patch:
<https://lore.kernel.org/all/20240408081435.216927-1-j-choudhary@ti.com/>

Jayesh Choudhary (2):
  drm/bridge: sii902x: Fix mode_valid hook
  drm/bridge: Add pixel clock check in atomic_check

 drivers/gpu/drm/bridge/sii902x.c | 38 ++++++++++++++++++++++++--------
 1 file changed, 29 insertions(+), 9 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-06-12  5:22 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-30  9:29 [PATCH v4 0/2] Add mode_valid and atomic_check hooks for sii902x bridge Jayesh Choudhary
2024-05-30  9:29 ` [PATCH v4 1/2] drm/bridge: sii902x: Fix mode_valid hook Jayesh Choudhary
2024-05-30 23:30   ` Dmitry Baryshkov
2024-05-31 13:20   ` [v4,1/2] " Sui Jingfeng
2024-05-31 13:33     ` Sam Ravnborg
2024-05-31 14:04       ` Sui Jingfeng
2024-06-12  5:21         ` Jayesh Choudhary
2024-05-30  9:29 ` [PATCH v4 2/2] drm/bridge: Add pixel clock check in atomic_check Jayesh Choudhary
2024-05-30  9:34   ` Maxime Ripard
2024-05-30  9:50     ` Jayesh Choudhary
2024-05-31 12:55 ` [PATCH v4 0/2] Add mode_valid and atomic_check hooks for sii902x bridge Sui Jingfeng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.