Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp328342lqb; Tue, 4 Jun 2024 12:37:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXNml06LxvLv6Pz0VfR2APiKz9BKfozQbx3H2VaY/pYzC6q+Z193SlOsjzim603DhAWuLlVTMCZQLB53mDOliMW8VVcmCsO52rRSmRlsQ== X-Google-Smtp-Source: AGHT+IEoJRWDRmVa5g1YG+1xt0kG3jJVzha2GujXGGP3mNsyDa6MPbl3PUBkDVACS0V9Wb9054Zz X-Received: by 2002:a05:6a20:d80d:b0:1b2:b12d:e364 with SMTP id adf61e73a8af0-1b2b76368cfmr677633637.60.1717529871962; Tue, 04 Jun 2024 12:37:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717529871; cv=pass; d=google.com; s=arc-20160816; b=R1fd5uw+HUvypORzrRWXdbEKG5JYxsuNPxyzGh6ytFDlvflzclcuQmpd9ePsnCru9V /BT665aq6fxuQEYdVKm5zPZILdzugAB3TeEMYJbui5vNVfdJRUz5AtOmbwsLs/cVM2UN LUPgQAzXzaT2GySHGtworWvTGg2ccis+p+sbwhPlV5Vx8xiU9pSHPwjwVulz6pAWyeQY KqSn1R9aKV1Doscq45yCGu9C+EAMGNv5W3DKbhf5cZ4foUG9vlt8/WFvgTWWY0L+TLnu espCS3ttwDgyVlfp5yh87SD+98NWxBMRz20aoarzPFedObOoIMqIDxlIyNZhdjIQy6NH 5RfQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=z7DERFKkXASOn1o+9O/puFHfVDDC8h0FTPNhqYbidaY=; fh=WZ7LJI9OsiWoN6JwazwrY4S6zYopohzhXn2PnWSexPc=; b=IC4ssKLT4JCP72uMf0KHHiyl2NHh5L3OAP/Q01eD6S0zTGQ2q8L8xxnIk4oT/KX8zi mgBnJ/QHeBmMyahwhadUEnMHzkyueX/ITefXQWSCX7tqfmkST0o76g5vxx4OvJc9WBjo cmEKHZIrSk4eke/EKLY7XpqPthl5d+RTMC8g3udCjvh1IsQaoHaciTo0N4MbLTOUn35A P5MpayUkOmdrdyu+wPodGrcsadcQWA66wMD1BMFdZGTHREupETn4HOxM3MDaSLInNBF4 dNFwOzbJCQZkzJfGvjMbwRBchTv96mauca5czVU+NHm4RNpHfciZad7m5uu3iz6+2KjE 60Pg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="TD10HMw/"; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-201290-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201290-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6d483b3de3fsi1033518a12.883.2024.06.04.12.37.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 12:37:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201290-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="TD10HMw/"; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-201290-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201290-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 6C095B26987 for ; Tue, 4 Jun 2024 19:32:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BAF0614B07C; Tue, 4 Jun 2024 19:32:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="TD10HMw/" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 64F8FB644; Tue, 4 Jun 2024 19:32:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717529532; cv=none; b=Oa7YtoOOIHbtS5zIEbrJt9lFEh8xVWAKqibmP3/YV4X5o1UHCVeUZelDg6e7m20lMdHtcRjY9Fgbu43Q+bHWZLvNTFkCGWPxTXdtT3w9IXlm0Kr/WGEwK4YurSTv/plzPfvwuSD1mSlytOkpmfgut9zzPe5PGqBRgMYQBkgk1Gc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717529532; c=relaxed/simple; bh=M1Gdn4asSpZpMWSj1SJTHfA7FUsIrefzLkYIEaSuPWc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=d6kK43xB1Zuz8jezXSFubFevHHcqrNc06xdyQ5Tv3UhWWLiQeyjG7xeCFr42VT6o/UH/OrJOl+iDDdEyP+ayzGBX+4ZNXyiljZZXwME58Ga9m9ioLklsBVBXSckAK5VDJZI4gdCvv/XGqpVhewTXHlTaI7IjzYrpfSATj55STj4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=TD10HMw/; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1717529528; bh=M1Gdn4asSpZpMWSj1SJTHfA7FUsIrefzLkYIEaSuPWc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=TD10HMw/KC+Zeelk+t0a2mjwUXPzb3Hczj8F6WJBiKw0COfBZeFkF6EjH/qUi48qL Oz9zz7uaYcFmKTLwBXh3XcgXxt1v4yBKJUYlHnXUWCjFRzo7dw+5/ivuKYGENSwMLJ LvmenoFOnasGe9G3cgE4XwgWopGAd8Md2SRq71K7ijBmpjow3omaEht4KKbarw28ED 7H9raw9xn5TOhFMBmU/sLHCDNzg2KVLlll+mZxajs0X372UDLle9lEnVM2sQFZgwhG 5l7Olu+lbU/ZioZKr9kHyJk90sbdSWmxRprtzSCEwqySgumM/wxv/5/lO4SzBiDufs eYIBVVVhmwMOA== Received: from [100.115.223.179] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 989343782172; Tue, 4 Jun 2024 19:32:06 +0000 (UTC) Message-ID: <59519381-2729-4839-9882-65a981a0c551@collabora.com> Date: Tue, 4 Jun 2024 22:32:04 +0300 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 13/14] drm/bridge: synopsys: Add DW HDMI QP TX controller driver To: Sam Ravnborg Cc: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Sandy Huang , =?UTF-8?Q?Heiko_St=C3=BCbner?= , Andy Yan , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Mark Yao , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, kernel@collabora.com, Alexandre ARNOUD , Luis de Arquer , Algea Cao References: <20240601-b4-rk3588-bridge-upstream-v1-0-f6203753232b@collabora.com> <20240601-b4-rk3588-bridge-upstream-v1-13-f6203753232b@collabora.com> <20240601143226.GA2003970@ravnborg.org> From: Cristian Ciocaltea Content-Language: en-US In-Reply-To: <20240601143226.GA2003970@ravnborg.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Sam, On 6/1/24 5:32 PM, Sam Ravnborg wrote: > Hi Cristian, > > a few drive-by comments below. > > Sam > > >> + >> +static const struct drm_connector_funcs dw_hdmi_qp_connector_funcs = { >> + .fill_modes = drm_helper_probe_single_connector_modes, >> + .detect = dw_hdmi_connector_detect, >> + .destroy = drm_connector_cleanup, >> + .force = dw_hdmi_qp_connector_force, >> + .reset = drm_atomic_helper_connector_reset, >> + .atomic_duplicate_state = drm_atomic_helper_connector_duplicate_state, >> + .atomic_destroy_state = drm_atomic_helper_connector_destroy_state, >> +}; >> + >> +static int dw_hdmi_qp_bridge_attach(struct drm_bridge *bridge, >> + enum drm_bridge_attach_flags flags) >> +{ >> + struct dw_hdmi *hdmi = bridge->driver_private; >> + >> + if (flags & DRM_BRIDGE_ATTACH_NO_CONNECTOR) >> + return drm_bridge_attach(bridge->encoder, hdmi->next_bridge, >> + bridge, flags); >> + >> + return dw_hdmi_connector_create(hdmi, &dw_hdmi_qp_connector_funcs); >> +} > > Are there any users left that requires the display driver to create the > connector? > In other words - could this driver fail if DRM_BRIDGE_ATTACH_NO_CONNECTOR > is not passed and drop dw_hdmi_connector_create()? > > I did not try to verify this - just a naive question. I've just tested this and it doesn't work - dw_hdmi_connector_create() is still needed. Regards, Cristian