All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/4] drm/dp: Make DP AUX bus usage easier; use it on ps8640
@ 2022-05-10 19:29 ` Douglas Anderson
  0 siblings, 0 replies; 50+ messages in thread
From: Douglas Anderson @ 2022-05-10 19:29 UTC (permalink / raw)
  To: dri-devel
  Cc: Hsin-Yi Wang, Abhinav Kumar, Philip Chen, Sankeerth Billakanti,
	Robert Foss, freedreno, Dmitry Baryshkov, linux-arm-msm,
	Stephen Boyd, Douglas Anderson, Alex Deucher, Andrzej Hajda,
	Daniel Vetter, David Airlie, Javier Martinez Canillas,
	Jernej Skrabec, Jonas Karlman, Laurent Pinchart, Linus Walleij,
	Lyude Paul, Maarten Lankhorst, Maxime Ripard, Neil Armstrong,
	Thomas Zimmermann, linux-kernel

This patch is v3 of the first 2 patches from my RFC series ("drm/dp: Improvements
for DP AUX channel") [1]. I've broken the series in two so we can make
progress on the two halves separately.

v2 of this series tries to incorporate all the feedback from v1. Hopefully
things are less confusing and simpler this time around. The one thing that got
slightly more confusing is that the done_probing() callback can't return
-EPROBE_DEFER in most cases so we have to adjust drivers a little more.

v3 takes Dmitry's advice on v2. This now introduces
devm_drm_bridge_add() (in an extra patch), splits some fixups into
their own patch, uses a new name for functions, and requires an
explicit call to done_probing if you have no children.

The idea for this series came up during the review process of
Sankeerth's series trying to add eDP for Qualcomm SoCs [2].

This _doesn't_ attempt to fix the Analogix driver. If this works out,
ideally someone can post a patch up to do that.

NOTE: I don't have any ps8640 devices that _don't_ use the aux panel
underneath them, so I'm relying on code inspection to make sure I
didn't break those. If someone sees that I did something wrong for
that case then please yell!

[1] https://lore.kernel.org/r/20220409023628.2104952-1-dianders@chromium.org/
[2] https://lore.kernel.org/r/1648656179-10347-2-git-send-email-quic_sbillaka@quicinc.com/

Changes in v3:
- Adapt to v3 changes in aux bus.
- Don't call done_probing() if there are no children; return -ENODEV.
- Patch ("drm/bridge: Add devm_drm_bridge_add()") new for v3.
- Patch ("drm/dp: Export symbol / kerneldoc fixes...") split for v3.
- Split out EXPORT_SYMBOL and kerneldoc fixes to its own patch.
- Use devm_drm_bridge_add() to simplify.
- Used Dmitry's proposed name: of_dp_aux_populate_bus()

Changes in v2:
- Change to assume exactly one device.
- Have a probe callback instead of an extra sub device.
- Rewrote atop new method introduced by patch #1.

Douglas Anderson (4):
  drm/dp: Export symbol / kerneldoc fixes for DP AUX bus
  drm/dp: Add callbacks to make using DP AUX bus properly easier
  drm/bridge: Add devm_drm_bridge_add()
  drm/bridge: parade-ps8640: Handle DP AUX more properly

 drivers/gpu/drm/bridge/parade-ps8640.c   |  74 +++++---
 drivers/gpu/drm/display/drm_dp_aux_bus.c | 211 +++++++++++++++--------
 drivers/gpu/drm/drm_bridge.c             |  23 +++
 include/drm/display/drm_dp_aux_bus.h     |  34 +++-
 include/drm/drm_bridge.h                 |   1 +
 5 files changed, 238 insertions(+), 105 deletions(-)

-- 
2.36.0.550.gb090851708-goog


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

end of thread, other threads:[~2022-06-09 13:30 UTC | newest]

Thread overview: 50+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-10 19:29 [PATCH v3 0/4] drm/dp: Make DP AUX bus usage easier; use it on ps8640 Douglas Anderson
2022-05-10 19:29 ` Douglas Anderson
2022-05-10 19:29 ` [PATCH v3 1/4] drm/dp: Export symbol / kerneldoc fixes for DP AUX bus Douglas Anderson
2022-05-10 19:29   ` Douglas Anderson
2022-05-11  0:20   ` Dmitry Baryshkov
2022-05-11  0:20     ` Dmitry Baryshkov
2022-05-20 20:27   ` Doug Anderson
2022-05-20 20:27     ` Doug Anderson
2022-06-01 20:29   ` Dmitry Baryshkov
2022-06-01 20:29     ` Dmitry Baryshkov
2022-05-10 19:29 ` [PATCH v3 2/4] drm/dp: Add callbacks to make using DP AUX bus properly easier Douglas Anderson
2022-05-10 19:29   ` Douglas Anderson
2022-06-01 20:35   ` Dmitry Baryshkov
2022-06-01 20:35     ` Dmitry Baryshkov
2022-05-10 19:29 ` [PATCH v3 3/4] drm/bridge: Add devm_drm_bridge_add() Douglas Anderson
2022-05-10 19:29   ` Douglas Anderson
2022-05-11  0:22   ` Dmitry Baryshkov
2022-05-11  0:22     ` Dmitry Baryshkov
2022-05-20 20:28     ` Doug Anderson
2022-05-20 20:28       ` Doug Anderson
2022-05-21  9:17   ` Maxime Ripard
2022-05-21  9:17     ` Maxime Ripard
2022-05-23 17:00     ` Doug Anderson
2022-05-23 17:00       ` Doug Anderson
2022-05-31 21:06       ` Doug Anderson
2022-05-31 21:06         ` Doug Anderson
2022-06-03  8:21         ` Maxime Ripard
2022-06-03  8:21           ` Maxime Ripard
2022-06-03 10:19           ` Dmitry Baryshkov
2022-06-03 10:19             ` Dmitry Baryshkov
2022-06-03 13:52             ` Doug Anderson
2022-06-03 13:52               ` Doug Anderson
2022-06-03 14:16               ` Maxime Ripard
2022-06-03 14:16                 ` Maxime Ripard
2022-06-03 14:14             ` Maxime Ripard
2022-06-03 14:14               ` Maxime Ripard
2022-06-03 14:56               ` Doug Anderson
2022-06-03 14:56                 ` Doug Anderson
2022-06-09 13:30                 ` Maxime Ripard
2022-06-09 13:30                   ` Maxime Ripard
2022-06-08 15:50     ` Daniel Vetter
2022-06-08 15:50       ` Daniel Vetter
2022-05-10 19:29 ` [PATCH v3 4/4] drm/bridge: parade-ps8640: Handle DP AUX more properly Douglas Anderson
2022-05-10 19:29   ` Douglas Anderson
2022-06-01 20:46   ` Dmitry Baryshkov
2022-06-01 20:46     ` Dmitry Baryshkov
2022-05-31 21:03 ` [PATCH v3 0/4] drm/dp: Make DP AUX bus usage easier; use it on ps8640 Doug Anderson
2022-05-31 21:03   ` Doug Anderson
2022-06-02 22:18 ` Doug Anderson
2022-06-02 22:18   ` Doug Anderson

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.