Skip to content

RFC drm/dp: Improvements for DP AUX channel

Douglas Anderson dri-devel lkml llvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 19 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6drm/dp: Helpers to make it easier for drivers to use DP AUX bus properlydrivers/gpu/drm/dp/drm_dp_aux_bus.c include/drm/dp/drm_dp_aux_bus.h+222 -112 replies
2/6drm/bridge: parade-ps8640: Break probe in two to handle DP AUX betterdrivers/gpu/drm/bridge/parade-ps8640.c+39 -270 replies
3/6drm/dp: Add is_hpd_asserted() callback to struct drm_dp_auxinclude/drm/dp/drm_dp_helper.h+14 -01 reply
4/6drm/panel-edp: Take advantage of is_hpd_asserted() in struct drm_dp_auxdrivers/gpu/drm/panel/panel-edp.c+31 -66 replies
5/6drm/panel: atna33xc20: Take advantage of is_hpd_asserted() in struct drm_dp_auxdrivers/gpu/drm/panel/panel-samsung-atna33xc20.c+29 -60 replies
6/6drm/bridge: parade-ps8640: Provide is_hpd_asserted() in struct drm_dp_auxdrivers/gpu/drm/bridge/parade-ps8640.c+18 -30 replies

Reviews trailers per patch

2 of 6 patches have a Reviewed-by or Acked-by.

PatchDmitry Baryshkov
1/6
2/6
3/6R-b
4/6R-b
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC PATCH 0/6] drm/dp: Improvements for DP AUX channel

This patch addresses pre-existing issues that came up during the review process of Sankeerth's series trying to add eDP for Qualcomm SoCs [1].

It's really sorta two series but jammed into one. The first two patches fix a problem with ps8640 when the panel doesn't finish probing right away. The rest of the patches attempt to improve how eDP panel drivers deal with the HPD signal. NOTE: if everyone hates the "generic driver" that I added in the first patch, I have a different version that just adds uses the Linux auxiliary bus stright in ps8640. I'm happy to switch back to that, but it seemed like a buncha copy-pasta that I was hoping to avoid.

I haven't done a crazy amount of testing with this, but it seems to work and I wanted to get something out there. I'll try to do some more testing next week. This is why I added the tag "RFC". It's entirely possibled that I've actually caught all the bugs and this is great, but I just wanted to be sure.

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

[1] https://lore.kernel.org/r/[email protected]/

Douglas Anderson (6):
drm/dp: Helpers to make it easier for drivers to use DP AUX bus
properly
drm/bridge: parade-ps8640: Break probe in two to handle DP AUX better drm/dp: Add is_hpd_asserted() callback to struct drm_dp_aux drm/panel-edp: Take advantage of is_hpd_asserted() in struct
drm_dp_aux
drm/panel: atna33xc20: Take advantage of is_hpd_asserted() in struct
drm_dp_aux
drm/bridge: parade-ps8640: Provide is_hpd_asserted() in struct
drm_dp_aux

 drivers/gpu/drm/bridge/parade-ps8640.c        |  87 +++++----
 drivers/gpu/drm/dp/drm_dp_aux_bus.c           | 165 +++++++++++++++++-
 drivers/gpu/drm/panel/panel-edp.c             |  37 +++-
 .../gpu/drm/panel/panel-samsung-atna33xc20.c  |  35 +++-
 include/drm/dp/drm_dp_aux_bus.h               |  58 ++++++
 include/drm/dp/drm_dp_helper.h                |  14 ++
 6 files changed, 353 insertions(+), 43 deletions(-)
Signature · 1 line
2.35.1.1178.g4f1659d476-goog