Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp360088rbe; Thu, 29 Feb 2024 01:27:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXBVYt/DIpnR1x8g20tFliQtTwQrOI2zcLY0eZppw17DGhEhvt7bu8WCdQ2WGTVQ76JlKgJhEf3c6eSLsCjZIvCfNrYqN8ctJKdwqSq0g== X-Google-Smtp-Source: AGHT+IGnEqm+t9wGOZCuYz/Bb6ZlB95aJ+NMjkAnaXIHsGrCAq2iNJNxuNbwYNJnrrZCh1lECcL/ X-Received: by 2002:a05:6808:1d3:b0:3c1:83c3:969b with SMTP id x19-20020a05680801d300b003c183c3969bmr1493430oic.53.1709198861673; Thu, 29 Feb 2024 01:27:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709198861; cv=pass; d=google.com; s=arc-20160816; b=kH/nRqFuwG0z8XvUeQ2ngtiU84Mh2rBhoWTkrs1vtM4yASyl1hBHJfgxaFQsq5VFoK TeSC/8zrcXK3rGpqOytLWX+BaBOmEEm9WWNySOIDAFoocV8TcAHjeNQCW9SRm4hSX3vK 810eee5NM9N92HEQWnSGXDkMqLrAVLb7gHLfkltczDVCz4n3AOvkUg4dNYIq9CZk3MwM A7yvr32LzfUVAWa2rlVEhnLn5Q4wE16PDQo0HmBfweWZ55jOhTaihIyHRxVQPsw3T5hf q208qAGKXILWyCLsmQMWRE3VcNClfG53QuE5nSf1o1mr8UAMp7dKdtvzmphV3KJBN917 xOuQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=1n6ZCV67cur8e5mAju//0gzCRgXTlxNt1OqrWENqIVs=; fh=BRFgW+YVk75Ik/fzrb6h+I/3Liaozt3cg726Wsx0ALg=; b=NEqlVk469zLXBvZmbcmayrZER1rPOMGL0GnzChdkzrLJiXOH5VWuXVczn7Z0c29SAw wYnUIC0qf2MydSm/TGhgpviVzgCfLQEe0WAkvmSAPw/0j22EVok4PRc4uKX8gOHGeWOX 0xb5T6sXygGw8vMY9BOxHeDx6/Lj7XgNZRg1P3H9G+PCyYYTTJs1eaCID+gYS0eLYdRW W9PGkd4fn8nM495Hro7+TA7fK4iMpKU8NvJTPQcuoB4cUCYVVfylRvhgEE56lCAHkVz1 +PCJMnegVtkNycpFJUhZ0rGMWARBWgBEJrBfNPwdFFe5m4nm5AoDu6Z+SpxUl1gz3BM8 0+0g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=0ABp3sjm; arc=pass (i=1 spf=pass spfdomain=fairphone.com dkim=pass dkdomain=fairphone.com dmarc=pass fromdomain=fairphone.com); spf=pass (google.com: domain of linux-kernel+bounces-86416-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86416-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id y192-20020a62cec9000000b006e4dbfe2afesi912735pfg.333.2024.02.29.01.27.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 01:27:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86416-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=0ABp3sjm; arc=pass (i=1 spf=pass spfdomain=fairphone.com dkim=pass dkdomain=fairphone.com dmarc=pass fromdomain=fairphone.com); spf=pass (google.com: domain of linux-kernel+bounces-86416-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86416-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 38E3C28E064 for ; Thu, 29 Feb 2024 09:27:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8950F5CDF6; Thu, 29 Feb 2024 09:27:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b="0ABp3sjm" Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) (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 6E80A5B694 for ; Thu, 29 Feb 2024 09:27:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709198857; cv=none; b=OLlv93nRflg/VoqXYilbd1E2Ruy+sxTMzKIpwXpEEARa3HZLDV8FG9fVzOGAVd8lkcjj9rDuWlblkhD+8GvBcs2WbDDr3aD4YjrlINbYpEKo+W4UbMaNv83DcEdVfkz1MLU9CccJ31bwMBx8bd0ux1bEQ++II94dd3959L7LjiA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709198857; c=relaxed/simple; bh=Bt+6HUNU4JLltfZpincMFjh+g0KSkoZR27N1mCOMTAo=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=B5bICrBWTY2DkGNw2Oou6Va8jZtpHMxaB/PbNCc5QfB4PWJXboa/JidaSVL5gDCcK9MC/rRKtErz21Eshag+C7Mj3UJpGDcOzCk4r2DlhPg4WvcA/UZZvGmnIlL5Q4eVvdYNj1KrO5SIN865gvW9JYgxNbg5kor9PGceE0Gassg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com; spf=pass smtp.mailfrom=fairphone.com; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b=0ABp3sjm; arc=none smtp.client-ip=209.85.208.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fairphone.com Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-5640fef9fa6so926264a12.0 for ; Thu, 29 Feb 2024 01:27:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1709198854; x=1709803654; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=1n6ZCV67cur8e5mAju//0gzCRgXTlxNt1OqrWENqIVs=; b=0ABp3sjm5vzBfsOuhTPARKgb2GE8mw/9VtWUqPSGEMPHGlKHzx/pjscvcHWJzfjONH DIwCKPUjfKasi9JjrTJ//n+BJBLFT/GEEfXgox0I1J91iUDNTtIOkqJZDcorZW9zcWK1 JfNGtXPLyPzrGHcg5oPPL4lZ6rW8ExHwzLy6TUf0GE24Shd6kNYcCEqsmgnw6+DUdAnX QVS98YmFQHxwzOwhJjjyThw4ac29/I1rURzv0tp4CVRIJvTUWNm6WNgkAqZQqyf8rZ0v sO32jQsM3zpg68DBey53lPGGMxvFxmZjUk9/MLcpqxDx1zTo31fO0F7tBah1q5d4H+uL uw9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709198854; x=1709803654; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=1n6ZCV67cur8e5mAju//0gzCRgXTlxNt1OqrWENqIVs=; b=hZkgqvkBxgZtzThL+fjMtUVsCJIVCdeqvK2VCZtP3GsH+PC0xDfsKrqvIYtnqeUldy nyqxjc4kNxlUbccPgl2SjiwnNxDD284aCfWn13wzs0E4b7LeKl1awqdYK7ki8uCaqqeL XIZhoJCzL0EF4LBtCHdsgYlASP0ASUpSCKGeUQ822IEcTKJrm2Hw7Ww/SEEG60pyNrgL fr+sGcS278Qfa9T6iwx64ZyHyLwgvjo/on+hkdQNq58GPv9S0HrHUjV/qFUaLlQEmJOl +eYFX83EioW/6RxWqHe90wDZ0EVtGesv8FF3MaeiRIIEv5DFK2oiJTnvwSiBUwQnEF47 M6Fw== X-Forwarded-Encrypted: i=1; AJvYcCWpTvzfKLA9iuLlHwt1KkvaM4yL+rCxa0TFYHhBuAWDeHzCE8BVupfbqOC5DCsV7q1jUgjk49r/VG7ASlyMFMyvKEaWObq/t6GmOUbb X-Gm-Message-State: AOJu0Ywy7dtuqd56WdmZ3CTeJwt5eFhzfHM4Dn7+YY4qyTaSqg57NEv3 FUL1GzcHQKjHecFMgnQqXHAkJDZmxTNfPlOo2h4AJba+ZpRUtXK+0AHKq+k3usI= X-Received: by 2002:a05:6402:520c:b0:565:b4ca:72f3 with SMTP id s12-20020a056402520c00b00565b4ca72f3mr1476269edd.35.1709198853784; Thu, 29 Feb 2024 01:27:33 -0800 (PST) Received: from localhost (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id c6-20020a056402100600b0056536eed484sm436406edu.35.2024.02.29.01.27.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Feb 2024 01:27:33 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 29 Feb 2024 10:27:32 +0100 Message-Id: Cc: <~postmarketos/upstreaming@lists.sr.ht>, , , Subject: Re: [PATCH] drm/bridge: Select DRM_KMS_HELPER for DRM_PANEL_BRIDGE From: "Luca Weiss" To: "Luca Weiss" , , "Andrzej Hajda" , "Robert Foss" , "Laurent Pinchart" , "Jonas Karlman" , "Jernej Skrabec" , "Maarten Lankhorst" , "Maxime Ripard" , "Thomas Zimmermann" , "David Airlie" , "Daniel Vetter" X-Mailer: aerc 0.15.2 References: <20240111-drm-panel-bridge-fixup-v1-1-e06292f6f500@fairphone.com> In-Reply-To: On Wed Jan 17, 2024 at 9:59 AM CET, Luca Weiss wrote: > On Mon Jan 15, 2024 at 9:43 AM CET, Neil Armstrong wrote: > > Hi Luca, > > > > On 11/01/2024 13:38, Luca Weiss wrote: > > > Since the kconfig symbol of DRM_PANEL_BRIDGE is only adding > > > bridge/panel.o to drm_kms_helper object, we need to select > > > DRM_KMS_HELPER to make sure the file is actually getting built. > > >=20 > > > Otherwise with certain defconfigs e.g. devm_drm_of_get_bridge will no= t > > > be properly available: > > >=20 > > > aarch64-linux-gnu-ld: drivers/phy/qualcomm/phy-qcom-qmp-combo.o: i= n function `qmp_combo_bridge_attach': > > > drivers/phy/qualcomm/phy-qcom-qmp-combo.c:3204:(.text+0x8f4): unde= fined reference to `devm_drm_of_get_bridge' > > >=20 > > > Signed-off-by: Luca Weiss > > > --- > > > I can see "depends on DRM_KMS_HELPER" was removed with commit > > > 3c3384050d68 ("drm: Don't make DRM_PANEL_BRIDGE dependent on DRM_KMS_= HELPERS") > > >=20 > > > I'm not too familiar with Kconfig but it feels more correct if > > > PHY_QCOM_QMP_COMBO selects DRM_PANEL_BRIDGE that that's enough; and i= t > > > doesn't also has to explicitly select DRM_KMS_HELPER because of how t= he > > > objects are built in the Makefile. > > >=20 > > > Alternatively solution to this patch could be adjusting this line in > > > include/drm/drm_bridge.h: > > >=20 > > > -#if defined(CONFIG_OF) && defined(CONFIG_DRM_PANEL_BRIDGE) > > > +#if defined(CONFIG_OF) && defined(CONFIG_DRM_PANEL_BRIDGE) && def= ined(CONFIG_DRM_KMS_HELPER) > > > struct drm_bridge *devm_drm_of_get_bridge(struct device *dev, str= uct device_node *node, > > > u32 port, u32 endpoint); > > >=20 > > > .. and then selecting DRM_KMS_HELPER for PHY_QCOM_QMP_COMBO. > > >=20 > > > But I think the solution in this patch is better. Let me know what yo= u > > > think. > > > > I think this is no more the case after on linux-next: > > 35921910bbd0 phy: qcom: qmp-combo: switch to DRM_AUX_BRIDGE > > > > But could you still check ? > > On next-20240117 the error happens in the aux-bridge file instead then. > > aarch64-linux-gnu-ld: drivers/gpu/drm/bridge/aux-bridge.o: in function `d= rm_aux_bridge_probe': > drivers/gpu/drm/bridge/aux-bridge.c:115:(.text+0xe0): undefined reference= to `devm_drm_of_get_bridge' > > I'm attaching the defconfig with which I can reproduce this but it's > really just DRM_KMS_HELPER=3Dn and PHY_QCOM_QMP_COMBO=3Dy I believe. Hi Neil, Ping on this patch Regards Luca > > Regards > Luca > > > > > > Neil > > > > > --- > > > drivers/gpu/drm/bridge/Kconfig | 1 + > > > 1 file changed, 1 insertion(+) > > >=20 > > > diff --git a/drivers/gpu/drm/bridge/Kconfig b/drivers/gpu/drm/bridge/= Kconfig > > > index ac9ec5073619..ae782b427829 100644 > > > --- a/drivers/gpu/drm/bridge/Kconfig > > > +++ b/drivers/gpu/drm/bridge/Kconfig > > > @@ -8,6 +8,7 @@ config DRM_BRIDGE > > > config DRM_PANEL_BRIDGE > > > def_bool y > > > depends on DRM_BRIDGE > > > + select DRM_KMS_HELPER > > > select DRM_PANEL > > > help > > > DRM bridge wrapper of DRM panels > > >=20 > > > --- > > > base-commit: b9c3a1fa6fb324e691a03cf124b79f4842e65d76 > > > change-id: 20240111-drm-panel-bridge-fixup-5c2977fb969f > > >=20 > > > Best regards,