Message ID | 20231207142502.401651-1-biju.das.jz@bp.renesas.com (mailing list archive) |
---|---|
Headers | show |
Series | Add RZ/G2L DSI support | expand |
Hi! > This patch series aims to add RZ/G2L DSI support on > RZ/{G2L,GLC,V2L} SMARC EVKs. > > All the patches are cherry-picked from the mainline, except [1] and [2] > > Without [1] DU is giving probe failure as the encoder is not > able to find all the connected bridges due to the framework changes > between mainline and 5.10 kernel. So just restructured the bridge handling. > > IA55 IRQ driver is not backported to 5.10, so defining it in dts is > giving warnings, so drop IRQs in patch[2]. > > Please don't apply patch#18 to patch#25 as it is added for testing > purpose. Ok, so series looks good to me. I did not review the [HACK] patches closely. I can apply if it tests ok and if there are no other comments. Best regards, Pavel
Hi! > This patch series aims to add RZ/G2L DSI support on > RZ/{G2L,GLC,V2L} SMARC EVKs. > > All the patches are cherry-picked from the mainline, except [1] and [2] > > Without [1] DU is giving probe failure as the encoder is not > able to find all the connected bridges due to the framework changes > between mainline and 5.10 kernel. So just restructured the bridge handling. > > IA55 IRQ driver is not backported to 5.10, so defining it in dts is > giving warnings, so drop IRQs in patch[2]. This series fails testing on x86: https://gitlab.com/cip-project/cip-kernel/linux-cip/-/jobs/5706662029 CC drivers/hid/hid-lg4ff.o 3346In file included from drivers/gpu/drm/drm_bridge_connector.c:11: 3347./include/drm/drm_bridge.h:903:34: error: static declaration of 'devm_drm_of_get_bridge' follows non-static declaration 3348 903 | static inline struct drm_bridge *devm_drm_of_get_bridge(struct device *dev, 3349 | ^~~~~~~~~~~~~~~~~~~~~~ 3350./include/drm/drm_bridge.h:894:20: note: previous declaration of 'devm_drm_of_get_bridge' was here 3351 894 | struct drm_bridge *devm_drm_of_get_bridge(struct device *dev, struct device_node *node, 3352 | ^~~~~~~~~~~~~~~~~~~~~~ 3353 CC drivers/hid/hid-lg-g15.o 3354make[3]: *** [scripts/Makefile.build:286: drivers/gpu/drm/drm_bridge_connector.o] Error 1 3355make[3]: *** Waiting for unfinished jobs.... 3356 CC drivers/hid/hid-microsoft.o 3357 Best regards, Pavel
Hi Pavel Machek, Thanks for the feedback. > -----Original Message----- > From: Pavel Machek <pavel@denx.de> > Sent: Friday, December 8, 2023 11:39 AM > Subject: Re: [PATCH 5.10.y-cip 00/25] Add RZ/G2L DSI support > > Hi! > > > This patch series aims to add RZ/G2L DSI support on RZ/{G2L,GLC,V2L} > > SMARC EVKs. > > > > All the patches are cherry-picked from the mainline, except [1] and > > [2] > > > > Without [1] DU is giving probe failure as the encoder is not able to > > find all the connected bridges due to the framework changes between > > mainline and 5.10 kernel. So just restructured the bridge handling. > > > > IA55 IRQ driver is not backported to 5.10, so defining it in dts is > > giving warnings, so drop IRQs in patch[2]. > > This series fails testing on x86: > > https://gitlab.com/cip-project/cip-kernel/linux-cip/-/jobs/5706662029 > > CC drivers/hid/hid-lg4ff.o > 3346In file included from drivers/gpu/drm/drm_bridge_connector.c:11: > 3347./include/drm/drm_bridge.h:903:34: error: static declaration of > 'devm_drm_of_get_bridge' follows non-static declaration > 3348 903 | static inline struct drm_bridge *devm_drm_of_get_bridge(struct > device *dev, > 3349 | ^~~~~~~~~~~~~~~~~~~~~~ > 3350./include/drm/drm_bridge.h:894:20: note: previous declaration of > 'devm_drm_of_get_bridge' was here > 3351 894 | struct drm_bridge *devm_drm_of_get_bridge(struct device *dev, > struct device_node *node, > 3352 | ^~~~~~~~~~~~~~~~~~~~~~ > 3353 CC drivers/hid/hid-lg-g15.o > 3354make[3]: *** [scripts/Makefile.build:286: > drivers/gpu/drm/drm_bridge_connector.o] Error 1 > 3355make[3]: *** Waiting for unfinished jobs.... > 3356 CC drivers/hid/hid-microsoft.o > 3357 I can reproduce the issue here with x86. I am looking on to it. In file included from drivers/gpu/drm/drm_bridge_connector.c:11: ./include/drm/drm_bridge.h:903:34: error: static declaration of 'devm_drm_of_get_bridge' follows non-static declaration 903 | static inline struct drm_bridge *devm_drm_of_get_bridge(struct device *dev, | ^~~~~~~~~~~~~~~~~~~~~~ ./include/drm/drm_bridge.h:894:20: note: previous declaration of 'devm_drm_of_get_bridge' was here 894 | struct drm_bridge *devm_drm_of_get_bridge(struct device *dev, struct device_node *node, | ^~~~~~~~~~~~~~~~~~~~~~ make[3]: *** [scripts/Makefile.build:286: drivers/gpu/drm/drm_bridge_connector.o] Error 1 make[2]: *** [scripts/Makefile.build:503: drivers/gpu/drm] Error 2 make[1]: *** [scripts/Makefile.build:503: drivers/gpu] Error 2 make[1]: *** Waiting for unfinished jobs.... Cheers, Biju
Hi Pavel, > -----Original Message----- > From: cip-dev@lists.cip-project.org <cip-dev@lists.cip-project.org> On > Behalf Of Biju Das via lists.cip-project.org > Subject: Re: [cip-dev] [PATCH 5.10.y-cip 00/25] Add RZ/G2L DSI support > > Hi Pavel Machek, > > Thanks for the feedback. > > > -----Original Message----- > > From: Pavel Machek <pavel@denx.de> > > Sent: Friday, December 8, 2023 11:39 AM > > Subject: Re: [PATCH 5.10.y-cip 00/25] Add RZ/G2L DSI support > > > > Hi! > > > > > This patch series aims to add RZ/G2L DSI support on RZ/{G2L,GLC,V2L} > > > SMARC EVKs. > > > > > > All the patches are cherry-picked from the mainline, except [1] and > > > [2] > > > > > > Without [1] DU is giving probe failure as the encoder is not able to > > > find all the connected bridges due to the framework changes between > > > mainline and 5.10 kernel. So just restructured the bridge handling. > > > > > > IA55 IRQ driver is not backported to 5.10, so defining it in dts is > > > giving warnings, so drop IRQs in patch[2]. > > > > This series fails testing on x86: > > > > https://jpn01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitl > > ab.com%2Fcip-project%2Fcip-kernel%2Flinux-cip%2F-%2Fjobs%2F5706662029& > > data=05%7C02%7Cbiju.das.jz%40bp.renesas.com%7Cab1879377b15488f4c8f08db > > f7e68432%7C53d82571da1947e49cb4625a166a4a2a%7C0%7C0%7C6383763416551582 > > 43%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI > > 6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=9A%2FwCfd9i0XsElIxzSShyU > > J%2FIE0FS5e6yqRz26tOjkM%3D&reserved=0 > > > > CC drivers/hid/hid-lg4ff.o > > 3346In file included from drivers/gpu/drm/drm_bridge_connector.c:11: > > 3347./include/drm/drm_bridge.h:903:34: error: static declaration of > > 'devm_drm_of_get_bridge' follows non-static declaration > > 3348 903 | static inline struct drm_bridge > > *devm_drm_of_get_bridge(struct device *dev, > > 3349 | ^~~~~~~~~~~~~~~~~~~~~~ > > 3350./include/drm/drm_bridge.h:894:20: note: previous declaration of > > 'devm_drm_of_get_bridge' was here > > 3351 894 | struct drm_bridge *devm_drm_of_get_bridge(struct device > > *dev, struct device_node *node, > > 3352 | ^~~~~~~~~~~~~~~~~~~~~~ > > 3353 CC drivers/hid/hid-lg-g15.o > > 3354make[3]: *** [scripts/Makefile.build:286: > > drivers/gpu/drm/drm_bridge_connector.o] Error 1 > > 3355make[3]: *** Waiting for unfinished jobs.... > > 3356 CC drivers/hid/hid-microsoft.o > > 3357 > > I can reproduce the issue here with x86. I am looking on to it. > > > In file included from drivers/gpu/drm/drm_bridge_connector.c:11: > ./include/drm/drm_bridge.h:903:34: error: static declaration of > 'devm_drm_of_get_bridge' follows non-static declaration > 903 | static inline struct drm_bridge *devm_drm_of_get_bridge(struct > device *dev, > | ^~~~~~~~~~~~~~~~~~~~~~ > ./include/drm/drm_bridge.h:894:20: note: previous declaration of > 'devm_drm_of_get_bridge' was here > 894 | struct drm_bridge *devm_drm_of_get_bridge(struct device *dev, > struct device_node *node, > | ^~~~~~~~~~~~~~~~~~~~~~ > make[3]: *** [scripts/Makefile.build:286: > drivers/gpu/drm/drm_bridge_connector.o] Error 1 > make[2]: *** [scripts/Makefile.build:503: drivers/gpu/drm] Error 2 > make[1]: *** [scripts/Makefile.build:503: drivers/gpu] Error 2 > make[1]: *** Waiting for unfinished jobs.... The build issue is related to patch [1] [1] https://patchwork.kernel.org/project/cip-dev/patch/20231207142502.401651-3-biju.das.jz@bp.renesas.com/ I have done some mistake while fixing the conflict. The correct patch is below. I will send v2 soon. diff --git a/include/drm/drm_bridge.h b/include/drm/drm_bridge.h index 3c640e704186..6bfc13b69475 100644 --- a/include/drm/drm_bridge.h +++ b/include/drm/drm_bridge.h @@ -891,9 +891,20 @@ struct drm_bridge *devm_drm_panel_bridge_add(struct device *dev, struct drm_bridge *devm_drm_panel_bridge_add_typed(struct device *dev, struct drm_panel *panel, u32 connector_type); +struct drm_connector *drm_panel_bridge_connector(struct drm_bridge *bridge); +#endif + +#if defined(CONFIG_OF) && defined(CONFIG_DRM_PANEL_BRIDGE) struct drm_bridge *devm_drm_of_get_bridge(struct device *dev, struct device_node *node, u32 port, u32 endpoint); -struct drm_connector *drm_panel_bridge_connector(struct drm_bridge *bridge); +#else +static inline struct drm_bridge *devm_drm_of_get_bridge(struct device *dev, + struct device_node *node, + u32 port, + u32 endpoint) +{ + return ERR_PTR(-ENODEV); +} #endif #endif