# Re: \[PATCH v2 5/5\] drm/modes: parse\_cmdline: Add support for named modes containing dashes

- From: Maxime Ripard \<hidden\>
- Date: 2022-07-14 12:06:24 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2022/07/1859494
- Thread: https://ratatoskr.run/dri-devel/2022/07/1859352/t.md

```text
On Thu, Jul 14, 2022 at 11:04:10AM +0200, Geert Uytterhoeven wrote:
> It is fairly common for named video modes to contain dashes (e.g.
> "tt-mid" on Atari, "dblntsc-ff" on Amiga).  Currently such mode names
> are not recognized, as the dash is considered to be a separator between
> mode name and bpp.
> 
> Fix this by skipping any dashes that are not followed immediately by a
> digit when looking for the separator.
> 
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
> Reviewed-by: Hans de Goede <redacted>

Ditto, we should have a test for that

Maxime
```

## Attachments

- [signature.asc](https://ratatoskr.run/linux-fbdev/2022/07/1859494/attachment/0) (application/pgp-signature, 228 bytes)
