From patchwork Thu Aug 22 17:42:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jani Nikula X-Patchwork-Id: 13774044 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 4D716C3DA4A for ; Thu, 22 Aug 2024 17:45:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=cWLS/76VqceLFQEd1CQbSBFcAWpXcdDWDNYPtLYN2oE=; b=1zvFLvRArAUjQCWUC95dHhkXWP FQ/JrhwO5n2xb1m03VYjjurBdKH68Y+juoPloSAhp6e9p2rkgLtuQ9QsbKzo3iUWOA6c2l2UMVn53 Oax6i5BpdGzHlX/WiOIq54TZ0Ukfb1nFjXd9xzDcLv1wdAqno4SUthVmFSIdjIbfWAeNzoSTea/sO miNf9spvCGvQQtVec5WtFZVSpxmVgfmwMOK0pv2FUcaHAuLTxsBuhiuah6+KqDbAzaiMXM3CxFG7z /rr5SlS8EuXmY5TGmCBj7Ly1rougMhPB+cr4lwWkxLrXZKMiuOOInF7NUWLEacgq6F9jt5cyvM/XF OFyzqFcw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1shBrt-0000000Dpzv-47s8; Thu, 22 Aug 2024 17:45:05 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1shBqS-0000000Dpe9-3PFg for linux-arm-kernel@bombadil.infradead.org; Thu, 22 Aug 2024 17:43:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=cWLS/76VqceLFQEd1CQbSBFcAWpXcdDWDNYPtLYN2oE=; b=kwsqYDAYR/5XV4mr5aYyNxa6zk 6qRKOp+4PvhrZd+AOf8hUHlNTGYEzymxQJHFFBkanT8x4SIc+IgH7khODsQ6C3Yk87UAywaVpIk+B F5VXiEwXj0/J6xRnAG60+uEdj9nbH6+gX48Z83PljWG5CzXubqy9cLQEuzz67apj4P3XnoB8G5u3X nbkv4YmCCPLJOSQ6ljK2a67phN2Wd5KPi+aoLvI/pUeWgeFH13Wubh9hDhxDjPF2We5E0YtIGuZso WA2RQd1wsWvQ0VAqTi1cFsl6eHKElHNABpgp1S54uiUAqTsBKqaoJgDoyOjv0EFNyS1eyEEViUW4N obK/AbpA==; Received: from mgamail.intel.com ([192.198.163.15]) by desiato.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1shBqN-0000000A0JM-3vfh for linux-arm-kernel@lists.infradead.org; Thu, 22 Aug 2024 17:43:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1724348612; x=1755884612; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=E7weO86RaaW0WwgTg3wIfhJ+GMQh3XUa23negJ/H4uk=; b=bx+NV85DwS9Ip0y1GIlPtKQF06/DK+Iq4uqMRA9jpQNjstzqtV9pmswj IHjZlgQ69cMJ6TpqfHG5yXcsA2Ui7SpUV70vw+mbYTZAkpd9xVAyQaIR5 se5Ti2/0Sh2Xw9WTAH4LwO4phVPd54nCm9eBGijY+GKs8QvtNyyWW1uPn O/dqwfXqPqfv3qZeG7l3BcmdyHbkcMSMUX7/O1qScKTF5Wb8gM5XzEs6Q W+rJbr6HbIhhKtXXSiXhXN6D/OIPqQeOTdXWYZ5vxiTb2aZRuHDCm9TGd NYqO7pt4XMq9pLlggyVj1HHF96t3xsnAt8fRhqoFFHswnJgtLVvJx0/k7 A==; X-CSE-ConnectionGUID: 3ad/K6NeTMqCxCcFxjLHMg== X-CSE-MsgGUID: MRli2eX3SeyRUT7QL++zww== X-IronPort-AV: E=McAfee;i="6700,10204,11172"; a="22955370" X-IronPort-AV: E=Sophos;i="6.10,167,1719903600"; d="scan'208";a="22955370" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Aug 2024 10:43:15 -0700 X-CSE-ConnectionGUID: s3uJDQv4SrKmVtyLgQ7tmQ== X-CSE-MsgGUID: UbB7lboWTFCHCoz7CG6Bgw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,167,1719903600"; d="scan'208";a="65862350" Received: from cpetruta-mobl1.ger.corp.intel.com (HELO localhost) ([10.245.246.121]) by fmviesa005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Aug 2024 10:43:11 -0700 From: Jani Nikula To: dri-devel@lists.freedesktop.org Cc: jani.nikula@intel.com, Inki Dae , Seung-Woo Kim , Kyungmin Park , Krzysztof Kozlowski , Alim Akhtar , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH 2/6] drm/exynos: hdmi: use display_info for printing display dimensions Date: Thu, 22 Aug 2024 20:42:48 +0300 Message-Id: <8a6fd6de1853dbc337c5c26c65268604d3e91fe2.1724348429.git.jani.nikula@intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: References: MIME-Version: 1.0 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240822_184333_023479_766E6711 X-CRM114-Status: GOOD ( 12.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Look up display dimensions from display_info instead of the EDID directly. This will be helpful for the follow-up work. Signed-off-by: Jani Nikula Reviewed-by: Daniel Vetter --- Cc: Inki Dae Cc: Seung-Woo Kim Cc: Kyungmin Park Cc: Krzysztof Kozlowski Cc: Alim Akhtar Cc: linux-arm-kernel@lists.infradead.org Cc: linux-samsung-soc@vger.kernel.org --- drivers/gpu/drm/exynos/exynos_hdmi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index 1e26cd4f8347..25d508b25921 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c @@ -883,6 +883,7 @@ static const struct drm_connector_funcs hdmi_connector_funcs = { static int hdmi_get_modes(struct drm_connector *connector) { struct hdmi_context *hdata = connector_to_hdmi(connector); + const struct drm_display_info *info = &connector->display_info; struct edid *edid; int ret; @@ -893,10 +894,10 @@ static int hdmi_get_modes(struct drm_connector *connector) if (!edid) goto no_edid; - hdata->dvi_mode = !connector->display_info.is_hdmi; + hdata->dvi_mode = !info->is_hdmi; DRM_DEV_DEBUG_KMS(hdata->dev, "%s : width[%d] x height[%d]\n", (hdata->dvi_mode ? "dvi monitor" : "hdmi monitor"), - edid->width_cm, edid->height_cm); + info->width_mm / 10, info->height_mm / 10); drm_connector_update_edid_property(connector, edid); cec_notifier_set_phys_addr_from_edid(hdata->notifier, edid);