The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [RFC PATCH v2 0/3] CDNS-MHDP8546 minor cleanups
@ 2025-05-21  7:32 Jayesh Choudhary
  2025-05-21  7:32 ` [RFC PATCH v2 1/3] drm/bridge: cadence: cdns-mhdp8546-core: Remove legacy support for connector initialisation in bridge Jayesh Choudhary
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Jayesh Choudhary @ 2025-05-21  7:32 UTC (permalink / raw)
  To: dianders, andrzej.hajda, neil.armstrong, rfoss, Laurent.pinchart,
	dri-devel, tomi.valkeinen, alexander.stein
  Cc: jonas, jernej.skrabec, maarten.lankhorst, mripard, tzimmermann,
	airlied, simona, lumag, jani.nikula, andy.yan, mordan, linux,
	viro, yamonkar, sjakhade, quentin.schulz, jsarha, linux-kernel,
	devarsht, j-choudhary

Hello All,

These 3 patches does some fixup for the cdns-mhdp8546 bridge.
- First of all, it removes the legacy !DRM_BRIDGE_ATTACH_NO_CONNECTOR
  usecase.
- Then it fixes possible NULL POINTER in cdns_mhdp_modeset_retry_fn
  function call where the connector mutex is called. Since we cannot
  use the atomic_state in these worker threads, we cannot get to
  connector state in the worker thread. So we ensure that connector
  field is propagated before the first possible call for this worker
  thread by using pointer to the drm_connector.
- Then it reduces log level inside cdns_mhdp_transfer to avoid flooding
  of these logs.

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

Changelog v1->v2:
- Remove !DRM_BRIDGE_ATTACH_NO_CONNECTOR entirely
- Add mode_valid in drm_bridge_funcs[0]
- Fix NULL POINTER differently since we cannot access atomic_state
- Reduce log level in cdns_mhdp_transfer call

[0]: https://lore.kernel.org/all/20240530091757.433106-1-j-choudhary@ti.com/

Jayesh Choudhary (3):
  drm/bridge: cadence: cdns-mhdp8546-core: Remove legacy support for
    connector initialisation in bridge
  drm/bridge: cadence: cdns-mhdp8546*: Change drm_connector from pointer
    to structure
  drm/bridge: cadence: cdns-mhdp8546-core: Reduce log level for DPCD
    read/write

 .../drm/bridge/cadence/cdns-mhdp8546-core.c   | 218 ++++--------------
 .../drm/bridge/cadence/cdns-mhdp8546-core.h   |   2 +-
 .../drm/bridge/cadence/cdns-mhdp8546-hdcp.c   |   8 +-
 3 files changed, 46 insertions(+), 182 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2025-05-28 12:56 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-21  7:32 [RFC PATCH v2 0/3] CDNS-MHDP8546 minor cleanups Jayesh Choudhary
2025-05-21  7:32 ` [RFC PATCH v2 1/3] drm/bridge: cadence: cdns-mhdp8546-core: Remove legacy support for connector initialisation in bridge Jayesh Choudhary
2025-05-21  8:15   ` Andy Yan
2025-05-21  8:26     ` Andy Yan
2025-05-27  7:38   ` [RFC " Tomi Valkeinen
2025-05-27  8:41     ` Jayesh Choudhary
2025-05-27  9:17       ` Tomi Valkeinen
2025-05-27 10:49         ` Jayesh Choudhary
2025-05-21  7:32 ` [RFC PATCH v2 2/3] drm/bridge: cadence: cdns-mhdp8546*: Change drm_connector from pointer to structure Jayesh Choudhary
2025-05-27  7:58   ` Tomi Valkeinen
2025-05-27  9:29     ` Jayesh Choudhary
2025-05-27 10:39       ` Jayesh Choudhary
2025-05-27 11:37         ` Tomi Valkeinen
2025-05-28 11:25           ` Jayesh Choudhary
2025-05-28 12:32             ` Tomi Valkeinen
2025-05-21  7:32 ` [RFC PATCH v2 3/3] drm/bridge: cadence: cdns-mhdp8546-core: Reduce log level for DPCD read/write Jayesh Choudhary

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox