[PATCH] drm: support gpu aliases defined in DT data
Maxime Ripard
maxime.ripard at bootlin.com
Thu Jan 17 11:35:12 UTC 2019
On Thu, Jan 17, 2019 at 01:19:18PM +0200, Tomi Valkeinen wrote:
> The DRM device minor numbers are allocated according to the registration
> order. This causes confusion in cases where the registration order can
> change, or when, say, a modesetting capable device is preferred to be
> card0, and a rendering device is preferred to be card1.
>
> This patch adds similar functionality that is used in some other
> subsystems, where device minor numbers can be defined in DT bindings'
> aliases node.
>
> For example, this sets the DRM device minor number to 1 for the 'dss'
> device.
>
> aliases {
> gpu1 = &dss;
> };
>
> The logic on how to pick the minor number is:
>
> - if there's a DT gpu alias for the device, use that
> - else, if there are any gpu aliases, pick a minor number that is higher
> than any of the aliases.
> - else, use the full range of possible numbers
>
> Signed-off-by: Tomi Valkeinen <tomi.valkeinen at ti.com>
I guess we'd need a binding document for this? IIRC, Rob was against
introducing new aliases. Rob?
Maxime
--
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20190117/c964f93d/attachment.sig>
More information about the dri-devel
mailing list