Received: by 2002:a05:7412:b112:b0:f9:3106:f1c0 with SMTP id az18csp130005rdb; Mon, 18 Dec 2023 01:02:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IHNfhrkHLzN96FOQBOUpipQWcaQRzYx732ms8Wiumj/UbOCT4btzJOGssILZcAdfwI6wgi+ X-Received: by 2002:a05:6358:5e04:b0:16d:e151:a7d8 with SMTP id q4-20020a0563585e0400b0016de151a7d8mr10432567rwn.14.1702890157261; Mon, 18 Dec 2023 01:02:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702890157; cv=none; d=google.com; s=arc-20160816; b=0dDB0VwGH3j82K3kuC5TaSGnJ3P+L92pHvw0APOSKYnDaZ3W+G7qDyri1WA5mPU7xU 4JtMMXCqMgYyg5nDM8BmQfSQf8dVIklWJWkZlbGg359aSN9FLUo7btIkCGOJZr4mBVXv ZtSFe6oq6VIUqs4ZAHzHZzH9RzKFIHpapa0bXSizQpPgCIQ3ktm/fFApyXo+BUB54Flh mxal4A1Q0XOijZtvJWoIl5rFpVsX7aLEls/lPTSaVevBxfbEBDnj2zgimw9yQNKV3JRf Z3vdVOA4qH7jF9Q6eQNSNRAvctyIeEOh2szRUFzm8jBJVG8f8n0ZDvEqJXWei4HuAQZY Gatg== ARC-Message-Signature: i=1; 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=j2KDjM0foksx5EBrcPL1Tt5ShpfJC7mYp9tn1EASC+8=; fh=jejk4hcq7/BxBx++uS6mNE2629zToLBrV5YsK7QQT38=; b=hgwB/dXiXRtBQ3VwElI888aqcAx3U62pOTAH/P/RnaVU9Ci4vScY3Jd3E3KQvkgQZR 2XUYIeiL2ktYlCRDeyPENTaaLuXgeKPFDM3ejAxPkXbh3T4mXcNXv2WAGMQtHeqRtZ0Z tP3Korrbwp9jWoY+XSMImXuJRHNmrxQE+XhShjGzsu2qD+Vfr8wFnq1U36ra56VUrfl8 8M3qCpXGiS/KQsr/ScjQHKCuXwVDMmGpOkh5ITJX+f1w0mOqE/OJ06CRTLZgle7cVWRN cVL9djrkftGvtpUVs8ezzxNVtx+XMYlpl0wQ7RzJq0uDUwbTp67r94yLdijbX3mKkpCJ F7ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CJyM4RTB; spf=pass (google.com: domain of linux-kernel+bounces-3201-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3201-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 u3-20020a631403000000b005b21d089aa7si17606412pgl.788.2023.12.18.01.02.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 01:02:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3201-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=@kernel.org header.s=k20201202 header.b=CJyM4RTB; spf=pass (google.com: domain of linux-kernel+bounces-3201-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3201-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 1E014B20B0E for ; Mon, 18 Dec 2023 09:02:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9E81810A26; Mon, 18 Dec 2023 09:02:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CJyM4RTB" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 CC04710A3A; Mon, 18 Dec 2023 09:02:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09537C433C7; Mon, 18 Dec 2023 09:02:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702890148; bh=TZ1qeOneNQ+Kp1nPdTQpgPP/PrwbFnsKYUfWZDPHe0A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CJyM4RTBWIm84JSEAzF1mcwkNdnxjThccNLa2pk/GK4sH8wSu8RvxxFOzJpNuRqBP 6p0NBzcD2qgrWrlTZbM7oeNc2djGfmjEYeA2RZwU5QiOzcZcqaAqvharae9rLTQJzj JBtDm+CUUdA+E49UM1D3Y+hcWw+ZEcRrwE8GtGiy/KMDs/gqQ4Lrj6Xt2QnTSP4cEE VcMKtrZMmtSWDZ/Gyf2cOE73JvrVxsqrXmMm82a8V3//tT4tzYzhEiojyYZYVxPN74 x4T7ISgd6N7fGINKAsKCmm1TxVJkakrJE8y94HFHtaTNiLFfXcKqrdJ3GKVfmIOGER jrAOT83q+betg== Date: Mon, 18 Dec 2023 10:02:25 +0100 From: Maxime Ripard To: Alex Bee Cc: Sandy Huang , Heiko =?utf-8?Q?St=C3=BCbner?= , Andy Yan , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maarten Lankhorst , Thomas Zimmermann , David Airlie , Daniel Vetter , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 18/27] drm/rockchip: inno_hdmi: Subclass connector state Message-ID: References: <20231216162639.125215-1-knaerzche@gmail.com> <20231216162639.125215-19-knaerzche@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="tgmjpqpodl54ltwn" Content-Disposition: inline In-Reply-To: <20231216162639.125215-19-knaerzche@gmail.com> --tgmjpqpodl54ltwn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, Thanks for working on that, it's much better now. On Sat, Dec 16, 2023 at 05:26:29PM +0100, Alex Bee wrote: > +static struct drm_connector_state * > +inno_hdmi_connector_duplicate_state(struct drm_connector *connector) > +{ > + struct inno_hdmi_connector_state *inno_conn_state; > + > + if (WARN_ON(!connector->state)) > + return NULL; > + > + inno_conn_state = kmemdup(to_inno_hdmi_conn_state(connector->state), > + sizeof(*inno_conn_state), GFP_KERNEL); > + > + if (!inno_conn_state) > + return NULL; > + > + __drm_atomic_helper_connector_duplicate_state(connector, > + &inno_conn_state->base); > + > + return &inno_conn_state->base; > +} > + > static const struct drm_connector_funcs inno_hdmi_connector_funcs = { > .fill_modes = inno_hdmi_probe_single_connector_modes, > .detect = inno_hdmi_connector_detect, > .destroy = inno_hdmi_connector_destroy, > .reset = drm_atomic_helper_connector_reset, > - .atomic_duplicate_state = drm_atomic_helper_connector_duplicate_state, > + .atomic_duplicate_state = inno_hdmi_connector_duplicate_state, > .atomic_destroy_state = drm_atomic_helper_connector_destroy_state, > }; You also need a custom reset and atomic_destroy_state implementations Maxime --tgmjpqpodl54ltwn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCZYAKoQAKCRDj7w1vZxhR xeXgAP0dm8ueiyjPijuT11zIfwizPjY/rTS6El5eaNit+KQxEAD/URSB0sSl8WnY 9E1cY7E8Tc8MjFuD9r0dgc7gDppJEgg= =bDg+ -----END PGP SIGNATURE----- --tgmjpqpodl54ltwn--