Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2357101lqb; Mon, 27 May 2024 18:01:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW9tbKadJ3azYymRUzWy8TuLzU3R9F5miYHpYLP1WTJ1kR76RhbjcBnYFyGOrsdST4oAIXBsgnVza8xmMRsGaR5ElcuAe1cbPZ8w5SRWg== X-Google-Smtp-Source: AGHT+IEWX8F+aA8lPrPCACO5OLg8suLrO/f0+5u4h7KMs4sDoa9kzCVFEr1WG9n/XLrk+/E8JKpg X-Received: by 2002:a05:6358:7a97:b0:18e:aca:fd7e with SMTP id e5c5f4694b2df-197e50c2e8fmr1400279355d.7.1716858071977; Mon, 27 May 2024 18:01:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716858071; cv=pass; d=google.com; s=arc-20160816; b=mXxi+nBWm7wfE+FCAuMtdqlvVZnI1NyIo7bhNN37Gud2f46BZSUNXh7KUA9wflSdFi l36qy+1/YeolqDaDtc7MqCSzRYRNHmcE3dB2hAF4wghqAq+KnGp3Avl9HW0jr05xS2VT ckFOj7FxqaGDmk0sDei6S3RLgV0LXQP7/QIEn6/fpbcjowuG91mJdaRuJ6uMNRNoAcs2 MoAzGVLYorV1tg73eEthf8pnO2ku4GAZ5yx5d/+KqlbiQspoMjTo5f9aX7ArRCewrljZ SzmXMFya/MjjC7tRV5L9srYV/L0ADYr5SNt1Ynan0TZz68yUwv4yRwgh/7zSqKZ7hgqQ 1rhw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=BmwopWG0DiE3sCpp8aZ0JQHOY+FYWa6TPkm28zzJyuE=; fh=e0urXRc406Z4M7lsCL24rmQrJuhZ+vEFnKkaitXl314=; b=XryyAonLDzReH3vnoOgg8PDdYjtjGFRRlBHZXqGUfd1c3gamDbjB/vo5m41toGRH4X UwOp24po58m7DuIp470hUKwA7u+NGcajUGreDApgrzuYV7jVkL8NWsrI5A/k+oLsK5WY J0De16fNuA3dZTyyPzCsnS4TsGz+M72n5evhl9VxIIqUqcP8MOM6DMOA6t/wLnYBMHfu Le9/3BpCW4N1GrT//GXYAVxvC4dx+DCfEkaRoFqG0mk/RNXv9B33MKzVCsmWCl64EqrQ HxbHFDAsq+klvBV6UAc10CqHyFX3rznQEJ5V+ofT6oUCGFGpzjnHYz2vJKSWfzfWVZHw myvQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IqC1zBT+; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-191596-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191596-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-68229935faesi7078230a12.600.2024.05.27.18.01.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 18:01:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-191596-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IqC1zBT+; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-191596-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191596-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 4844CB215A9 for ; Tue, 28 May 2024 01:01:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9B40F8F70; Tue, 28 May 2024 01:00:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="IqC1zBT+" Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (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 451F74437 for ; Tue, 28 May 2024 01:00:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716858057; cv=none; b=D24dVO0LELBGEyX3lbc2tAUTru580Mu+/5yuu1gH6zi5ywMp+php4YBgPo9M49YZ373ZwfaeFQTCA3nEUXwMmIv+t3X3a+CKP5jieGZB4WhVGB6wafJsarDLRFkHmS4s3z9fSTFOmmAGpsZOUsA3TlXMfcrJ4c3+fT27p7EVBYQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716858057; c=relaxed/simple; bh=6RdCALqZATAaluv2o0adt2Iu/oX3BJUs4MRNlUA/VzU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RWeKX5BAYm32veZoeSFcLvToVZk11GhIoo9RmP8rAa6wQWPGbAcWUArr1h5vEChzM7j/hfP9QGxmiJcnuyyGuGlQ2gGNcrcLnPUhuUr8kYBfgk5sy6DO3bO1+nZg4ZrADfjXO7m97fHJdFpucqT6sunczaWcBIzlIiEQq9l6+g4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=IqC1zBT+; arc=none smtp.client-ip=209.85.167.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-529648cd69dso325791e87.2 for ; Mon, 27 May 2024 18:00:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716858054; x=1717462854; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=BmwopWG0DiE3sCpp8aZ0JQHOY+FYWa6TPkm28zzJyuE=; b=IqC1zBT+fWSFvFsviFO9X15r/OilFe//BBZ5T1qv8GOEyDDGm4jlUCDhU9KamtAATt eHin5JH2RR7MPE1+MsKi4y71sKDcGbaXrTCFdhtsBz5Y/6ac55ndlabxNRCD1YKtKODC egvRKxmBQG9IneVxQm5P1+/w/bfFvSaCCiAY2KcWMywjOfsIh7wuMPZ7YwTVzPk8Btti NZdNVaLzed48yx6AiJee/mrEx+5IWHqgaKjawSah2zf4V0IWmfVPuNEh4nxWQ+YipqK0 SKt8Z30aizmNl5wl7pnlbirK0tydw/nPjLAc7B4Xc+cFMvO1Wx01IBnKguXHKXr1V05u dBAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716858054; x=1717462854; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=BmwopWG0DiE3sCpp8aZ0JQHOY+FYWa6TPkm28zzJyuE=; b=tY28Udn9TMi/PxA35DO47ecb0G/QgFBAHLxky2eVxRNXajbVGX6/735EqgYlRdxpG6 d82+1Qm9mSPyYOo4eWFk7ZKYlffdIwGP7YnqTW/HRGgdLZAXvJw73PDA+9r3tBtSR9Zp 0p+cmeK375pIFJofycFYv55bpq2bM3urCtp4Z2vAoOkcSsn7QY8IdSr/ihYEm8RcTwv2 ZRrD+F4knwxuTS8An35LGq2s4a26LS6ll3d41usJAcDlB3reIe9rE1FUHIyztFHlovot 2WiJLPn9rhNEHyH5qmfG+925F4cIr8cWpiA31NQx2wbxrrGkkDjzHhIPe21VgkqbDDe+ GNWQ== X-Forwarded-Encrypted: i=1; AJvYcCVnpjqyRQQDxpTonCskSzkSGAkcs6IpeMqjBnZZFUkOmNPJskUYkJ1FQXlWkScpLhMiTpWBHqSoONFZVVr2jB4hZ+f1cidRki8nXJtb X-Gm-Message-State: AOJu0YxAR4liJR4E8KOV6H1SUtOuN480UOmVfKjn8QliV8aHqYqoxY/r PHRFnNgYbm36R4/qlQoM7e2ORjqbVWntF0gy5XuK5HtqlsxlIYzIg60VTCMMUGA= X-Received: by 2002:ac2:5a07:0:b0:520:11b7:6caf with SMTP id 2adb3069b0e04-52967465dbdmr8591708e87.64.1716858053510; Mon, 27 May 2024 18:00:53 -0700 (PDT) Received: from eriador.lumag.spb.ru (dzdbxzyyyyyyyyyyyykxt-3.rev.dnainternet.fi. [2001:14ba:a0c3:3a00::227]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-529712f32f7sm825854e87.282.2024.05.27.18.00.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 18:00:53 -0700 (PDT) Date: Tue, 28 May 2024 04:00:51 +0300 From: Dmitry Baryshkov To: Maxime Ripard Cc: Maarten Lankhorst , Thomas Zimmermann , David Airlie , Daniel Vetter , Jonathan Corbet , Sandy Huang , Heiko =?utf-8?Q?St=C3=BCbner?= , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Andy Yan , Hans Verkuil , Sebastian Wick , Ville =?utf-8?B?U3lyasOkbMOk?= , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-sunxi@lists.linux.dev, Dave Stevenson Subject: Re: [PATCH v15 09/29] drm/display: hdmi: Add HDMI compute clock helper Message-ID: References: <20240527-kms-hdmi-connector-state-v15-0-c5af16c3aae2@kernel.org> <20240527-kms-hdmi-connector-state-v15-9-c5af16c3aae2@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240527-kms-hdmi-connector-state-v15-9-c5af16c3aae2@kernel.org> On Mon, May 27, 2024 at 03:57:58PM +0200, Maxime Ripard wrote: > A lot of HDMI drivers have some variation of the formula to calculate > the TMDS character rate from a mode, but few of them actually take all > parameters into account. > > Let's create a helper to provide that rate taking all parameters into > account. > > Reviewed-by: Dave Stevenson > Signed-off-by: Maxime Ripard > --- > drivers/gpu/drm/display/drm_hdmi_helper.c | 61 +++++++++++++++++++++++++++++++ > include/drm/display/drm_hdmi_helper.h | 4 ++ > 2 files changed, 65 insertions(+) > Reviewed-by: Dmitry Baryshkov -- With best wishes Dmitry