OSDN Git Service

drm/arm/komeda: Remove component framework and add a simple encoder
authorFaiz Abbas <faiz.abbas@arm.com>
Wed, 12 Jul 2023 06:49:37 +0000 (12:19 +0530)
committerLiviu Dudau <liviu.dudau@arm.com>
Fri, 21 Jul 2023 14:37:06 +0000 (15:37 +0100)
commit4cfe5cc02e3f62ef4fe96a4e1fbda84e7a6d279e
tree7cb3ec4cfbc00e6ccd4d8fb28027651cea147a1f
parentd281eeaa4de2636ff0c8e6ae387bb07b50e5fcbb
drm/arm/komeda: Remove component framework and add a simple encoder

The Komeda driver always expects the remote connector node to initialize
an encoder. It uses the component aggregator framework which consists
of component->bind() calls used to initialize the remote encoder and attach
it to the crtc. This makes it incompatible with connector drivers which
implement drm_bridge APIs.

Remove all component framework calls from the komeda driver and declare and
attach an encoder inside komeda_crtc_add().

The remote connector driver has to implement the DRM bridge APIs which
can be used to glue the encoder to the remote connector. Since we
usually pair this with a component encoder that also implements a
drm_bridge, dropping support is not expected to affect users of this
driver.

Signed-off-by: Faiz Abbas <faiz.abbas@arm.com>
Message-ID: <20230712064937.25192-1-faiz.abbas@arm.com>
[small white space fixes flagged by checkpatch.pl]
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230712064937.25192-1-faiz.abbas@arm.com
drivers/gpu/drm/arm/display/komeda/komeda_crtc.c
drivers/gpu/drm/arm/display/komeda/komeda_drv.c
drivers/gpu/drm/arm/display/komeda/komeda_kms.c
drivers/gpu/drm/arm/display/komeda/komeda_kms.h