qxl: read monitors config at boot
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 1 Mar 2017 10:12:33 +0000 (11:12 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 7 Mar 2017 06:09:16 +0000 (07:09 +0100)
commitc50fad8f62d1a6fe0083fa2c700e5e7bfc7dea0c
tree284d4309e251754099b16bd80b261f33d56cc050
parent9062155de0dfdc5cdfd38caf09d7f14b1833a2ca
qxl: read monitors config at boot

Try to read the client monitors config at driver load time, even without
explicit notification.  So in case that info was filled before the driver
loaded and we've missed the notifications because of that the settings
will still be used.

With that place we now have to take care to properly handle a empty client
monitors config, so we don't trip over an uninitialized client monitors
config.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Gabriel Krisman Bertazi <krisman@collabora.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1488363154-6889-4-git-send-email-kraxel@redhat.com
drivers/gpu/drm/qxl/qxl_display.c