]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: Fixes to vmwgfx_fb
authorSinclair Yeh <syeh@vmware.com>
Thu, 23 Mar 2017 21:28:21 +0000 (14:28 -0700)
committerSinclair Yeh <syeh@vmware.com>
Fri, 31 Mar 2017 22:21:11 +0000 (15:21 -0700)
commitc75c1baef1dac3cd35cf8af81a585f488eb0e81d
treef2cd91223a61c03cc9b4a147329ab7c8d8cb50b9
parentc56f6421cb5a79125e1ece5e9fa6b5d6b8152c21
drm/vmwgfx: Fixes to vmwgfx_fb

1.  When unsetting a mode, num_connector should be set to zero
2.  The pixel_format field needs to be initialized as newer DRM internal
    functions checks this field
3.  Take the drm_modeset_lock_all() because vmw_fb_kms_detach() can
    change current mode

Signed-off-by: Sinclair Yeh <syeh@vmware.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_fb.c