dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] drm/panel: Add device link in drm_panel_attach()
@ 2018-04-24 15:51 Jyri Sarha
  2018-04-24 15:51 ` [PATCH v3 1/2] drm/panel: Remove drm_panel_detach() calls from all panel drives Jyri Sarha
  2018-04-24 15:51 ` [PATCH v3 2/2] drm/panel: Add device_link from panel device to drm device Jyri Sarha
  0 siblings, 2 replies; 4+ messages in thread
From: Jyri Sarha @ 2018-04-24 15:51 UTC (permalink / raw)
  To: dri-devel
  Cc: airlied, linux, Jyri Sarha, tomi.valkeinen, thierry.reding,
	laurent.pinchart, peda

I dropped this work at the end of the previous merge window, since I
had more urgent thing to do. It looks like topic has been raised
again[1], so I'll respin this now.

The second version of these patches can be found here:
https://lists.freedesktop.org/archives/dri-devel/2018-February/167628.html

Changes since v2:
- Rebased both patches on top of the latest drm-next
- "drm/panel: Remove drm_panel_detach() calls from all panel drives"
 - Updated the kernel doc for drm_panel_detach()
- "drm/panel: Add device_link from panel device to drm device"
 - Fixed the logically wrong second paragraph in the commit message
   according to Eric Anholt's suggestion and added his reviewed by

The first patch could be squashed to second, but kept is separate
since I think it is correct even without the second patch.

With these patches unbinding a panel driver in use does not cause
nasty backtraces and corrupted drm core structures, but instead it
cleanly unbinds the drm master device at the same time.

The only down side (currently[1]) is that the drm device does not reprobe
if the panel driver is bound again, but everything should work if the
drm master driver is bound manually.

Best regards,
Jyri

[1] https://lists.freedesktop.org/archives/dri-devel/2018-April/174083.html
[2] https://lists.freedesktop.org/archives/dri-devel/2018-February/166907.html

Jyri Sarha (2):
  drm/panel: Remove drm_panel_detach() calls from all panel drives
  drm/panel: Add device_link from panel device to drm device

 drivers/gpu/drm/drm_panel.c                          | 14 ++++++++++++++
 drivers/gpu/drm/panel/panel-innolux-p079zca.c        |  1 -
 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c       |  1 -
 drivers/gpu/drm/panel/panel-lvds.c                   |  1 -
 drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c |  1 -
 drivers/gpu/drm/panel/panel-seiko-43wvf1g.c          |  1 -
 drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c      |  1 -
 drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c      |  1 -
 drivers/gpu/drm/panel/panel-simple.c                 |  1 -
 drivers/gpu/drm/panel/panel-sitronix-st7789v.c       |  1 -
 include/drm/drm_panel.h                              |  1 +
 11 files changed, 15 insertions(+), 9 deletions(-)

-- 
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

end of thread, other threads:[~2018-05-01 13:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-24 15:51 [PATCH v3 0/2] drm/panel: Add device link in drm_panel_attach() Jyri Sarha
2018-04-24 15:51 ` [PATCH v3 1/2] drm/panel: Remove drm_panel_detach() calls from all panel drives Jyri Sarha
2018-04-24 19:40   ` Daniel Vetter
2018-04-24 15:51 ` [PATCH v3 2/2] drm/panel: Add device_link from panel device to drm device Jyri Sarha

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