[RFC PATCH 02/17] drm/exynos: dsi: Handle drm_device for bridge
Sam Ravnborg
sam at ravnborg.org
Sun Jul 25 17:09:20 UTC 2021
On Sun, Jul 04, 2021 at 02:32:15PM +0530, Jagan Teki wrote:
> Now the exynos dsi driver supports bridge and legacy
> encoder.
>
> In order to support drm_device in both the implementations
> it is required to preserve the drm_device in a private
> structure and use it accordingly.
>
> 1. encoder case, the bind will assign the drm_device into
> encoder->dev, so preserve the drm_device in the bind call.
>
> 2. bridge case, the drm_bridge_attach will assign the
> drm_device into bridge->dev, so preserve the drm_device
> in the bridge_attach function call.
>
> Signed-off-by: Jagan Teki <jagan at amarulasolutions.com>
Acked-by: Sam Ravnborg <sam at ravnborg.org>
More information about the dri-devel
mailing list