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
Showing
- drivers/gpu/drm/arm/display/komeda/komeda_crtc.c 21 additions, 1 deletiondrivers/gpu/drm/arm/display/komeda/komeda_crtc.c
- drivers/gpu/drm/arm/display/komeda/komeda_drv.c 4 additions, 51 deletionsdrivers/gpu/drm/arm/display/komeda/komeda_drv.c
- drivers/gpu/drm/arm/display/komeda/komeda_kms.c 1 addition, 10 deletionsdrivers/gpu/drm/arm/display/komeda/komeda_kms.c
- drivers/gpu/drm/arm/display/komeda/komeda_kms.h 3 additions, 0 deletionsdrivers/gpu/drm/arm/display/komeda/komeda_kms.h
Please register or sign in to comment