drm/vmwgfx: Cleanup multimon initialization code
authorZack Rusin <zackr@vmware.com>
Wed, 2 Mar 2022 15:24:20 +0000 (10:24 -0500)
committerZack Rusin <zackr@vmware.com>
Fri, 11 Mar 2022 18:29:32 +0000 (13:29 -0500)
commitbb30d8d8c1b0002712f112c519c9caf4fdf8c9d1
tree5aae2eda0a17f653496acfdc5d766d8d69da2794
parent485d98d472d53f9617ffdfba5e677ac29ad4fe20
drm/vmwgfx: Cleanup multimon initialization code

The results of the legacy display unit initialization were being silently
ignored. Unifying the selection of number of display units based
on whether the underlying device supports multimon makes it easier
to add error checking to all paths.

This makes the driver report the errors in ldu initialization paths
and try to recover from them.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Martin Krastev <krastevm@vmware.com>
Reviewed-by: Maaz Mombasawala <mombasawalam@vmware.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220302152426.885214-3-zack@kde.org
drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c