lease-manager: Check that DRM device is viable for modesetting 33/28033/1
authorDamian Hobson-Garcia <dhobsong@igel.co.jp>
Wed, 21 Sep 2022 22:35:45 +0000 (18:35 -0400)
committerDamian Hobson-Garcia <dhobsong@igel.co.jp>
Mon, 26 Sep 2022 20:35:22 +0000 (05:35 +0900)
commita8cf122960eb44be1cffb654934d1aef5cf4ad69
tree1b944c51998ddf1989fe9b18938774bbcd990036
parent88cbd73ba10a589734cf126b64e74a6f42a5d5a7
lease-manager: Check that DRM device is viable for modesetting

Don't try to create leases from any DRM device that doesn't have
at least one connector, CRTC, and encoder.  This allows any such
devices to be skipped when looking for a viable device when one
is not provided on the command line.

Bug-AGL: SPEC-4573

Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
Change-Id: Ia8cf27127e4d61c13c6d8dfc633282776da74060
drm-lease-manager/lease-manager.c