Received: by 2002:ab2:5c0e:0:b0:1ef:a325:1205 with SMTP id i14csp61343lqk; Wed, 13 Mar 2024 16:34:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU5s/NAzGk1GMacnIMtZIu65E7qvyblx8HUK6AMSY5rnW6ORjbymL0TrAqDlQ8sbSBVOMcJBoAsO/F/L2lV1IIh6Jf7PnOHIDEGOlj5fg== X-Google-Smtp-Source: AGHT+IFN1lQFv8OKTOFeaxCTNEa2h2RcUsepCQXbxXWxy3RSlvDEKhLo0YXpyVwoWMYf2Ua8cEqC X-Received: by 2002:a17:907:c316:b0:a44:52ec:b9e7 with SMTP id tl22-20020a170907c31600b00a4452ecb9e7mr3822ejc.16.1710372888703; Wed, 13 Mar 2024 16:34:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710372888; cv=pass; d=google.com; s=arc-20160816; b=vCUzdGGcLNvuv/8Fil1MsHyKW7sYSKexkyA0TZxzL+UYgvN8fV6oFwqUfaMNmP0Tiu v0S+ThL9GAYmU+ou617EKyggxIo/ZGgwHKXZM3x4yKrUye1w2ddgHPnz3PC7ZOGu/SKM v5esfADN5peTMiBOme6qpkq38cg/bLGw0Wv7Iy5/TxrLjLs+70pcdbc03kwpEFVYDeeA kA9SZGIWpFtnMz4k3D8+q+hfxVgz5v9Pnl9ClPE4SUGFPhNXdTozNTjgZZUqRpSkpt17 PvnBgKq7E2ztZLdEXeLAT1mzbI9dBqF0p0RdWDHmpPC+JZZ1Hkh630h087fuybANPuNN 04dw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature:message-id; bh=aXQaEFsum6OMqBMgCJr/1CyC37B3P/uDQXWPsVF6tQE=; fh=g331I1DYS0BtP9lQ5UvgVlFsn/AaqXlvzKSPqY33Kbw=; b=nzYfZxZeynXE2feTMJIcjPCb192HpMmj8sI923wsZ6Pv06RKVw11khogl+Hw/npYhx E2Eg435rDhDfCo2+WOeh7c3I9t5aOyWnN0ygk7PajQADObrym55G0PHjowzxj7eVuL98 t6oQ7BZdvjT48awCdHmuoIwFRmEEMFQCOId080NgE6vqqy+wSgDB1y934C5lilr26ve2 46qj5di2a3LoO2Bp6Yc0Y5m/h0EFVgwm+ExGu/6V3x8G9/CEdQuoZknl/d2rFaU8g5P3 DDcH/Y3y3hS49jwtyF4rbSzZzWBGZPJ9ir3IQ2lUcmn/SKw+TUNZ+J/sLkqCFVnstBpZ M4GA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=ZlnC1hRU; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-102643-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102643-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id dk5-20020a170906f0c500b00a46605d6943si123790ejb.934.2024.03.13.16.34.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 16:34:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-102643-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=ZlnC1hRU; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-102643-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102643-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6EEDF1F2204C for ; Wed, 13 Mar 2024 23:34:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 24A7C5D72B; Wed, 13 Mar 2024 23:34:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="ZlnC1hRU" Received: from out-185.mta1.migadu.com (out-185.mta1.migadu.com [95.215.58.185]) (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 438F15D72F for ; Wed, 13 Mar 2024 23:34:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.185 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710372880; cv=none; b=LkXHsk2LF7Ji6e2XJjKyuZdxR7xdptVLS5rQxn1M4vOpacVTMhdaaHdXyr27jF4inRYJcRv3rIDjy/wLJ6mJ7AOwvwouxSpS9lcxrEjnpk92IQNPdD96EQ1rM+JAQ+EEVi+7Ssw83Aa5yHUwWY+DrXygVhOrcrmg+z5VXOHRFUc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710372880; c=relaxed/simple; bh=mk/0nw43f/X5dq41JsZS2ZjvqVj6m4MuDsowqHXmhBc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=cuznOrvf0i/KJSWWzIJA532tM4Yp0E+i62K8jz/kKx9berRmb+l8NRzRN2tchERKCL36fqCjnWmhdpl9utAErRnUS6rWZXgKWIpE3pk1SomDoxqbGEUccT/oflLkG/ionchnHyIM0f2Gs8n4DdCn5wyzct87E9EhO79WT4RLb7A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=ZlnC1hRU; arc=none smtp.client-ip=95.215.58.185 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Message-ID: <4b1c71bd-10fb-4177-bacf-44ce77ae1c52@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1710372875; 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: in-reply-to:in-reply-to:references:references; bh=aXQaEFsum6OMqBMgCJr/1CyC37B3P/uDQXWPsVF6tQE=; b=ZlnC1hRUo5KNFY1GdEQxvESkKLLFy9LfseRTKgurcQl5VqEAS6NqtJ23muCOZCtFNcVyx5 Hgz0dsyvNEqIn/lPi6JC0iuMzOy4GDuZcbBmtjPssNR0X6rvxpZJS+dxntt0oAuAjRY2GK kVFTgeWNsYzTiABktxLawoErr4pl6mI= Date: Thu, 14 Mar 2024 07:34:11 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [v9,01/27] drm/connector: Introduce an HDMI connector initialization function Content-Language: en-US To: Maxime Ripard , Maarten Lankhorst , Thomas Zimmermann , David Airlie , Daniel Vetter , Jonathan Corbet , Sandy Huang , =?UTF-8?Q?Heiko_St=C3=BCbner?= , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: Hans Verkuil , Sebastian Wick , =?UTF-8?B?VmlsbGUgU3lyasOkbMOk?= , 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 References: <20240311-kms-hdmi-connector-state-v9-1-d45890323344@kernel.org> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Sui Jingfeng In-Reply-To: <20240311-kms-hdmi-connector-state-v9-1-d45890323344@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT Hi, On 2024/3/11 22:49, Maxime Ripard wrote: > A lot of the various HDMI drivers duplicate some logic that depends on > the HDMI spec itself and not really a particular hardware > implementation. > > Output BPC or format selection, infoframe generation are good examples > of such areas. > > This creates a lot of boilerplate, with a lot of variations, which makes > it hard for userspace to rely on, and makes it difficult to get it right > for drivers. > > In the next patches, we'll add a lot of infrastructure around the > drm_connector and drm_connector_state structures, which will allow to > abstract away the duplicated logic. This infrastructure comes with a few > requirements though, and thus we need a new initialization function. > > Hopefully, this will make drivers simpler to handle, and their behaviour > more consistent. > > Reviewed-by: Dave Stevenson > Signed-off-by: Maxime Ripard Reviewed-by: Sui Jingfeng -- Best regards, Sui