]> git.baikalelectronics.ru Git - kernel.git/commit
drm/modes: Fix the command line parser to take force options into account
authorMaxime Ripard <maxime.ripard@bootlin.com>
Tue, 27 Aug 2019 11:58:48 +0000 (13:58 +0200)
committerMaxime Ripard <mripard@kernel.org>
Fri, 30 Aug 2019 08:19:15 +0000 (10:19 +0200)
commit662ee03bb9033a22beb4e4a13cd3e19da5fd2226
tree1dd8343e79f614da77ff95359b5f5fd72d6d17ce
parent0414a13aa5bd788b8b89112f96dd0e30449f1623
drm/modes: Fix the command line parser to take force options into account

The command line parser when it has been rewritten introduced a regression
when the only thing on the command line is an option to force the detection
of a connector (such as video=HDMI-A-1:d), which are completely valid.

It's been further broken by the support for the named modes which take
anything that is not a resolution as a named mode.

Let's fix this by running the extra command line option parser on the named
modes if they only take a single character.

Fixes: f48da028cdd0 ("drm/modes: Rewrite the command line parser")
Reported-by: Jernej Škrabec <jernej.skrabec@gmail.com>
Reported-by: Thomas Graichen <thomas.graichen@googlemail.com>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Tested-by: Thomas Graichen <thomas.graichen@gmail.com>
Reviewed-by: Jernej Skrabec <jernej.skrabec@siol.net>
Signed-off-by: Maxime Ripard <mripard@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190827115850.25731-2-mripard@kernel.org
drivers/gpu/drm/drm_modes.c