Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp786674pxb; Mon, 25 Oct 2021 19:00:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylV+1eqr+p0fK1izgDVL8ed6if5PHVmEoEBS2K2A1lblT/3+e/mbUa11V4SlJ4sf5qOgix X-Received: by 2002:a17:906:1749:: with SMTP id d9mr27304415eje.178.1635213601734; Mon, 25 Oct 2021 19:00:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635213601; cv=none; d=google.com; s=arc-20160816; b=0dvgHBCIjJNrRymKAa+oLtYJaN59LhBNPLM+IojQJff3XB+yi7XHqoS+09LUntPqIq Ex0VIzi+Xy9CsitO+kS/CGEBSb2CkGzHFpBLIZjYOaP0dgCGCbqMML0BegxKLb3LaNCq E2n3tixLHp50rtzuH4KpoMupCiQ2f8s7n8GQYwhvdwFiWjP5JTJdbbCDD5NQ3Ihujysj f2OtHimAnj0tUvOhrinoNHetYhgZrsjAeR/sAxnBL3y7Cc6OPpGbvX4sA00xf4UOhjLD 2BbbBryxbd63ggLUd4LsqW6ZgxX9yFeHh39c3n5yd3Qtf+H+VQscYfy/8WRD6cz9+QRA 3HlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xlxx1WGK2XQMB+zaTan8F8nMEMfH0vB6DzlzOlRfLHo=; b=vs2Rvca0wX5NNkx3pXCcW7P2ixxvr+Ct7G/Bq0lafmp6xioP+VmowCu+MaxxijupTF uOIWvBr9QxmAwEhFGqswf8jzkg2FuPY9CTOqpsmyPkjWVIf8xE6w1I3ItDRqGnhxw6jb YJG+FDoX6JCgz/kKwGuydhtV4oI0q4KSHO2SnVnfnyw3B0rV713X6sVDqJoAzVpWiSGS Agj0rrXH4uCKWopxG56eXGDT1pu5EvT2WU1KGqbYB9y5GIMui7J6I4fflcFauYXA/dmz apgyhm9Ke7fME7iN1FDZgWlnH6B4qBWbOZWxT9k9UHQ6vxAYDTDp6vVz2/ckAxSXPx/Q AeYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=Sn9YIo6o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hp29si33303813ejc.435.2021.10.25.18.59.38; Mon, 25 Oct 2021 19:00:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=Sn9YIo6o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230216AbhJYWM7 (ORCPT + 99 others); Mon, 25 Oct 2021 18:12:59 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:56296 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229910AbhJYWM6 (ORCPT ); Mon, 25 Oct 2021 18:12:58 -0400 Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 5D2CA4A8; Tue, 26 Oct 2021 00:10:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1635199834; bh=MbNaK8CuKNjYoYTHfB2J31y1X/HByeHR2kqxdyuTS9Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Sn9YIo6ojBDgbh6Ea1kePcY7Efg1LGaDfwIyt498jx8qGvvL3snOzLfImVaK90Snl P3dtvqdMH6x8ZJQFiVXTIdvYQ+YIpYl2EA27lKXzto/5xRXa/g/XrbR4GKGC3XW9zP +gTVvM4yY0VGZlJ0e4xa+1buPOOVD2hZXFfjqM0A= Date: Tue, 26 Oct 2021 01:10:12 +0300 From: Laurent Pinchart To: Julian Braha Cc: robert.foss@linaro.org, a.hajda@samsung.com, narmstrong@baylibre.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, airlied@linux.ie, daniel@ffwll.ch, jagan@amarulasolutions.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm: bridge: fix unmet dependency on DRM_KMS_HELPER for DRM_PANEL_BRIDGE Message-ID: References: <20211025174202.32396-1-julianbraha@gmail.com> <2172694.EMfidFSxsr@ubuntu-mate-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <2172694.EMfidFSxsr@ubuntu-mate-laptop> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Julian, On Mon, Oct 25, 2021 at 02:51:47PM -0400, Julian Braha wrote: > On Monday, October 25, 2021 1:47:35 PM EDT you wrote: > > On Mon, Oct 25, 2021 at 01:42:02PM -0400, Julian Braha wrote: > > > When DRM_CHIPONE_ICN6211 is selected, and DRM_KMS_HELPER is not selected, > > > Kbuild gives the following warning: > > > > > > WARNING: unmet direct dependencies detected for DRM_PANEL_BRIDGE > > > Depends on [n]: HAS_IOMEM [=y] && DRM_BRIDGE [=y] && DRM_KMS_HELPER [=n] > > > Selected by [y]: > > > - DRM_CHIPONE_ICN6211 [=y] && HAS_IOMEM [=y] && DRM [=y] && DRM_BRIDGE [=y] && OF [=y] > > > > > > This is because DRM_CHIPONE_ICN6211 selects DRM_PANEL_BRIDGE > > > without depending on or selecting DRM_KMS_HELPER, > > > despite DRM_PANEL_BRIDGE depending on DRM_KMS_HELPER. > > > > > > This unmet dependency bug was detected by Kismet, > > > a static analysis tool for Kconfig. > > > Please advise if this is not the appropriate solution. > > > > Shouldn't DRM_PANEL_BRIDGE select DRM_KMS_HELPER instead of depending on > > it ? > > > > > Fixes: ce517f18944e ("drm: bridge: Add Chipone ICN6211 MIPI-DSI to RGB bridge") > > > Reviewed-by: Robert Foss > > > Signed-off-by: Julian Braha > > > --- > > > drivers/gpu/drm/bridge/Kconfig | 1 + > > > 1 file changed, 1 insertion(+) > > > > > > diff --git a/drivers/gpu/drm/bridge/Kconfig b/drivers/gpu/drm/bridge/Kconfig > > > index 431b6e12a81f..a630cb8fd1c8 100644 > > > --- a/drivers/gpu/drm/bridge/Kconfig > > > +++ b/drivers/gpu/drm/bridge/Kconfig > > > @@ -30,6 +30,7 @@ config DRM_CDNS_DSI > > > config DRM_CHIPONE_ICN6211 > > > tristate "Chipone ICN6211 MIPI-DSI/RGB Converter bridge" > > > depends on OF > > > + select DRM_KMS_HELPER > > > select DRM_MIPI_DSI > > > select DRM_PANEL_BRIDGE > > > help > > Hi Laurent, > > Either a "select" or a "depends" will resolve this issue, Mixing "select" and "depends" usually lead to be results. DRM_KMS_HELPER is a symbol that is mostly selected (I think there are a handful of occurrences of "depends", which should probably be fixed). > but most similar devices in this Kconfig file select DRM_KMS_HELPER. > Is there something different about DRM_CHIPONE_ICN6211 that I have missed? There isn't anything fundamentally different, but because DRM_KMS_HELPER is meant to be selected and not depended on, I think we should fix that for DRM_PANEL_BRIDGE, and it will fix the issue with DRM_CHIPONE_ICN6211. The dependency on the KMS helpers come from drm_panel_bridge.c, not from chipone-icn6211.c as far as I can tell, so it would also be more correct. -- Regards, Laurent Pinchart