Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4309323ybz; Tue, 28 Apr 2020 09:08:27 -0700 (PDT) X-Google-Smtp-Source: APiQypII048zHdcs5iZa2kJDkRzGHlhhPgJa3LN+Hn91Fj4olNLzbBRfyOwhKS8iQFO8f49cwREe X-Received: by 2002:a17:906:a39a:: with SMTP id k26mr24292479ejz.172.1588090107694; Tue, 28 Apr 2020 09:08:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588090107; cv=none; d=google.com; s=arc-20160816; b=Herq/Zwj5QVe5qBlLomaSPBrMBUY5L80L3Rq0Q7FZyAm+DMIQ3RSbnsl6i/3s47/j+ X72H2PWw1L5bv63kdK0F6bXhz7fMXn6O4f//ePJKnHsyUJJ5LLtIeYm+88b+/32hA5Mi o8A060L8ePOlCt8btUCUxwHt7IWHsZNA+xTaDqsc3Ss3VHLGhWL0C/Vukccv7KjKweaj MWffGai42Rl2TfjcGPATQ384lfc9ZLipQAuvbB3CxurOZ40b6/ZWNcHGVpksK2H/UCzv IdNzXWn08XOT/WIVe63U6DEK/bY8krbqwfbobsaYUK63jI0OqrjeRbdcrBkdgj5hihQm 1bBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=lCrPAB5PaF5D+klzpo5jD0Cevg6AbqyI8bgkeobRU0U=; b=tHuY9TQ1c3fIPiKpFWhMFTs0ix3aOog0Gr7ImojHuwWN67ZWsqlMsETsJpC6zKs9Wk BRkihjBRysffZMB6BSiEtWK8nJrYNNIE1xk9YF+uxWxNxW0UE65w3z3zqR6eyTo/NLDU 2FbIy5y1cOwztrZhvy4kxTG2ramQLLhrVVMzk79plByZuGBvzjcbwzoPAU6G+bjMCWmb +wzTVkLaD2poTakrD7nhw7dhixrhY4Ei9gmx1vD8kcZ+DAsL5hZv3+JsD17uEErHxhwG SrqVawzwr2hdyH0TLXu+bdJULds9aKZb4j3EU4TpoYxaDuL7Lwi7q2keitriWgvLW9EB Z0gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0dbcMJdk; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r3si1966786edc.405.2020.04.28.09.07.56; Tue, 28 Apr 2020 09:08:27 -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=@kernel.org header.s=default header.b=0dbcMJdk; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728182AbgD1QFt (ORCPT + 99 others); Tue, 28 Apr 2020 12:05:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:59944 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728028AbgD1QFt (ORCPT ); Tue, 28 Apr 2020 12:05:49 -0400 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 mail.kernel.org (Postfix) with ESMTPSA id 1F81D21D7D for ; Tue, 28 Apr 2020 16:05:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588089948; bh=ha74p5osPq/Fc3CF17rmXyTy7T6X5ysJvW80Tys9jaY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=0dbcMJdky6/KE5oqf7xFxKV0nvxCb348kb1V53yMGUJLFKWOd99FZ18n6s9Cczajr wdThMp0nDIOERbNXcnSnT6pkavy7nlA3ZNrb6GMRPc/rjX+ChkfWr9ZpJG5/MkQA9t W6nkvGowbT6pbDsVK2HQ+a48pjG1aiPKGAaH52XY= Received: by mail-ed1-f49.google.com with SMTP id t12so16842245edw.3 for ; Tue, 28 Apr 2020 09:05:48 -0700 (PDT) X-Gm-Message-State: AGi0PuYoEBKgeqUfmwSo5on2PX0tViB6N92ILYvH8hDmXynIdWqG4+GI oCg88XliAlh3lmtgHBP9kwNA2OaFovXQ+rCICg== X-Received: by 2002:aa7:dd95:: with SMTP id g21mr22982067edv.148.1588089946412; Tue, 28 Apr 2020 09:05:46 -0700 (PDT) MIME-Version: 1.0 References: <20200420135045.27984-1-yuehaibing@huawei.com> <20200428145507.GQ3456981@phenom.ffwll.local> In-Reply-To: <20200428145507.GQ3456981@phenom.ffwll.local> From: Chun-Kuang Hu Date: Wed, 29 Apr 2020 00:05:34 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH -next] drm/mediatek: Fix Kconfig warning 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" Cc: Daniel Vetter Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Daniel Vetter =E6=96=BC 2020=E5=B9=B44=E6=9C=8828=E6=97= =A5 =E9=80=B1=E4=BA=8C =E4=B8=8B=E5=8D=8810:55=E5=AF=AB=E9=81=93=EF=BC=9A > > On Sun, Apr 26, 2020 at 04:20:39PM +0800, Chun-Kuang Hu wrote: > > Hi, YueHaibing: > > > > YueHaibing =E6=96=BC 2020=E5=B9=B44=E6=9C=8820= =E6=97=A5 =E9=80=B1=E4=B8=80 =E4=B8=8B=E5=8D=8810:04=E5=AF=AB=E9=81=93=EF= =BC=9A > > > > > > WARNING: unmet direct dependencies detected for MTK_MMSYS > > > Depends on [n]: (ARCH_MEDIATEK [=3Dy] || COMPILE_TEST [=3Dn]) && CO= MMON_CLK_MT8173_MMSYS [=3Dn] > > > Selected by [y]: > > > - DRM_MEDIATEK [=3Dy] && HAS_IOMEM [=3Dy] && DRM [=3Dy] && (ARCH_ME= DIATEK [=3Dy] || ARM && COMPILE_TEST [=3Dn]) && COMMON_CLK [=3Dy] && HAVE_A= RM_SMCCC [=3Dy] && OF [=3Dy] > > > > > > 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. Okay, maybe the better solution is that DRM_MEDIATEK depend on MTK_MMSYS. Regards, Chun-Kuang. > -Daniel > > > > > Regards, > > Chun-Kuang. > > > > > > > > Fixes: 2c758e301ed9 ("soc / drm: mediatek: Move routing control to mm= sys 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/media= tek/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