]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/rockchip: dw_hdmi_qp: Provide CEC IRQ in dw_hdmi_qp_plat_data
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Wed, 3 Sep 2025 18:51:02 +0000 (21:51 +0300)
committerHeiko Stuebner <heiko@sntech.de>
Wed, 15 Oct 2025 20:28:06 +0000 (22:28 +0200)
In order to support the CEC interface of the DesignWare HDMI QP IP
block, setup platform data to include the required IRQ number.

Reviewed-by: Daniel Stone <daniels@collabora.com>
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20250903-rk3588-hdmi-cec-v4-4-fa25163c4b08@collabora.com
drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c

index a775d89f20fc20e9103ecbac0dcf3db10ba9984f..9191a74a568fb38c2b2ff7ead1e703b3af9addc9 100644 (file)
@@ -525,6 +525,10 @@ static int dw_hdmi_qp_rockchip_bind(struct device *dev, struct device *master,
        if (plat_data.main_irq < 0)
                return plat_data.main_irq;
 
+       plat_data.cec_irq = platform_get_irq_byname(pdev, "cec");
+       if (plat_data.cec_irq < 0)
+               return plat_data.cec_irq;
+
        irq = platform_get_irq_byname(pdev, "hpd");
        if (irq < 0)
                return irq;