summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/selftests/drm_cmdline_selftests.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2019-11-18 18:51:24 +0300
committerHans de Goede <hdegoede@redhat.com>2019-12-16 14:13:17 +0300
commitc2ed3e941901810ad3d55ce1935fa22c5007fee4 (patch)
tree4faa37a30d5e5eae68f6b847854ad2e862e1bdb1 /drivers/gpu/drm/selftests/drm_cmdline_selftests.h
parent83e14ea3a64f00897cc31974d3ae4e27e5a7405b (diff)
downloadlinux-c2ed3e941901810ad3d55ce1935fa22c5007fee4.tar.xz
drm/modes: parse_cmdline: Stop parsing extras after bpp / refresh at ', '
Before this commit it was impossible to add an extra mode argument after a bpp or refresh specifier, combined with an option, e.g. video=HDMI-1:720x480-24e,rotate=180 would not work, either the "e" to force enable would need to be dropped or the ",rotate=180", otherwise the mode_option would not be accepted. This commit fixes this by fixing the length calculation if extras_ptr is set to stop the extra parsing at the start of the options (stop at the ',' options_ptr points to). Acked-by: Maxime Ripard <mripard@kernel.org> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20191118155134.30468-3-hdegoede@redhat.com
Diffstat (limited to 'drivers/gpu/drm/selftests/drm_cmdline_selftests.h')
-rw-r--r--drivers/gpu/drm/selftests/drm_cmdline_selftests.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/selftests/drm_cmdline_selftests.h b/drivers/gpu/drm/selftests/drm_cmdline_selftests.h
index 6d61a0eb5d64..ca1fc7a78953 100644
--- a/drivers/gpu/drm/selftests/drm_cmdline_selftests.h
+++ b/drivers/gpu/drm/selftests/drm_cmdline_selftests.h
@@ -60,3 +60,4 @@ cmdline_test(drm_cmdline_test_vmirror)
cmdline_test(drm_cmdline_test_margin_options)
cmdline_test(drm_cmdline_test_multiple_options)
cmdline_test(drm_cmdline_test_invalid_option)
+cmdline_test(drm_cmdline_test_bpp_extra_and_option)