Re: [PATCH/RFC 1/3] drm: Move legacy device list out of drm_driver

2020-02-22 Thread Daniel Vetter
On Sat, Feb 22, 2020 at 05:24:28PM +0200, Laurent Pinchart wrote: > The drm_driver structure contains a single field (legacy_dev_list) that > is modified by the DRM core, used to store a linked list of legacy DRM > devices associated with the driver. In order to make the structure > const, move the

[PATCH/RFC 1/3] drm: Move legacy device list out of drm_driver

2020-02-22 Thread Laurent Pinchart
The drm_driver structure contains a single field (legacy_dev_list) that is modified by the DRM core, used to store a linked list of legacy DRM devices associated with the driver. In order to make the structure const, move the field out to a global variable. This requires locking access to the globa