Thread (19 messages) 19 messages, 8 authors, 2025-01-18

Re: [PATCH v4 2/5] drm: adp: Add Apple Display Pipe driver

From: Dmitry Baryshkov <hidden>
Date: 2025-01-18 21:35:24
Also in: asahi, dri-devel, linux-devicetree, lkml

On Fri, Jan 17, 2025 at 03:17:32PM +0100, Sasha Finkelstein wrote:
On Fri, 17 Jan 2025 at 11:24, Maxime Ripard [off-list ref] wrote:
quoted
quoted
I was thinking about using drmm_ here, as the DRM device is also created
and destroyed each time. But I might be mistaken here.
Ah, right, it makes sense then, thanks!
Maxime
Not sure i understand. The drm device is created in probe(), and is
destroyed by devm.
devm on which device? The bridge's lifecycle is tied to the mipi-dsi
host lifecycle, while the drm device is managed by the display device.
I do not see a path where it can be created/destroyed without a trip
via probe/remove,
and so tying the lifetime of the bridge in question to devm seems correct?
-- 
With best wishes
Dmitry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help