@@ -208,11 +208,12 @@ int malidp_mw_connector_init(struct drm_device *drm)
struct malidp_drm *malidp = drm->dev_private;
u32 *formats;
int ret, n_formats;
+ uint32_t possible_crtcs;
if (!malidp->dev->hw->enable_memwrite)
return 0;
- malidp->mw_connector.encoder.possible_crtcs = 1 << drm_crtc_index(&malidp->crtc);
+ possible_crtcs = 1 << drm_crtc_index(&malidp->crtc);
drm_connector_helper_add(&malidp->mw_connector.base,
&malidp_mw_connector_helper_funcs);
@@ -223,7 +224,7 @@ int malidp_mw_connector_init(struct drm_device *drm)
ret = drm_writeback_connector_init(drm, &malidp->mw_connector,
&malidp_mw_connector_funcs,
&malidp_mw_encoder_helper_funcs,
- formats, n_formats);
+ formats, n_formats, possible_crtcs);
kfree(formats);
if (ret)
return ret;
As part of this series, drm_writeback_connector_init() allows passing possible_crtcs as a parameter so that the API can internally create and setup the encoder. Pass possible_crtcs parameter for drm_writeback_connector_init() for malidp writeback driver. changes in v2: - pass possible_crtcs parameter for drm_writeback_connector_init() Co-developed-by: Kandpal Suraj <suraj.kandpal@intel.com> Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com> --- drivers/gpu/drm/arm/malidp_mw.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)