From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D8B42CD4F54 for ; Mon, 18 May 2026 19:48:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Px54jnYjdv/rnKEKfukz+3mNA41oW0W4g3IrN7Y/Jqw=; b=szOqM7ISYEraiM OgQa6ciwW+C0h9hNGrjerwpZ51PZazDjIdr6aY8OpAa7DMSw2ALv2YmXkqt/1uCsSVq2JiK9lrnGK DsMhW35uknf+ZeTIOQ4nNwk6wu9wsQvEP4d++wmtvUuTpCm4IH02MtL/6ErU36i0pSxiDDaLd9P/q qbnlA2vBXpHGO+jNZ7EJqAHQ/RXWyVIlLx8pe9GMIbCHleT3XEmMtZueCpK6XiNWAFO6/tmeV8ffH AHSJZ+fMsRGrBCjA9QsYFzdtI9sP8f2W7Sow2km3ASLUc/xxsp09sd9jsd+jVNcuqDrggu35/z9hF OM0eos19T/jPnLjWo//g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wP3wq-0000000GlOc-1sfQ; Mon, 18 May 2026 19:48:20 +0000 Received: from smtp.forwardemail.net ([121.127.44.73]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wP3wn-0000000GlIz-2BfT for linux-amlogic@lists.infradead.org; Mon, 18 May 2026 19:48:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-ID: Date: Subject: Cc: To: From; q=dns/txt; s=fe-e1b5cab7be; t=1779133696; bh=4zO/JslR4dtpUare48IWPEh7zby/iEoySFzUlGPOX5Q=; b=Xm1RRIvlneLKo+MJPLt0y+1SHu9y2lZ38caWkROcsXT+ge3MPxeCmq6IKTxWk0QZhgY09cS3l mJd7Oylttqr3GyLxuYOCmpGrijiPj1lq4mopK1DViSf3Bf9CyU522qAQAaK+GzlzK/8ZbRube9e VFyuPnPffjxCv8Jd0swQB/e+nq3ZESj1Rds2xDfka/8N6SS6rdzY/X8sp3sGhMqsHEmPSHFsS6b frK+btL9otbYgWfnhFP/DM18NB+o8mZiob4yW1yI+bqEnb0aSANpTy0gnS+lkYTmQyae+jR+M0j l/vr/fO43NiXFpGZ2gNXwxaMqp6MNKuVpNMuiiEA7YsA== X-Forward-Email-ID: 6a0b6cfdb74b0ebd362eeeab X-Forward-Email-Sender: rfc822; jonas@kwiboo.se, smtp.forwardemail.net, 121.127.44.73 X-Forward-Email-Version: 2.8.12 X-Forward-Email-Website: https://forwardemail.net X-Complaints-To: abuse@forwardemail.net X-Report-Abuse: abuse@forwardemail.net X-Report-Abuse-To: abuse@forwardemail.net From: Jonas Karlman To: Neil Armstrong , Kevin Hilman , Heiko Stuebner , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Jerome Brunet , Martin Blumenstingl Cc: dri-devel@lists.freedesktop.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Jonas Karlman , linux-rockchip@lists.infradead.org Subject: [PATCH 05/13] drm/meson: encoder_hdmi: Use CEC phys addr from display_info Date: Mon, 18 May 2026 19:47:33 +0000 Message-ID: <20260518194744.2483580-6-jonas@kwiboo.se> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260518194744.2483580-1-jonas@kwiboo.se> References: <20260518194744.2483580-1-jonas@kwiboo.se> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260518_124817_661103_DCB2659A X-CRM114-Status: GOOD ( 11.28 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org The dw-hdmi bridge detect() func now updates EDID for the connector. Something that ensures that display_info.source_physical_address has an updated CEC phys addr when the hpd_notify() func is called. Change to use display_info source_physical_address directly instead of re-reading EDID to set the CEC phys addr at HPD interrupt. Signed-off-by: Jonas Karlman --- drivers/gpu/drm/meson/meson_encoder_hdmi.c | 26 ++++------------------ 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/drivers/gpu/drm/meson/meson_encoder_hdmi.c b/drivers/gpu/drm/meson/meson_encoder_hdmi.c index 55c0601df3c6..1b9a1d9ed3d3 100644 --- a/drivers/gpu/drm/meson/meson_encoder_hdmi.c +++ b/drivers/gpu/drm/meson/meson_encoder_hdmi.c @@ -330,28 +330,10 @@ static void meson_encoder_hdmi_hpd_notify(struct drm_bridge *bridge, if (!encoder_hdmi->cec_notifier) return; - if (status == connector_status_connected) { - const struct drm_edid *drm_edid; - const struct edid *edid; - - drm_edid = drm_bridge_edid_read(encoder_hdmi->bridge.next_bridge, - encoder_hdmi->connector); - if (!drm_edid) - return; - - /* - * FIXME: The CEC physical address should be set using - * cec_notifier_set_phys_addr(encoder_hdmi->cec_notifier, - * connector->display_info.source_physical_address) from a path - * that has read the EDID and called - * drm_edid_connector_update(). - */ - edid = drm_edid_raw(drm_edid); - - cec_notifier_set_phys_addr_from_edid(encoder_hdmi->cec_notifier, edid); - - drm_edid_free(drm_edid); - } else + if (status == connector_status_connected) + cec_notifier_set_phys_addr(encoder_hdmi->cec_notifier, + connector->display_info.source_physical_address); + else cec_notifier_phys_addr_invalidate(encoder_hdmi->cec_notifier); } -- 2.54.0 _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic