drm/sun4i: dw-hdmi: Fix initialization & refactor
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest7 patches 11 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | drm/sun4i: dw-hdmi: Deinit PHY in fail pathdrivers/ | +1 | 1 reply | |
| 2/7 | drm/sun4i: dw-hdmi: Remove double encoder cleanupdrivers/ | +7 | 1 reply | |
| 3/7 | drm/sun4i: dw-hdmi: Switch to bridge functionsdrivers/ drivers/ | +117 | 3 replies | |
| 4/7 | drm/sun4i: Don't show error for deferred probes.drivers/ | +2 | 1 reply | |
| 5/7 | drm/sun4i: dw-hdmi: Split driver registrationdrivers/ drivers/ drivers/ | +3 | 4 replies | |
| 6/7 | drm/sun4i: dw-hdmi: Make sun8i_hdmi_phy_get() more intuitivedrivers/ drivers/ drivers/ | +8 | 0 replies | |
| 7/7 | drm/sun4i: dw-hdmi: check for phy device firstdrivers/ | +17 | 1 reply |
Reviews trailers per patch
4 of 7 patches have a Reviewed-by or Acked-by.
| Patch | Maxime Ripard |
|---|---|
| 1/7 | A-b |
| 2/7 | A-b |
| 3/7 | |
| 4/7 | A-b |
| 5/7 | |
| 6/7 | |
| 7/7 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/7] drm/sun4i: dw-hdmi: Fix initialization & refactor
Main goal of this series is to fix race condition between probing display connector driver and sun8i dw-hdmi platform driver. Sometimes, boards have ddc-en gpio specified in DT file. This is handled by display connector driver since commit 920169041baa ("drm/sun4i: dw-hdmi: Fix ddc-en GPIO consumer conflict"). However, because there is no link between it and sun8i dw-hdmi driver, probe order isn't determined. If display connector driver if probed afterwards, then sun8i dw-hdmi driver won't be able to read EDID and thus fall back to 1024x768. This can be easily solved by using bridges and linking them together. Coincidentally, switching to bridge model is also long term goal.
I found out some other issues when working on them (missing phy deinit and memory corruption during executing fail path). Since there is now a bigger chance of deferring probe, it's also good to skip reporting deferred probe as error. This often confuses users when examining dmesg output, especially if there is no error code reported.
I also throw 2 refactoring patches for a good measure.
Please take a look.
Best regards,
Jernej
Jernej Skrabec (7):
drm/sun4i: dw-hdmi: Deinit PHY in fail path drm/sun4i: dw-hdmi: Remove double encoder cleanup drm/sun4i: dw-hdmi: Switch to bridge functions drm/sun4i: Don't show error for deferred probes. drm/sun4i: dw-hdmi: Split driver registration drm/sun4i: dw-hdmi: Make sun8i_hdmi_phy_get() more intuitive drm/sun4i: dw-hdmi: check for phy device first
drivers/gpu/drm/sun4i/sun4i_drv.c | 3 +- drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c | 191 ++++++++++++++++++------- drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h | 9 +- drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c | 13 +- 4 files changed, 151 insertions(+), 65 deletions(-)
Signature · 1 line
2.42.0