Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp635299lqp; Wed, 22 May 2024 15:13:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXJtv7XILCRCkFwgA37MK3wEI6bvtsL2VjggmOhPT0uD2llOoRKKR5rYZHae+mR50zl2INZcxU81rK2L9637MMxOAuQbShC1NRIU+3SOg== X-Google-Smtp-Source: AGHT+IEbqNFyZeiNMZt2ZlQf1l2J507pag8LKW0S9HhQ4it/3saIVVnOaROTKO3ESrTkL7grGyUQ X-Received: by 2002:a05:6512:251:b0:51e:e703:c878 with SMTP id 2adb3069b0e04-526be7df2damr1925384e87.14.1716415993398; Wed, 22 May 2024 15:13:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716415993; cv=pass; d=google.com; s=arc-20160816; b=h/wBMvIjV/QydpkeXezF3MI3wKSURRVu91ry4skAEGHgmT6ruMBaxWrRAFQkxCF3hs +FPrjrrICzbB7fdCNmL7IjBN8+VeA9iJjWXm/9kVGiUIcmIDrxMuKB8ALP5ZNL32UWnt Ot/91bceBI/de5w0+1GH+dVmExfkKXcpNipz+6H3sgz9Th2d+e7dD4uRXt6dFSlekDkX q4bjOb3O7diqdncIkP8B3oENWptdarMmz0+jmBEmnGRp1uVL3BRpKAmyZr48FbgAtpRs G06TO+fDWquwM4L2dsGkm+0MPMTMtW+dbsSSbkP8vYGWPwydM+jICBVZiiQDA58NMNtw KD6w== 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=BQOeeyMaEqMnu39Y+NwRU81Ky5s55spLGysaOpoEjNs=; fh=15p44Y/Ujs20lYN5jVhKCsp6r4K20mAGEagiP+R7Guc=; b=gINB0Aadn2IVR/s98nRGdttd/DQ+2GdPuHxyYm50+YOOQ7L1JkqM1g0AVJrBr/vCge CuAwPJQooK6i7YLqzwqr6BAaFrE4tlRSpnkdvX+dl0L82k0LdHVpy48WSSs3rkZIxl/+ HUGImE5b1bptn830KF0/qBkDr5mibKLTHhvBexIIBr2WWeSLq0iL5qPEIRBVKCjOB60m K4KKXh84TuLISuU1uFfIV0yJCtM7S60/5pxeFUROCVlXlWa/wuFnbZhTT0my70WTgKEW X5JfAYrq0MWLBk+xhgsskcte1PldQrouhTc38buo6j28FzVczkaUKRD24NoSc73NKoMO c0Pg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DFI4haYA; 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-186768-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186768-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a604fd3f9b7si447177966b.670.2024.05.22.15.13.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 15:13:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186768-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DFI4haYA; 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-186768-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186768-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 274491F221C7 for ; Wed, 22 May 2024 22:12:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9979C146D53; Wed, 22 May 2024 22:12:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="DFI4haYA" Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (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 3518680617 for ; Wed, 22 May 2024 22:12:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716415957; cv=none; b=uU0uCFKDk+bAaD4KdMzsVhpGuZcfENiTySqfhZoLTWXfrNIfZHMH8hIoJL89XAX3ssk/+lGEjI2zfQ0EDy/6aJTFlZJrh+7qJbzwF1NQ8jm2lQuJI35koorqx7Gk0KI4mr3A5qgcgJ+kUwU4Vzo5CHnUjZ2E1ad3ZybWD9zTDXw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716415957; c=relaxed/simple; bh=fDOnQ8n/6U8eCK1Py4zZQ5yun47iYE10SbmdRNCSXao=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GP2SA1F77MxDl36hZ/Zi/AVx+DL60kPv1ovkBfXcfdJU/GkQueXILO7rerXnluKBQDp6eaicXI6bHfTGbFOoXk4frcH3rNpIhiobXK0Rxjl7YbDAJD1zNCKek07lbf0PIY2OUlg5T1V1QhZIyokEKhKr45GN9clU4JdPtBDoq4w= 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=DFI4haYA; arc=none smtp.client-ip=209.85.167.45 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-f45.google.com with SMTP id 2adb3069b0e04-52192578b95so8255126e87.2 for ; Wed, 22 May 2024 15:12:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716415954; x=1717020754; 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=BQOeeyMaEqMnu39Y+NwRU81Ky5s55spLGysaOpoEjNs=; b=DFI4haYAvbaWEo+J2L5ybV4lscNHKa8u0XUy8n/vJd2bpnZn8V5/PXSuTaVHbLuVUK d5JxMYkXdRDRn+Eux9YtOwm8s3YL3wt0ycaS7QbGhjJjyiq8+hujvWZekB7DuFFtKZhE SFdslKM+PSMhOogaZIqh35+Q75liGBDNoEQYgJEcm1YYS7bvNznrVfyXvAnij6YpUhLE XlGevv2/NY9huJunIO2bltECtbqeCZzYai3xkrGIDyTk4Cyj06vSDPXnA3FP1+cJeer8 LhHQUUK5Bkp3idaV3HbTgGWAakjliAaVeoRfev1+mp/ADaIE5XrCcWnkyicCBDPpTQgb mMIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716415954; x=1717020754; 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=BQOeeyMaEqMnu39Y+NwRU81Ky5s55spLGysaOpoEjNs=; b=OpYRnTEAnuAAndRIhgxc4JtSGNLtXvoKcyalm1ppwdbQaeQnEZY2VagVAalFny7n5y hJN56yA/tBfQUGO5Uk1S+/lyJbTSn3sWkYo/jvPbWHTnHCvDgUr+0HfWQexYQy+OjuXC ccLtn2OIveFrSpllV8SeJKgshPwvCU6GGXBT1W015Tf1oyrH9o409Qc4bzeIUF34kw1A hfZTC15Me3+e+vRpfel5CfKcD1+0sce76iREtDK2tne8Izx1KDMmozEWUslxZuqtJdPW HL+0AFFNueB7+lJNUcKAcL23tAFRvHnULd69pRPh4eW/PUlM+VqCCOwNyi7QCTmdPuKX zfoA== X-Forwarded-Encrypted: i=1; AJvYcCWf8Ryi4V1dUJXTb6YlfBONvi4+yIEZIbByyzeu0Bw6fSfGDloFn23t50u9IAZbW8VvbbCS76NHPmLpEjET9KRYX1pIQH5rMO6Ff/LV X-Gm-Message-State: AOJu0Yx2tSVxUMcGhorefsTA7hLkEuwfswl37EHlaO7g1VVrctcDvfkZ FL4lS1veeBqghxWls+pTnxQvk2//BT2THwfDKsjgk4jFw6rOgGdHITUboBIqAb0= X-Received: by 2002:a19:431a:0:b0:523:9493:4e63 with SMTP id 2adb3069b0e04-526c0d49771mr1801806e87.60.1716415954442; Wed, 22 May 2024 15:12:34 -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-521f35ba50csm5062862e87.69.2024.05.22.15.12.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 15:12:33 -0700 (PDT) Date: Thu, 23 May 2024 01:12:32 +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 , Sui Jingfeng Subject: Re: [PATCH v14 01/28] drm/connector: Introduce an HDMI connector initialization function Message-ID: References: <20240521-kms-hdmi-connector-state-v14-0-51950db4fedb@kernel.org> <20240521-kms-hdmi-connector-state-v14-1-51950db4fedb@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: <20240521-kms-hdmi-connector-state-v14-1-51950db4fedb@kernel.org> On Tue, May 21, 2024 at 12:13:34PM +0200, 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 > Reviewed-by: Sui Jingfeng > Signed-off-by: Maxime Ripard > --- > drivers/gpu/drm/drm_connector.c | 39 +++++++++++++++++++++++++++++++++++++++ > include/drm/drm_connector.h | 5 +++++ > 2 files changed, 44 insertions(+) Reviewed-by: Dmitry Baryshkov -- With best wishes Dmitry