From nobody Sat Feb 7 21:24:52 2026 Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 786622FFDD6 for ; Tue, 20 Jan 2026 08:27:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768897664; cv=none; b=Kxzj8M0WH5z08iwFC3XrzOiqdLQ/OeIsEM7wqaM7rud961LDmyH9AX/esLYxSLu1R83KjMzfDHpqs5x2vbnZZxJMP8t5tgGv0LFIfLq9wFg5z8cNx6IzeV/IR8jsAKPspy/Ed7NfIFOJ8bepmZ66mAoMeglDPrBlVTxSOFhnHYs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768897664; c=relaxed/simple; bh=OIi/+kfwcsEILQk7efJtaaIifMy6jva0+0ruE2cddJc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MYWHMavqx4eoRlnhB5QsqBNsM6qGKILkDmE5q0uskcqvrdJbEAHgrnXa2vikimwHhDEcK+7Yd9wvs0e/ZqL0G7WcxFgwytOA/4bytwGnToileqJpVoM4zQaQnSMwu3Dr0W5uBi1l4LmS7L8uNVYmM4pT72llu+lEkjiBK1I30+Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=XlYuYotl; arc=none smtp.client-ip=209.85.221.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="XlYuYotl" Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-430f3ef2d37so4031681f8f.3 for ; Tue, 20 Jan 2026 00:27:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768897661; x=1769502461; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Jqiv5/fr/TnAEgpOJekrDgiu75OtJHHpJGEugbbiGqQ=; b=XlYuYotl+FdI6mAAgTgFrNCvDz3mOGtbjerJcIm+wJpeKOtfeyk6GWZUm/pkYp1Pn+ 5alozwGtylr6520sTJbeJaKSUla0rhmxM4T3RjC2WM9MAbF630PMPlcjRg3tH5huhCHF Px2gwAQiMc6f8IV3Ki6IhgKwyev5OUIKCHQAuAuH8PaqwJXJ7d/qKFHt6p61+RZBjs9d 4jzoXAALZ8d5aPfxk1P/1D6stlwTugcTYJr7NLFrHFr4GEG+J37RbWjtrZOFUDgqhXad eW0cm4XOVOmbEMMB31GKzzBcfqoc7H7VF1H+SPbj/WLUV6S37iRo0l3YsReqVRWO5CQO vjkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768897661; x=1769502461; 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=Jqiv5/fr/TnAEgpOJekrDgiu75OtJHHpJGEugbbiGqQ=; b=RDPV1105Ur3k+/B1WcVhhgryl7yB3JXDaGR0YXrbMfJEnWxIdEEQqA8PRMzhIKVUow FpR2abT36UCasbuCOCXftFHpxWwFqbP/PLzw0exRA1zVgkjGZ11BGl22O8Ttt+mcI3KT rzANtyNGfozpNyczkNQtpEYKQtkwuf9CDhQ055xVyTgMcFCCRVPu+oS7rN3oeDjhSlX7 ATCchMIbG4FNn7wklKYL6KYIPmOJWZNQaeX8Bu6EoSJewgB2e1Ny3vrwisiMvgFAheJx cDaXaldhDt/fbXG6DTju168HHZ46ojlr6xSEnWHQeFWsgDEKEf/5hJdDy1jpM00LxoZk eaWA== X-Forwarded-Encrypted: i=1; AJvYcCU4HjIK2VGPmAmzehDfNAw5ZrXgBT8gdozr0PC1tsDNkhQvRYTHLIPM484SWvrhxyDGh8h6Z+xDWHe0LiA=@vger.kernel.org X-Gm-Message-State: AOJu0Yzd/UnQcLKTLV9w6se9aR7kOJl1ypR4YX9NtCfVIGu7MFKn879W eEp9D+rz10n+gMGhDNYdB4V0hWf2Ls8yMQrgjARbRf4zvUgreO3I9iDF X-Gm-Gg: AZuq6aLJ41CnrZdZeSM0JKiqoj5JP3OgUGwMpS6brIitm9wQaMdDvoXUG8S8KruP5Fz O9jkNYMbATcEnRt9OygO1uh7ySGAxT1beyBd7Ggj7uHPtNWFGr7uFiN0aS/UylorQaDdhiHKyWI SKfY6sXlvP5S2K8Pso7ZbwbFj0NxofNpEN50za45dJ/TexBqtgrbTnsGtKGzaW3CQ/Lnmzg7XZK 58juFm1rxJiJ00L45DEAPcKeIrNsv82Z2PQ/yqcH6YQ1kFS1RSMFW9D03x8tgB3ffRYxyxVNwwi nx5Wi9aztMIEi6csckmmVSrgiIC/J3Vtrzc1A73FdYZ2qOW9H/9j7k1zcyVfEKhZdBvQvr86BrO 3pTsKWL1470nySvZCqxAN+u5NfJuSbpgnAHNbUeQueYCDWBM7l/Q+RO4ATwHcqmgbWoe6JHwFJJ heWsdKG0ai1/36IQ== X-Received: by 2002:a05:6000:1884:b0:42b:2dfd:5350 with SMTP id ffacd0b85a97d-4358ff6f74dmr1664760f8f.56.1768897660546; Tue, 20 Jan 2026 00:27:40 -0800 (PST) Received: from karanja ([105.163.156.206]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4356996cf58sm28680381f8f.22.2026.01.20.00.27.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jan 2026 00:27:39 -0800 (PST) From: Erick Karanja To: andrzej.hajda@intel.com, neil.armstrong@linaro.org, rfoss@kernel.org, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, simona@ffwll.ch Cc: laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, 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: Tue, 20 Jan 2026 11:27:31 +0300 Message-ID: <20260120082731.15798-1-karanja99erick@gmail.com> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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_aud= io. The driver should read these fields from connector->display_info instead of calling the deprecated functions directly. Signed-off-by: Erick Karanja --- changes in v2: - Remove unnecessary call to drm_edid_raw() drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/br= idge/synopsys/dw-hdmi.c index 3b77e73ac0ea..ddc4ae40d94e 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(struc= t dw_hdmi *hdmi, struct drm_connector *connector) { const struct drm_edid *drm_edid; - const struct edid *edid; =20 if (!hdmi->ddc) return NULL; @@ -2482,19 +2481,9 @@ static const struct drm_edid *dw_hdmi_edid_read(stru= ct dw_hdmi *hdmi, dev_dbg(hdmi->dev, "failed to get edid\n"); 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 =3D 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 =3D drm_detect_hdmi_monitor(edid); - hdmi->sink_has_audio =3D drm_detect_monitor_audio(edid); + drm_edid_connector_update(connector, drm_edid); + hdmi->sink_is_hdmi =3D connector->display_info.is_hdmi; + hdmi->sink_has_audio =3D connector->display_info.has_audio; =20 return drm_edid; } --=20 2.51.0