Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3238082ybf; Tue, 3 Mar 2020 02:11:17 -0800 (PST) X-Google-Smtp-Source: ADFU+vvs9+u32+GwUblsrwtXeJSn2WiqR+XQxse3pdlsJAfu8LrgLZHslk4q8ftgJpx10d8nx+qi X-Received: by 2002:a9d:5d0:: with SMTP id 74mr2794467otd.256.1583230277349; Tue, 03 Mar 2020 02:11:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583230277; cv=none; d=google.com; s=arc-20160816; b=dJrJ5yrF4W/qOuINX0qB1ze8apR6VVNp9Bo3mx8J+2Na7R9apbcuFw9B2HBJuyBcUy FPRYYNGeZO1uFxW+9qvjAXxKQusE5iAuJLEsIYcLMVnck8DqyGvGHV1bV7xyzrd5y2Iq WLGrwB8kthLZAp9XHffPkS4pMjVY20iNWsgH0bCK6S6TFF60W3lfWmiooXinVgcsL16S 7VGCu4kNa3ohkJe2kqZHPG3uSkinNaVn4brRc8t8SSfQVQigqtZLkbeHB8gMeF8MzQcG tIi7jqfxuOkwR9N/iv3eTt+77k9ivRBDjMRjcScwM+YA/cBwPb9sa7KU9tQBGUF6zP9R me0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=N15qvTWdfwgGRIeSs/QXS0Tyx9rAvwMI+NfKnOfQKvw=; b=MLo7h1oDovPFBUFnSk38zDHRw22vBseILAEAPeyoLkJr+3OlWNoIMTsLT3h/2Q9hNr ayVNp6ocuq/5d7/ZJ1Sp2kvPdtiPLiB3L962vbPwdUKtJq3ovTL22MfhaLNy8qhZPA44 hbqgkKKgUddmKLDUQxTZ54ExeV+pB07c/+g3IfBLlhjolzeN7pY+cKccTeyMnAIGZnFf G3aHn1RqQKYauVa/3H9+yH2kseyVD/la+tJJaQBMJ0fhnZAlNnc9UBKA8wFpv3EFX5Yi ssPgqr2i1lDwnxdkDdi1lxYPsrkfebjjI/YONTNDAXQCRG8IIwiezB360yak8NwxO4y3 4itg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q126si7020316oia.8.2020.03.03.02.11.05; Tue, 03 Mar 2020 02:11:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728327AbgCCKJi (ORCPT + 99 others); Tue, 3 Mar 2020 05:09:38 -0500 Received: from mga05.intel.com ([192.55.52.43]:21993 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727820AbgCCKJi (ORCPT ); Tue, 3 Mar 2020 05:09:38 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Mar 2020 02:09:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,510,1574150400"; d="scan'208";a="351792132" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga001.fm.intel.com with ESMTP; 03 Mar 2020 02:09:34 -0800 Received: from andy by smile with local (Exim 4.93) (envelope-from ) id 1j94Ua-006WAi-JV; Tue, 03 Mar 2020 12:09:36 +0200 Date: Tue, 3 Mar 2020 12:09:36 +0200 From: Andy Shevchenko To: "Tanwar, Rahul" Cc: Randy Dunlap , mturquette@baylibre.com, sboyd@kernel.org, robh@kernel.org, mark.rutland@arm.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, qi-ming.wu@intel.com, yixin.zhu@linux.intel.com, cheol.yong.kim@intel.com, rtanwar Subject: Re: [PATCH v5 2/2] clk: intel: Add CGU clock driver for a new SoC Message-ID: <20200303100936.GL1224808@smile.fi.intel.com> References: <6148b5b25d4a6833f0a72801d569ed97ac6ca55b.1582096982.git.rahul.tanwar@linux.intel.com> <4fb7a643-cbe1-da82-2629-2dbd0c0d143b@linux.intel.com> <20200227100239.GD1224808@smile.fi.intel.com> <12c16eb0-04aa-79cf-fa76-3f45b8972319@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <12c16eb0-04aa-79cf-fa76-3f45b8972319@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 03, 2020 at 11:37:23AM +0800, Tanwar, Rahul wrote: > On 27/2/2020 6:02 PM, Andy Shevchenko wrote: > > On Thu, Feb 27, 2020 at 03:19:26PM +0800, Tanwar, Rahul wrote: > >> On 19/2/2020 3:59 PM, Randy Dunlap wrote: > >>> On 2/18/20 11:40 PM, Rahul Tanwar wrote: > >>> > >>>> +config CLK_LGM_CGU > >>>> + depends on (OF && HAS_IOMEM) || COMPILE_TEST > >>> This "depends on" looks problematic to me. I guess we shall see when > >>> all the build bots get to it. > >> At the moment, i am not able to figure out possible problems in this.. > > COMPILE_TEST should be accompanied by non-generic dependency. > > There is none. > > > > So, I quite agree with Randy. > > I see COMPILE_TEST is mostly ORed with ARCH_xx. How about below? > > depends on OF && HAS_IOMEM && (CONFIG_X86 || COMPILE_TEST) How about to leave logical parts separately? How is OF related to architecture? On top of that, is this code only for x86 for sure? > >>>> + select OF_EARLY_FLATTREE > >>> If OF is not set and HAS_IOMEM is not set, but COMPILE_TEST is set, > >>> I expect that this should not be attempting to select OF_EARLY_FLATTREE. > >>> > >>> Have you tried such a config combination? > >> Agree, that would be a problem. I will change it to > >> > >> select OF_EARLY_FLATTREE if OF > > Nope, I think this is wrong work around. > > See above. > > With above proposed change, i can simply switch to > select OF_EARLY_FLATTREE since all dependencies are already > in place.. Right. -- With Best Regards, Andy Shevchenko