Received: by 2002:a05:7412:a9a3:b0:f9:327e:43ab with SMTP id o35csp61610rdh; Mon, 18 Dec 2023 04:33:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IGczWqYtX0J6AXNzsIplsZP1J63FJpApun2lov5Ha528CCnmOvYO+sb4zvS0F/4VX53LYIG X-Received: by 2002:a05:6870:3dd:b0:1fb:75a:77a6 with SMTP id h29-20020a05687003dd00b001fb075a77a6mr12691150oaf.87.1702902789311; Mon, 18 Dec 2023 04:33:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702902789; cv=none; d=google.com; s=arc-20160816; b=ox0RSitQlhczpX0xi2kvP34hy6BCCFlDljVwl7ZEeDMD5/RDT9112wZkAItoLkF3Qm QcoG+vvC4o0ZcGayWu9gpreK9oqzBUvVu1Q6HSELOdkhqupAPEklxeGYWRyIow3D5La/ VA22C2avJBjquY6zk3E8zhME50VQQ2T7AtX1km0c67avVS846O4AufAdH6VNmNDR6VMe GJnvXQE3Ij/BxoVs6DX34NqGPUcOe/ZsU0hfacxS/MwlDPAT9ZVkpG/YZJHqucZhCtPw V8ZG1oeCwfSWczZ55FMWjxjcUx9UwKMb0dEWP5g+ALra5h3pm+pNZk3nox9ydg6EiRIf o9Bw== ARC-Message-Signature: i=1; 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:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=QkzSpzeAL9RmFlL2/hJm5M0aNeQpUfSRQFTTR6+vjCo=; fh=pug+WK5cgVvlw/GSkU4VcKwsW/1wdN8AJU//kbaZW8Y=; b=xZPPN69+Wx8wN65w3+kUAs2sqDvEIHjhCD7ACiH8OspssmuzsAjSG2COpbvfcreEz+ 4PI0aCIm00Z99G7YO+3sAJmmbhJApi6pr+FowsSkSBSHOLNpxE/D1u/XlstaWVDgIscF XYN3NwljABZK/wmIjG+R1nr2mUSCknVO/TvKcsj00PcNgv1ucvP/1YeiYvApMQ4rCT+9 ZyekRonXGpHGoU4IeMMhEj9x0fUdHiGHiyDjFC82Q/NoT5i+nxcykmTdrx8PT/NMIOTr CeSGh35wqMDVVVmduuD4BROEHMS3sQNHpZ2pPO5Ab2jjFt/0zOz/SyubeK0kp2F93CUz uvGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=QtJJAiOT; spf=pass (google.com: domain of linux-kernel+bounces-3569-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3569-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id br17-20020a05622a1e1100b00403f0dfedb7si26064530qtb.193.2023.12.18.04.33.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 04:33:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3569-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=QtJJAiOT; spf=pass (google.com: domain of linux-kernel+bounces-3569-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3569-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 13E551C22DCC for ; Mon, 18 Dec 2023 12:33:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 352507D612; Mon, 18 Dec 2023 12:33:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="QtJJAiOT" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 0868F41C66; Mon, 18 Dec 2023 12:32:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-40c6a71e88cso36139595e9.0; Mon, 18 Dec 2023 04:32:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702902778; x=1703507578; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=QkzSpzeAL9RmFlL2/hJm5M0aNeQpUfSRQFTTR6+vjCo=; b=QtJJAiOTkuXt8fKLYOyC8OKoZdwQ6iNCtoVXxFvbM2d4U03smKZdF8LEP6P+O+TS7m s6PhezlVW3pKVrRS8VHOeBde+lUUWaXl8vAxjtxpasUE+SFFdR9LnG0pCS5sziMppS38 5uBSF4mpABUTeeiE7qPZXaYAzUSW95SLO2C2l8bc/yzE+SByd2/nvzDCnsbU/T8NGeNv g3HHTUHgu6ZlURahNKT5AtSN09w/pStfqUAOxDK7zY8dVdTWd9bDF4bJ4jhaAgbGIgYc SUrkDKOwCvMpP6Af5NeZBj7PK9T6LMRD86K8ee2g+AKVI1fNb9pGHnK7lm2rqQ9j+wjC niAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702902778; x=1703507578; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=QkzSpzeAL9RmFlL2/hJm5M0aNeQpUfSRQFTTR6+vjCo=; b=Nl3YC5MVEjrhF+R6gH1IVbkrTkiQcXkznC8/sC1B15zUpwzHjNnzRsdBsNmuv81pbr rNxeSLB/5UV0wSHlG+gtY0qdOzJJ+07kHZvqMXY6EruhTeLVIx56+awbCO/p6Mu/daK1 rhIXh0RUSlgrLdzpCVman/dj/9LIntlNbcLOePkcAa1gOoCVQbqUYeqNaefZLbVgBVam e+pnh1xjxaPTV6oI+em1gWQAoJi2M+j95X5S+Sc1wwXrD2rI9p5UCi+He6TENO0owyPl WgSPLZtGILEj2xZzrCsViYThP7v/DwehI3Fnb4OF+Jkclf8TK6ktDqQlqchiD+uJS5QI IHBg== X-Gm-Message-State: AOJu0Yx2cv58X9ymKrKquCabbPGY4GRG8O1C6lVMhBJXkvmdmnlFmims I5e/fF5Z6fqG28Y7egpM7w== X-Received: by 2002:a05:600c:4e87:b0:40d:129f:d5ab with SMTP id f7-20020a05600c4e8700b0040d129fd5abmr1778597wmq.73.1702902777907; Mon, 18 Dec 2023 04:32:57 -0800 (PST) Received: from ?IPV6:2a02:810b:f40:4300:4847:f8df:b40e:3aa8? ([2a02:810b:f40:4300:4847:f8df:b40e:3aa8]) by smtp.gmail.com with ESMTPSA id fj17-20020a1709069c9100b00a1e4cae6b22sm14026777ejc.41.2023.12.18.04.32.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Dec 2023 04:32:57 -0800 (PST) Message-ID: <2de65f47-6512-400d-82c9-ae2ba9fdaa12@gmail.com> Date: Mon, 18 Dec 2023 13:32:56 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 18/27] drm/rockchip: inno_hdmi: Subclass connector state Content-Language: en-US, de-DE To: Maxime Ripard Cc: Sandy Huang , =?UTF-8?Q?Heiko_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 References: <20231216162639.125215-1-knaerzche@gmail.com> <20231216162639.125215-19-knaerzche@gmail.com> From: Alex Bee In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi, Am 18.12.23 um 10:02 schrieb Maxime Ripard: > 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 Yea sure - thanks for the heads up. I had this in multiple commits locally and thought I squashed them into this one. Well, I obviously didn't :) Alex > Maxime