Hi, Maintainers.
I send this email for fix a kernel warning
`
if (!bridge->container)
DRM_WARN("DRM bridge corrupted or not allocated by
devm_drm_bridge_alloc()\n");
`
I see this warning since 6.18.X, but until 7.1.X, this still unfixed..
I don't have a env to follow kernel patching process, thus write a email, and
leave it as is.
anyone who has interesting to follow up, welcome, you don't have to keep my
name in your patch.
here is the patch:
`
diff --git a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c
b/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c
index c72504033e4b..89c1c13cbabc 100644
--- a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c
+++ b/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c
@@ -749,7 +749,7 @@ static int dw_hdmi_rockchip_bind(struct device *dev, struct
device *master,
if (!pdev->dev.of_node)
return -ENODEV;
- hdmi = devm_kzalloc(&pdev->dev, sizeof(*hdmi), GFP_KERNEL);
+ hdmi = devm_drm_bridge_alloc(&pdev->dev, struct rockchip_hdmi, bridge,
&dw_hdmi_rockchip_bridge_funcs);
if (!hdmi)
return -ENOMEM;
@@ -811,7 +811,6 @@ static int dw_hdmi_rockchip_bind(struct device *dev, struct
device *master,
goto err_disable_clk;
}
- hdmi->bridge.funcs = &dw_hdmi_rockchip_bridge_funcs;
drm_bridge_attach(encoder, &hdmi->bridge, NULL, 0);
platform_set_drvdata(pdev, hdmi);
--
2.55.0
`