Re: [PATCH v2 4/9] drm: rcar-du: Use DRM-managed allocation for VSP planes

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

[PATCH v2 4/9] drm: rcar-du: Use DRM-managed allocation for VSP planes

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