Re: [PATCH v2 5/9] drm: rcar-du: Use DRM-managed allocation for encoders

2020-12-21 Thread Kieran Bingham
Hi Laurent, On 14/12/2020 20:52, Laurent Pinchart wrote: > devm_kzalloc() is the wrong API to allocate encoders, as the lifetime of > the encoders is tied to the DRM device, not the device to driver > binding. drmm_kzalloc() isn't a good option either, as it would result > in the encoder being fre

Re: [PATCH v2 5/9] drm: rcar-du: Use DRM-managed allocation for encoders

2020-12-15 Thread Jacopo Mondi
Hi Laurent, On Mon, Dec 14, 2020 at 10:52:04PM +0200, Laurent Pinchart wrote: > devm_kzalloc() is the wrong API to allocate encoders, as the lifetime of > the encoders is tied to the DRM device, not the device to driver > binding. drmm_kzalloc() isn't a good option either, as it would result > in

[PATCH v2 5/9] drm: rcar-du: Use DRM-managed allocation for encoders

2020-12-14 Thread Laurent Pinchart
devm_kzalloc() is the wrong API to allocate encoders, as the lifetime of the encoders is tied to the DRM device, not the device to driver binding. drmm_kzalloc() isn't a good option either, as it would result in the encoder being freed before being unregistered during the managed cleanup of the DRM