All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] drm: bridge: adv7511: Enable usage with DRM bridge connector helper
@ 2020-04-09  0:46 ` Laurent Pinchart
  0 siblings, 0 replies; 16+ messages in thread
From: Laurent Pinchart @ 2020-04-09  0:46 UTC (permalink / raw)
  To: dri-devel
  Cc: linux-renesas-soc, Andrzej Hajda, Neil Armstrong, Jonas Karlman,
	Jernej Skrabec, Rob Clark, Sean Paul

Hello,

This patch series enables usage of the adv7511 driver with the DRM
bridge connector helper (drm_bridge_connector.c).

Patch 1/4 and 2/4 start by splitting EDID read and connector creation to
separate functions to ease review of 3/4 and 4/4. Patch 3/4 performs the
bulk of the work by implementing the DRM bridge connector-related
operations, and patch 4/4 then makes connector creation optional.

I've had trouble wrapping my head around the HPD handling code in the
av7511 driver (this is why I've CC'ed Rob and Sean who last touched
this). The split of the code between the .detect() operation and the HPD
IRQ seems a bit weird to me, and I haven't dared touching it as it also
appears fragile.

In particular, I'm not sure why we need to retrieve modes in the
.detect() operation. git blame didn't help, as the code has been there
since the beginning. I'd like to remove that completely, but to avoid
breakages, patch 3/4 only does so when the adv7511 is used without
creating a DRM connector.

Usage of both adv7511->status and adv7511->connector.status in the two
operations also seems awkward, and I would like to drop usage of the
latter in the new code path, but I also haven't dared refactoring that
yet. Feedback would be welcome.

Laurent Pinchart (4):
  drm: bridge: adv7511: Split EDID read to a separate function
  drm: bridge: adv7511: Split connector creation to a separate function
  drm: bridge: adv7511: Implement bridge connector operations
  drm: bridge: adv7511: Make connector creation optional

 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c | 137 +++++++++++++------
 1 file changed, 98 insertions(+), 39 deletions(-)

-- 
Regards,

Laurent Pinchart


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

end of thread, other threads:[~2020-04-13  6:03 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-09  0:46 [PATCH 0/4] drm: bridge: adv7511: Enable usage with DRM bridge connector helper Laurent Pinchart
2020-04-09  0:46 ` Laurent Pinchart
2020-04-09  0:46 ` [PATCH 1/4] drm: bridge: adv7511: Split EDID read to a separate function Laurent Pinchart
2020-04-09  0:46   ` Laurent Pinchart
2020-04-13  5:54   ` Sam Ravnborg
2020-04-13  5:54     ` Sam Ravnborg
2020-04-09  0:46 ` [PATCH 2/4] drm: bridge: adv7511: Split connector creation " Laurent Pinchart
2020-04-09  0:46   ` Laurent Pinchart
2020-04-13  5:58   ` Sam Ravnborg
2020-04-13  5:58     ` Sam Ravnborg
2020-04-09  0:46 ` [PATCH 3/4] drm: bridge: adv7511: Implement bridge connector operations Laurent Pinchart
2020-04-09  0:46   ` Laurent Pinchart
2020-04-09  0:46 ` [PATCH 4/4] drm: bridge: adv7511: Make connector creation optional Laurent Pinchart
2020-04-09  0:46   ` Laurent Pinchart
2020-04-13  6:03   ` Sam Ravnborg
2020-04-13  6:03     ` Sam Ravnborg

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.