]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: Correctly set the name of the preferred mode
authorZack Rusin <zackr@vmware.com>
Mon, 8 Feb 2021 19:48:44 +0000 (14:48 -0500)
committerZack Rusin <zackr@vmware.com>
Wed, 10 Feb 2021 19:19:02 +0000 (14:19 -0500)
commitc19c5f674ca126540ec2faac254c87055dd290f9
treea72d46976445b1f182bf45273f5633f80cf095f0
parentb0a8b36b6055cef52d9390298cfcd79a1240e9fe
drm/vmwgfx: Correctly set the name of the preferred mode

Our sysfs "modes" entries were broken because our preffered mode
never had its name set correctly. This resulted in the first
entry simply being called "preferred" followed by a list of
other resolutions. Lets fix it by actually setting the name of
mode (which is its resolution). This allows one to quickly
validate the modes set by the open-vm-tools.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Martin Krastev <krastevm@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210209161700.335611-1-zackr@vmware.com
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c