Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4235989ybz; Tue, 28 Apr 2020 07:58:52 -0700 (PDT) X-Google-Smtp-Source: APiQypKjS9WVuwhd4VNZyIoc3Y/OPrxCSkQ01En3nylsydnHL4dbclvylyatP7/dDhfrC5y6sujh X-Received: by 2002:a17:906:328c:: with SMTP id 12mr23617843ejw.69.1588085932725; Tue, 28 Apr 2020 07:58:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588085932; cv=none; d=google.com; s=arc-20160816; b=nZAS/tbjlDgagB+ixA3AeTuHEA+Y1LmpM6gzKF3Ve6xpTp4Ye1xl/RFf/JM6isXViQ aQ/v41faBgIVTK8I0zIjoMNoJmjLoRTYAavyJH8yWI00qvJNU85sU2KhgKflKaaYmsBs hoHs+Uu8BgUoi3m0yg0AcdAcDYz9Pl7d0RFUkvbEMJkbJkzDNQtBxA5udazwuJt8ae+b wjCK4N0jAKvyak1AnA0viDoMT3ndtncyGb5QMTtk13GEvCRWUucofPFwDuSwkMEOiPDC lTRlwDEVqSfi0yWT7kxOaF+9m+1bbb/D6YgCW6s50q16ZmS7UMhvSf75P5xGq6MrzBdc 5flg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=6jFGKnF82v8suNis8fMuokycBjbhGzKZuUKxIPnz6aU=; b=fGOgtAPwA0XbztfEAacDa163g6tBARkmjz0UpvZebvujcARB8/CtCvMO1OGR6S3Gg1 IZ9rkLbwdoKGHIz1GRSgnqLkmGgHQsUh5mb6Nh+zlGJHuKVYG12x6sH0H7iFJ/i2/95b ksNL5fqg8G7jQ8lFdQnJjLKy3VymVZ9F9PPwnqpjOz/IuubsAea8eKh+wkaTyzj6GLCr kz9x52F6595UrEXs2lH1tq40b+rMGI66nRydoc/JZ5S8rd1gClKZpNItchozdD+FQhYs j/JC2cu/KtiOwCEP9j1pWa0MyptDRfBywzNzhgSJFBQr547Z8YOkK5MqwGp4fBD7tJxm WH6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=BZjH9ieY; 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 u7si1971681ejr.522.2020.04.28.07.58.29; Tue, 28 Apr 2020 07:58:52 -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 header.i=@ffwll.ch header.s=google header.b=BZjH9ieY; 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 S1727932AbgD1OzN (ORCPT + 99 others); Tue, 28 Apr 2020 10:55:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727775AbgD1OzM (ORCPT ); Tue, 28 Apr 2020 10:55:12 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FC6BC03C1AB for ; Tue, 28 Apr 2020 07:55:11 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id x4so3135937wmj.1 for ; Tue, 28 Apr 2020 07:55:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=6jFGKnF82v8suNis8fMuokycBjbhGzKZuUKxIPnz6aU=; b=BZjH9ieYve/gpLatbRDZvJ5mYMgq6YUzTeqo/oWKI+CvmthCFiA2MHvBErEm7R56zX yGznMbgkGKeZ+H/WGkmuaje2vBjRkQceSGF3pHEBbC5mX9V583N7EswiLWe5KsmKjLY1 7ME8A6V8IBT7cX79iEnfogPbJkUN3SvScH9Gk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :content-transfer-encoding:in-reply-to; bh=6jFGKnF82v8suNis8fMuokycBjbhGzKZuUKxIPnz6aU=; b=E1C8krR5qJT7oQuKdtmtX6s55QU/DSAYxggZ4mdgFWqpmdiCabe2c4kJKo5BW7vWzq X7F4A8ZZLHumwSW8jB24xSNzORfodCW3kEKjcwHTFIFM44qdVZau3TfmAqhkrhgTW7mn zlseaognlpYwcYw590lsouxq0sfufcSMCFanGu0jNm+j4eOFAW/3QU/vZ16Iiurklv/L xxXMy6sa4IUD+W28bUGpUhgKAxkUAbfLgn3tbacUoxpOiGmwP/0JAOO6xflXYZ3vt9hD NPqc6gn+Ox5SohIGFpoN0P5ewcHFKWPklXHObss1hLnAzTOLgOtxeUt7eX51MbpoYFPJ 7Mkw== X-Gm-Message-State: AGi0PuYzYBTarI9tddOms7IHDUSgUO+znBY1ez+R8QYqfWD2N8+iDe+h iiK4O44T9bDdTy6AA5+C7tVJwQ== X-Received: by 2002:a7b:c399:: with SMTP id s25mr4825208wmj.169.1588085709816; Tue, 28 Apr 2020 07:55:09 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id p190sm3680671wmp.38.2020.04.28.07.55.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Apr 2020 07:55:09 -0700 (PDT) Date: Tue, 28 Apr 2020 16:55:07 +0200 From: Daniel Vetter To: Chun-Kuang Hu Cc: YueHaibing , Philipp Zabel , David Airlie , Daniel Vetter , Matthias Brugger , CK Hu , Enric Balletbo i Serra , DRI Development , linux-kernel , Linux ARM , "moderated list:ARM/Mediatek SoC support" Subject: Re: [PATCH -next] drm/mediatek: Fix Kconfig warning Message-ID: <20200428145507.GQ3456981@phenom.ffwll.local> Mail-Followup-To: Chun-Kuang Hu , YueHaibing , Philipp Zabel , David Airlie , Matthias Brugger , CK Hu , Enric Balletbo i Serra , DRI Development , linux-kernel , Linux ARM , "moderated list:ARM/Mediatek SoC support" References: <20200420135045.27984-1-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: Linux phenom 5.3.0-3-amd64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 26, 2020 at 04:20:39PM +0800, Chun-Kuang Hu wrote: > Hi, YueHaibing: > > YueHaibing 於 2020年4月20日 週一 下午10:04寫道: > > > > WARNING: unmet direct dependencies detected for MTK_MMSYS > > Depends on [n]: (ARCH_MEDIATEK [=y] || COMPILE_TEST [=n]) && COMMON_CLK_MT8173_MMSYS [=n] > > Selected by [y]: > > - DRM_MEDIATEK [=y] && HAS_IOMEM [=y] && DRM [=y] && (ARCH_MEDIATEK [=y] || ARM && COMPILE_TEST [=n]) && COMMON_CLK [=y] && HAVE_ARM_SMCCC [=y] && OF [=y] > > > > Add missing dependcy COMMON_CLK_MT8173_MMSYS to fix this. > > From the code relationship, mediatek drm has relation with mediatek > mmsys, and mediatek mmsys has relation with medaitek clock. > So I think it's better that CONFIG_MTK_MMSYS select > CONFIG_COMMON_CLK_MT8173_MMSYS. select is very strongly discouraged and should only be used for Kconfig symbols not visible to users. -Daniel > > Regards, > Chun-Kuang. > > > > > Fixes: 2c758e301ed9 ("soc / drm: mediatek: Move routing control to mmsys device") > > Signed-off-by: YueHaibing > > --- > > drivers/gpu/drm/mediatek/Kconfig | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/gpu/drm/mediatek/Kconfig b/drivers/gpu/drm/mediatek/Kconfig > > index c420f5a3d33b..4d9b5540de68 100644 > > --- a/drivers/gpu/drm/mediatek/Kconfig > > +++ b/drivers/gpu/drm/mediatek/Kconfig > > @@ -6,6 +6,7 @@ config DRM_MEDIATEK > > depends on COMMON_CLK > > depends on HAVE_ARM_SMCCC > > depends on OF > > + depends on COMMON_CLK_MT8173_MMSYS > > select DRM_GEM_CMA_HELPER > > select DRM_KMS_HELPER > > select DRM_MIPI_DSI > > -- > > 2.17.1 > > > > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch