From patchwork Tue May 19 14:46:56 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 260 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mxe881.netcup.net (Postfix) with ESMTPS id C4DAE1C021A for ; Tue, 19 May 2026 17:06:56 +0200 (CEST) Authentication-Results: mxe881; dkim=pass header.d=redhat.com; spf=pass (sender IP is 172.234.253.10) smtp.mailfrom=linux-sunxi+bounces-23578-noreply=patchwork.local@lists.linux.dev smtp.helo=sea.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.234.253.10 as permitted sender) client-ip=172.234.253.10; envelope-from=linux-sunxi+bounces-23578-noreply=patchwork.local@lists.linux.dev; helo=sea.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 601303058171 for ; Tue, 19 May 2026 14:47:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 86BB831E842; Tue, 19 May 2026 14:47:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="eO9TQPYS" X-Original-To: linux-sunxi@lists.linux.dev Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C4C1F31B833 for ; Tue, 19 May 2026 14:47:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779202050; cv=none; b=ApBntfRibr1wIameAhFsKtVq5MbU1yzAI+CC3Kp7mjI6vbTk++N5IzPtuR/BoMSntR1+ppv+bXaW1FBveQNX3/C5YOaxMhXzlYJ8YSWKlK04h8UIFeVVBwSDHOjoH9UMf4A3diksp7gp1A/W7mNfimx8KiUAoBFrXDC17IjuBY8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779202050; c=relaxed/simple; bh=PORub1hmmDtALj9TsT0FLTOqyO3DlyPnRlea3Zn+bsk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:content-type; b=FJDYIt/9Bxw2ctV3G08mGHSk/rW3Lju5vZk+R0n6wwMz7GFAI+fvsppU2L7q7od4L5SE0RWCkfgLJ4LU2T29BxYHw5aFwGyZ+RSlt2ykSuyNcBG3394B/CmxqEQqjigdlwrbaij5vITNAPfeGaHtr1VP1AxclPGCqCA8s8WLZdc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=eO9TQPYS; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1779202046; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Ac46A5tx5N3WaVtwsY4RrFV9ou6PtDA5opWWhwSNYcE=; b=eO9TQPYSl3Q+yIVMpiZ9uxIESgC0/cda8K9ZKeI2OOwYrLZbGXzCiWWg9hbxkdq9uA4xj0 7qpoB0FvH8Hqi1DkX9TGZRQo5nv/XaovbfrZ2R/cxWN++pkFMTVIqI15SbFkBnFLGb6OX9 NDrNFwkSaHLyF0FQGjlnM3/pzInCJII= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-359-zbDfqkAHNpiuU8CC870-kw-1; Tue, 19 May 2026 10:47:24 -0400 X-MC-Unique: zbDfqkAHNpiuU8CC870-kw-1 X-Mimecast-MFC-AGG-ID: zbDfqkAHNpiuU8CC870-kw_1779202044 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-48d1bc85bb3so12767995e9.0 for ; Tue, 19 May 2026 07:47:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779202043; x=1779806843; 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=Ac46A5tx5N3WaVtwsY4RrFV9ou6PtDA5opWWhwSNYcE=; b=oqm7OkXm63RcdG5ho07hdy7ynhWyNoPbBWO0+9naj60uSgr11uumP+cFsbhpNmHK0I ic2j4z9bPeNJk/qUx9ifUoukUTcyMsKzPI/k2Qg4XgsUSYDzJnyys+feYrC3PjiiABdT X+u88zOG1u1AOATvGY5tZ2OBlq5HQ1/J37QUy9iaB/KuhTYBjk8/FB3JfdFDCQqjL8mG TPdflDCy8AP0HTCYT76LxhX4ibExLOQ/kxifFLzw3sdmDeNPPphne584nIITw6XIw3lQ 4+wtNMX4ETw8CnjGMYeGHV6dr86n1ohfLeof7erDjdYQ5tNKsjK16JcN32ECnfPvWvKW aTWg== X-Forwarded-Encrypted: i=1; AFNElJ+qX5AV5fQRxNoarWn2WijLlmaZbbilUVbM3g72BshBIF4vOvR9CseBes4xe3QCsgsoFA09B2k7xdU/2Q==@lists.linux.dev X-Gm-Message-State: AOJu0Yz6atjWBoKhj0I3aDd2jhDGZ4m+POtIUy31AKZe4F9qJg6eOApZ kDMTrMBhImThepnmx4mMbPzY0mpYp0+eRXrE2Ji21C7GeJGrCmCDKlwj9YjGxE6fvczYsEpUIVP dhVXA6QzNVGHJL9IKVN4Zcm8GV5JRCWi7P51r0mXD2PfkW/vKq4D8HECRWucHhkEl X-Gm-Gg: Acq92OG1Jyd8Mkj8kIdR3Y2ER0yeALPfVBvOJRRcegp2GpzQoOspXg0vsJjdPdLJIs5 F1uJ89iijvEyefAZdV4Gsf1aV06IF6y+KnjalSMKGVNpfMhaoqz2+KY/FLz143NwhwfbEdDP6SM HubCvYG+/Zl2WW39Mh4rrOkWeXTDV0QoHy+6PrwBnshD6nBdwNI5Luf68YuhFkz8tl8CYvab40E ilvEC8y6x/Wh33AAbCMcSdtKHV9/oKN41HP6OtMUwMbFM92DrUo+aC30Oj3UDmNj0Wk9vkZ/s8v G5WHFu+5MGdFkMMF74tSBdriziX5qUt98a2YIl1Ee/3bsVSSTnTGI3LJZj/NUKd9q5a/N4G2sst hw6YmLcC0AxO4uizwgJ4JN0vIGzzC+lTw9G2DqEV2GoSOvvzilkuRO2xvFA== X-Received: by 2002:a05:600d:8:b0:48f:e044:927d with SMTP id 5b1f17b1804b1-48fe537fa84mr260382005e9.10.1779202043367; Tue, 19 May 2026 07:47:23 -0700 (PDT) X-Received: by 2002:a05:600d:8:b0:48f:e044:927d with SMTP id 5b1f17b1804b1-48fe537fa84mr260381215e9.10.1779202042898; Tue, 19 May 2026 07:47:22 -0700 (PDT) Received: from localhost (62-151-111-63.jazzfree.ya.com. [62.151.111.63]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48fe53767ecsm298800115e9.10.2026.05.19.07.47.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 May 2026 07:47:22 -0700 (PDT) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Javier Martinez Canillas , Abhinav Kumar , Alain Volmat , Andrzej Hajda , Andy Yan , Brian Masney , Chen-Yu Tsai , Chris Morgan , Cristian Ciocaltea , Daniel Stone , David Airlie , Dmitry Baryshkov , Dmitry Baryshkov , Heiko Stuebner , Jani Nikula , Jernej Skrabec , Jessica Zhang , Jonas Karlman , Konrad Dybcio , Laurent Pinchart , Liu Ying , Luca Ceresoli , Maarten Lankhorst , Marijn Suijten , Maxime Ripard , Neil Armstrong , Nicolas Frattaroli , Raphael Gallais-Pou , Rob Clark , Robert Foss , Samuel Holland , Sean Paul , Sebastian Reichel , Shengjiu Wang , Simona Vetter , Thomas Zimmermann , dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-sunxi@lists.linux.dev Subject: [PATCH 0/8] drm/display: hdmi: Add common TMDS character rate constants Date: Tue, 19 May 2026 16:46:56 +0200 Message-ID: <20260519144712.1418302-1-javierm@redhat.com> X-Mailer: git-send-email 2.54.0 Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: 860Rf5ouR34-jdu941Pr4f4r-HA3zaNgkHjwDNm_TjQ_1779202044 X-Mimecast-Originator: redhat.com content-type: text/plain; charset="US-ASCII"; x-default=true X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [-1.16 / 15.00]; BAYES_HAM(-5.50)[100.00%]; RBL_SENDERSCORE(2.00)[172.234.253.10:from]; SUSPICIOUS_RECIPS(1.50)[]; MID_CONTAINS_FROM(1.00)[]; MAILLIST(-0.15)[generic]; MIME_GOOD(-0.10)[text/plain]; BAD_REP_POLICIES(0.10)[]; HAS_LIST_UNSUB(-0.01)[]; PRECEDENCE_BULK(0.00)[]; TAGGED_RCPT(0.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_HAS_DN(0.00)[]; FREEMAIL_CC(0.00)[redhat.com,linux.dev,foss.st.com,intel.com,rock-chips.com,kernel.org,hotmail.com,collabora.com,gmail.com,oss.qualcomm.com,sntech.de,kwiboo.se,ideasonboard.com,nxp.com,bootlin.com,linux.intel.com,somainline.org,linaro.org,sholland.org,poorly.run,ffwll.ch,suse.de,lists.freedesktop.org,lists.infradead.org,vger.kernel.org,lists.linux.dev]; DBL_BLOCKED_OPENRESOLVER(0.00)[sea.lore.kernel.org:rdns,sea.lore.kernel.org:helo]; RCPT_COUNT_TWELVE(0.00)[42]; R_DKIM_ALLOW(0.00)[redhat.com:s=mimecast20190719]; FROM_NEQ_ENVFROM(0.00)[javierm@redhat.com,linux-sunxi@lists.linux.dev]; DKIM_TRACE(0.00)[redhat.com:+]; DMARC_POLICY_ALLOW(0.00)[redhat.com,quarantine]; R_SPF_ALLOW(0.00)[+ip4:172.234.253.10]; FORGED_SENDER_MAILLIST(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_COUNT_SEVEN(0.00)[7]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_TLS_LAST(0.00)[]; ARC_ALLOW(0.00)[subspace.kernel.org:s=arc-20240116:i=1]; MIME_TRACE(0.00)[0:+]; TAGGED_FROM(0.00)[bounces-23578-noreply=patchwork.local]; ASN(0.00)[asn:63949, ipnet:172.234.224.0/19, country:SG]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: C4DAE1C021A X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= Several DRM drivers define their own local macros or use magic numbers for the standard HDMI TMDS character rate limits. Maxime Ripard suggested that instead these common rate constants could be included to a shared header. This series introduces these constants to the header and replaces the local defined constants or magic numbers in drivers. I split the changes as one patch per driver, so that these can be reviewed individually and merged at their own pace. Javier Martinez Canillas (8): drm/display: hdmi: Add common TMDS character rate constants drm/bridge: dw-hdmi: Use the common TMDS char rate constant drm/bridge: dw-hdmi-qp: Use the common TMDS char rate constant drm/bridge: inno-hdmi: Use the common TMDS char rate constant drm/sti: hdmi: Use the common TMDS char rate constants drm/sun4i: hdmi: Use the common TMDS char rate constant drm/msm/hdmi: Use the common TMDS char rate constants in 8996 PHY drm/msm/hdmi: Use the common TMDS char rate constants in 8998 PHY drivers/gpu/drm/bridge/inno-hdmi.c | 4 +--- drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c | 6 ++---- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 10 ++++------ drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c | 9 +++++---- drivers/gpu/drm/msm/hdmi/hdmi_phy_8998.c | 9 +++++---- drivers/gpu/drm/sti/sti_hdmi_tx3g4c28phy.c | 5 +++-- drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c | 4 ++-- include/drm/display/drm_hdmi_helper.h | 6 ++++++ 8 files changed, 28 insertions(+), 25 deletions(-)