[PATCH v2 0/3] Add callbacks for late registering

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



version 2:
create functions drm_modeset_register_all and drm_modeset_unregister_all
to regroup all callbacks calls to avoid loops into drm_dev_register 
and drm_dev_unregister.
Call order is now planes, crtcs, encoders and connectors
Fix sti driver to not call drm_connector_register_all and drm_dev_set_unique

version 1:
late_register() and early_unregister() callbacks have been introduced
for connectors, let do the same for encoders, crcts and planes.
Like for the previously introduced functions they are called
right after drm device registration and before unregistration.

Those new callbacks allow to defer actions after drm_dev_register().
For example sti driver use them to initialize debugfs because it
require to have register a drm device to get the root debug file.

Benjamin Gaignard (3):
  drm: Add callbacks for late registering
  drm: sti: use late_register and early_unregister callbacks
  drm: sti: rework init sequence

 drivers/gpu/drm/drm_crtc.c           | 122 +++++++++++++++++++++++++++++++
 drivers/gpu/drm/drm_drv.c            |   4 +-
 drivers/gpu/drm/sti/sti_compositor.c |  20 +++++
 drivers/gpu/drm/sti/sti_compositor.h |   3 +
 drivers/gpu/drm/sti/sti_crtc.c       |  12 +++
 drivers/gpu/drm/sti/sti_cursor.c     |  32 +++++++-
 drivers/gpu/drm/sti/sti_drv.c        | 137 ++++++++++++++++++++++++-----------
 drivers/gpu/drm/sti/sti_drv.h        |   1 +
 drivers/gpu/drm/sti/sti_dvo.c        |  25 +++----
 drivers/gpu/drm/sti/sti_gdp.c        |  32 +++++++-
 drivers/gpu/drm/sti/sti_hda.c        |  26 +++----
 drivers/gpu/drm/sti/sti_hdmi.c       |  40 +++++-----
 drivers/gpu/drm/sti/sti_hqvdp.c      |  32 +++++++-
 drivers/gpu/drm/sti/sti_mixer.c      |   5 +-
 drivers/gpu/drm/sti/sti_mixer.h      |   2 +
 drivers/gpu/drm/sti/sti_plane.c      |  24 +-----
 drivers/gpu/drm/sti/sti_plane.h      |   7 +-
 drivers/gpu/drm/sti/sti_tvout.c      |  36 +++++++--
 drivers/gpu/drm/sti/sti_vid.c        |   5 +-
 drivers/gpu/drm/sti/sti_vid.h        |   2 +
 include/drm/drm_crtc.h               |  79 ++++++++++++++++++++
 21 files changed, 501 insertions(+), 145 deletions(-)

-- 
1.9.1

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




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux