Message ID | 20231004024013.18956-8-jason-jh.lin@mediatek.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Add connector dynamic selection capability | expand |
Hi, Jason: On Wed, 2023-10-04 at 10:40 +0800, Jason-JH.Lin wrote: > Move DDP_COMPONENT_DP_INTF0 from mt8188_mtk_ddp_main array to a > connector routes array called mt8188_mtk_ddp_main_routes to support > dynamic selection capability for mt8188. I would like to merge this patch with [9/9]. All this series look good to me, so I would merge these two patches by myself. Regards, CK > > Signed-off-by: Jason-JH.Lin <jason-jh.lin@mediatek.com> > Reviewed-by: AngeloGioacchino Del Regno < > angelogioacchino.delregno@collabora.com> > --- > drivers/gpu/drm/mediatek/mtk_drm_drv.c | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c > b/drivers/gpu/drm/mediatek/mtk_drm_drv.c > index 5d2e191b4106..70c9501250a0 100644 > --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c > +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c > @@ -186,7 +186,10 @@ static const unsigned int mt8188_mtk_ddp_main[] > = { > DDP_COMPONENT_GAMMA, > DDP_COMPONENT_POSTMASK0, > DDP_COMPONENT_DITHER0, > - DDP_COMPONENT_DP_INTF0, > +}; > + > +static const struct mtk_drm_route mt8188_mtk_ddp_main_routes[] = { > + {0, DDP_COMPONENT_DP_INTF0}, > }; > > static const unsigned int mt8192_mtk_ddp_main[] = { > @@ -288,6 +291,8 @@ static const struct mtk_mmsys_driver_data > mt8186_mmsys_driver_data = { > static const struct mtk_mmsys_driver_data mt8188_vdosys0_driver_data > = { > .main_path = mt8188_mtk_ddp_main, > .main_len = ARRAY_SIZE(mt8188_mtk_ddp_main), > + .conn_routes = mt8188_mtk_ddp_main_routes, > + .num_conn_routes = ARRAY_SIZE(mt8188_mtk_ddp_main_routes), > .mmsys_dev_num = 1, > }; >
Hi CK, On Fri, 2023-10-06 at 07:50 +0000, CK Hu (胡俊光) wrote: > Hi, Jason: > > On Wed, 2023-10-04 at 10:40 +0800, Jason-JH.Lin wrote: > > Move DDP_COMPONENT_DP_INTF0 from mt8188_mtk_ddp_main array to a > > connector routes array called mt8188_mtk_ddp_main_routes to support > > dynamic selection capability for mt8188. > > I would like to merge this patch with [9/9]. > All this series look good to me, so I would merge these two patches > by > myself. > > Regards, > CK > OK, Thanks for your help! Regards, Jason-JH.Lin
diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c index 5d2e191b4106..70c9501250a0 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c @@ -186,7 +186,10 @@ static const unsigned int mt8188_mtk_ddp_main[] = { DDP_COMPONENT_GAMMA, DDP_COMPONENT_POSTMASK0, DDP_COMPONENT_DITHER0, - DDP_COMPONENT_DP_INTF0, +}; + +static const struct mtk_drm_route mt8188_mtk_ddp_main_routes[] = { + {0, DDP_COMPONENT_DP_INTF0}, }; static const unsigned int mt8192_mtk_ddp_main[] = { @@ -288,6 +291,8 @@ static const struct mtk_mmsys_driver_data mt8186_mmsys_driver_data = { static const struct mtk_mmsys_driver_data mt8188_vdosys0_driver_data = { .main_path = mt8188_mtk_ddp_main, .main_len = ARRAY_SIZE(mt8188_mtk_ddp_main), + .conn_routes = mt8188_mtk_ddp_main_routes, + .num_conn_routes = ARRAY_SIZE(mt8188_mtk_ddp_main_routes), .mmsys_dev_num = 1, };