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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 D03B2FC5915 for ; Thu, 26 Feb 2026 12:06:38 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3B9F810E8EB; Thu, 26 Feb 2026 12:06:38 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="bTppoO6T"; dkim-atps=neutral Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) by gabe.freedesktop.org (Postfix) with ESMTPS id C5A8D10E8EB for ; Thu, 26 Feb 2026 12:06:36 +0000 (UTC) Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-48371bb515eso10648905e9.1 for ; Thu, 26 Feb 2026 04:06:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1772107595; x=1772712395; darn=lists.freedesktop.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=aL6uPMzsVEWXG5ks1J1+KYkn14nsDELRxOy3Sa9zWSQ=; b=bTppoO6TEj9sqn6X0AN8y6fAAdRGoJHZu78yfkBwXTKWEkhZJrjNjtSFV1+fYTjFVU kRb4Ian8fK/r3jfE9q1xYN34+q8wg11mxS+qxzZ52dvviYpOmK7bRy9rl+FMSdf4xLpm 3qKtxAPGN6tsnrJcyqzLn0d0psF8iaVeJ2BbZfAXVdaR5JtqSTCPyjVlezqDt1YGTNsP DIAB5ol2+IEUimyDv16e2wUsh8cx2Kof+ShBFj/GkwKsDAfLkBybqg3tWLiHzM3y8qrw QTZnSch0cMG15Kk3uKkvUPOObvj/j1oqBU97tZ5UsThJrCTLvcMaaFED2CTqJcAVHIrz rQrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772107595; x=1772712395; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=aL6uPMzsVEWXG5ks1J1+KYkn14nsDELRxOy3Sa9zWSQ=; b=XYIEJ9ExwcuXeD8hXY2YzKD1qzqcDAd5h5eKJvDLc5Ns3wlJy1lpqliiYHsFL6I7ks c0qwU7WfRe93pf9G/zNrgad4bqZAmPfAU4FqCi7p7OdZs+DIqv3eqVfBfYnrOo7+Lo1D 0VxvK8S/V/iERII/tvMmjWL64uF84bq+QqVdKkaZkoNDN9R0qshvKtFOCIOE0kHBzhqE k1PlMs795DZFGZgqoHGCOUBYZxkhEftObGPqZ68Pow2YeWT6gaP8+5QH0Bx8hRYMoWuz C/j4KqZLDIi5+IQZEg3egWNuE/LcbVkzwhw57Vuuuw/VoAT5ZyIsWhD7d6x4YJC4N7oH sPPQ== X-Forwarded-Encrypted: i=1; AJvYcCULMhPKF8xkT8v34Rb9UbvKsnQY20HJZ/sUI4dEwI+U+zcxA+SzyUhH39n1n9ncriEe19xofd74p0I=@lists.freedesktop.org X-Gm-Message-State: AOJu0YxAOV0kIGWvXzAXIMvQLNsG1faJwI2ArqziQkK5If+I89u1pB1C 4yQvQIEtFQfZk77X+47SL1Al81mw9iUpbkOgqKoFTamj+ANEzxqnj+dd X-Gm-Gg: ATEYQzz8AHdHFAkXJiwLXztKg2FWMZmQb13IrSg/KMabhGOLBE0n5n4X6TIcM83OsRq 5k741kOANW23DMxhw6ibHEZuuhnowCRDMObLoC701EGLOKk/QxVkLDokcxLiemw3XvgNGMFiOhz CEotf3TlX01BXkAigExo5vC+7jc18hY4rqxI/g/7X/YhP5z30rcAZisNEx9aLWdCIUoK6zdZdJh fDBmqJUEwl9r2rxWCpVQWkzxn3TlUkD0MDW8F6iFDQKVxTQdQLJlwbvh0OlDaHIKLB1puXoPIZm yuQcPP9Koo36KSlHbPhwXgC00/uYdH7q/9QWLorU+klU+ofGYR2Wd82/OtTvO1p3gBPH8aLJc0F 4j+131rk3kwTrdb6eeEbl1pBUXuqtHOOcjBOkrdqyQELyJXPnMxv5MK0piMA3U8ES5oquUtdU6i UvRMFkxZbcGw3vhdU3wkGBmZJBlQ== X-Received: by 2002:a05:600c:474d:b0:483:8e67:e696 with SMTP id 5b1f17b1804b1-483c3db8fcfmr34881945e9.15.1772107594946; Thu, 26 Feb 2026 04:06:34 -0800 (PST) Received: from karanja ([105.163.157.182]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-483bd75df90sm145387835e9.14.2026.02.26.04.06.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Feb 2026 04:06:33 -0800 (PST) From: Erick Karanja To: Andrzej Hajda , Neil Armstrong , Robert Foss , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter Cc: Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Liu Ying , Dmitry Baryshkov , Luca Ceresoli , Shengjiu Wang , Andy Yan , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Erick Karanja Subject: [PATCH v2] drm/bridge: dw-hdmi: Replace calls to deprecated HDMI/audio detection functions Date: Thu, 26 Feb 2026 15:06:26 +0300 Message-ID: <20260226120626.108378-1-karanja99erick@gmail.com> X-Mailer: git-send-email 2.51.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Replace calls to the deprecated drm_detect_hdmi_monitor() and drm_detect_monitor_audio() functions. Calling drm_edid_connector_update() updates connector->display_info.is_hdmi and connector->display_info.has_audio. Signed-off-by: Erick Karanja --- Changes since v1: - Get rid of sink_is_hdmi and sink_has_audio as a later call to drm_edid_connector_update() updates connector display info. drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c index 3b77e73ac0ea..ba88120de1b8 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c @@ -2472,7 +2472,6 @@ static const struct drm_edid *dw_hdmi_edid_read(struct dw_hdmi *hdmi, struct drm_connector *connector) { const struct drm_edid *drm_edid; - const struct edid *edid; if (!hdmi->ddc) return NULL; @@ -2483,19 +2482,6 @@ static const struct drm_edid *dw_hdmi_edid_read(struct dw_hdmi *hdmi, return NULL; } - /* - * FIXME: This should use connector->display_info.is_hdmi and - * connector->display_info.has_audio from a path that has read the EDID - * and called drm_edid_connector_update(). - */ - edid = drm_edid_raw(drm_edid); - - dev_dbg(hdmi->dev, "got edid: width[%d] x height[%d]\n", - edid->width_cm, edid->height_cm); - - hdmi->sink_is_hdmi = drm_detect_hdmi_monitor(edid); - hdmi->sink_has_audio = drm_detect_monitor_audio(edid); - return drm_edid; } -- 2.51.0