# Re: \[PATCH v2 4/5\] drm/modes: Add support for driver-specific named modes

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

```text
On Thu, Jul 14, 2022 at 11:04:09AM +0200, Geert Uytterhoeven wrote:
> The mode parsing code recognizes named modes only if they are explicitly
> listed in the internal whitelist, which is currently limited to "NTSC"
> and "PAL".
> 
> Provide a mechanism for drivers to override this list to support custom
> mode names.
> 
> Ideally, this list should just come from the driver's actual list of
> modes, but connector->probed_modes is not yet populated at the time of
> parsing.
> 
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
> Reviewed-by: Hans de Goede <redacted>

Like we discussed on IRC, I'm not sure allowing drivers to handle named
modes is the right thing to do.

Named modes in general were a workaround the fact that we were missing
infos in drm_display_mode to describe all the modes.

I think we really should focus on addressing that first, and then
creating some kind of backward compat layer to create an initial DRM
state from a named mode provided on the command line.

Maxime
```

## Attachments

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