Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp3303887ybh; Mon, 16 Mar 2020 20:29:29 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvxTl2BPxX4oGfVjxXdnbe3p5QTxoPdOp6qxo+Ej14DUys/ZqLwHoLV2ogxh2WuYbBsyU/I X-Received: by 2002:aca:4fc7:: with SMTP id d190mr2061322oib.100.1584415769682; Mon, 16 Mar 2020 20:29:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584415769; cv=none; d=google.com; s=arc-20160816; b=sgh8/9B/oOqK73oRuDljtPzthNHl9pOSPa4PRjiW9tljGLmdMjhw2wqYj3rT96HR8e X4LJAjH9QGvikv9hFmTsO1dn5PBb6tJpl5qCGeGiOGFmE6YIP341omhZCSaIddT9U1qe cRwxIeRGiGnzb07VCPK+1YwygohOlq4FoTjVFSUSJ5bYeoh0FOfEn5bdtDnmrBAyrHur ZzOnw9xeRNUhCT/oZTEXkwfqlxoaBfxSGsC59DmHbQ0XgFVmGW4ELuIvA7eUfAqjn2/G pTNAdrSfWRl/3mbGedacYHvx3TNmhVeTioh/VWGsO+zlcJfoUgMO3g1vP1FMLgV4fuBR y4BA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject:dkim-signature; bh=FAaAv0KAtQ+g4TsuLnEC4E5T9EN4DSzcxghQTVvaPqw=; b=IJJxzhecWy2EH3lFZqFW7nqWXf6jy7P4SN+uGQdK21mhT10XZ9LpHiMiBluQuMfV8Q LA0K46Flmsmp7/aF+H3vWmHl/ObRfVjONYo+ebYPrx6sCyFIDeBfftBwu7SC/4l+aI+Y SmqyTRCRebSGnDyUgk1+Z3kSvM2959OexzSd8RKCkM8fVm0LnCTyOf6c7fIj3+xcZVEf Kfa19fjNsxUaNT8JK1bl4zCcQFrB/2d6MEzCR92XqL9mIhi7aSxSxOH8R2+RR835826R 8BpI/83+U0vP7HCaZxNh9dInNoL5LH6drOw/jxsuPy1ipHkoHOGeRVadYbV7v6pWYQIm rs+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="WWx/4uLU"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j68si1014212otj.56.2020.03.16.20.29.17; Mon, 16 Mar 2020 20:29:29 -0700 (PDT) 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; dkim=fail header.i=@gmail.com header.s=20161025 header.b="WWx/4uLU"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726695AbgCQCcx (ORCPT + 99 others); Mon, 16 Mar 2020 22:32:53 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:42529 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726343AbgCQCcx (ORCPT ); Mon, 16 Mar 2020 22:32:53 -0400 Received: by mail-pl1-f196.google.com with SMTP id t3so8908914plz.9; Mon, 16 Mar 2020 19:32:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=FAaAv0KAtQ+g4TsuLnEC4E5T9EN4DSzcxghQTVvaPqw=; b=WWx/4uLUu+gZLifjHan2oBAScWRAOvN5ihCO++2P3H897mATH/d5cdydNK7b37c5AB SK4rr+8KMrQeWyzizz4mx6UEZlZR7ZgNYDXInGUNYR1iaMk3gPn2/5rVi0dPj/CdlUiL ltuGB+Sd19jlo0aizVpGDjUpquzdNTNc+ntdbCXPd0TKJUC8oky3SWZDGAX1mmamRjOu DYbH6Zmli8R2DxjRBek2OfN/RpHzdgvHlzJeKsNIGeqFIlzIRwf5aphWKdspRLPIDKsV BWR04/ZzxhINSvNPji+xCrMsqdN08UMdbIntpMLt2WhroWX2k4mFWYS5LpPBjmqjd1Mw etEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=FAaAv0KAtQ+g4TsuLnEC4E5T9EN4DSzcxghQTVvaPqw=; b=EeF5YRMJX2me3iuLadmKFa0nGr0EkN2LamRtnepawdN5Kjp0X5yt2H/Ib/RtWrrCus 0PEzmJunfmFnpVxykbXqOtq4030L+REN/36/HXHYIKvT9MYIKQoeuepxxvvHmUBZb2ZY dqM2jV6EfH1ZOZJaROwUJQUs2qmYG0VmxJskrAHtXq+DM75Dr4vZBVEiGpbc6KPEQklT fNdDL6vefT559ohRvG4h2PCY76FHB3xMTTSew0xTAORELuPtOh0mwaHgfaGMymaM4b+0 OeCO1MqXoDxR7vuMwMy+nKlz/uEQ523RsLoLbsg/kGEkcs/HMT/MQB0E6tCATlXVcY8H g+KQ== X-Gm-Message-State: ANhLgQ1zb8+DYiegV7ZEFA33Eal3cetwpVo8GM8k5DVVUMnBHBaOeXC6 c/PxvJW6ObaLONCicasFWzg= X-Received: by 2002:a17:90a:232d:: with SMTP id f42mr2434700pje.185.1584412370784; Mon, 16 Mar 2020 19:32:50 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id l17sm722415pgi.71.2020.03.16.19.32.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 Mar 2020 19:32:49 -0700 (PDT) Subject: Re: [PATCH V3 1/7] firmware: imx: Add stubs for !CONFIG_IMX_SCU case To: Peng Fan , Anson Huang , Alexandre Belloni Cc: Shawn Guo , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "dmitry.torokhov@gmail.com" , "a.zummo@towertech.it" , "rui.zhang@intel.com" , "daniel.lezcano@linaro.org" , "amit.kucheria@verdurent.com" , "wim@linux-watchdog.org" , Daniel Baluta , "gregkh@linuxfoundation.org" , "linux@rempel-privat.de" , "tglx@linutronix.de" , "m.felsch@pengutronix.de" , "andriy.shevchenko@linux.intel.com" , "arnd@arndb.de" , "ronald@innovation.ch" , "krzk@kernel.org" , "robh@kernel.org" , Leonard Crestez , Aisheng Dong , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-input@vger.kernel.org" , "linux-rtc@vger.kernel.org" , "linux-pm@vger.kernel.org" , "linux-watchdog@vger.kernel.org" , dl-linux-imx References: <20200316005219.GD17221@dragon> <20200316030744.GC17221@dragon> <20200316033447.GE17221@dragon> <20200316084056.GG4518@piout.net> <20200316090053.GH4518@piout.net> <20200316091541.GI4518@piout.net> From: Guenter Roeck Autocrypt: addr=linux@roeck-us.net; keydata= xsFNBE6H1WcBEACu6jIcw5kZ5dGeJ7E7B2uweQR/4FGxH10/H1O1+ApmcQ9i87XdZQiB9cpN RYHA7RCEK2dh6dDccykQk3bC90xXMPg+O3R+C/SkwcnUak1UZaeK/SwQbq/t0tkMzYDRxfJ7 nyFiKxUehbNF3r9qlJgPqONwX5vJy4/GvDHdddSCxV41P/ejsZ8PykxyJs98UWhF54tGRWFl 7i1xvaDB9lN5WTLRKSO7wICuLiSz5WZHXMkyF4d+/O5ll7yz/o/JxK5vO/sduYDIlFTvBZDh gzaEtNf5tQjsjG4io8E0Yq0ViobLkS2RTNZT8ICq/Jmvl0Spb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vtnd3xEZXQiSt91kBSqK28yjxAqK/c3G6i7IX2rg6pzgqh hiH3/1qM2M/LSuqAv0Rwrt/k+pZXE+B4Ud42hwmMr0TfhNxG+X7YKvjKC+SjPjqp0CaztQ0H nsDLSLElVROxCd9m8CAUuHplgmR3seYCOrT4jriMFBtKNPtj2EE4DNV4s7k0Zy+6iRQ8G8ng QjsSqYJx8iAR8JRB7Gm2rQOMv8lSRdjva++GT0VLXtHULdlzg8VjDnFZ3lfz5PWEOeIMk7Rj trjv82EZtrhLuLjHRCaG50OOm0hwPSk1J64R8O3HjSLdertmw7eyAYOo4RuWJguYMg5DRnBk WkRwrSuCn7UG+qVWZeKEsFKFOkynOs3pVbcbq1pxbhk3TRWCGRU5JolI4ohy/7JV1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= Message-ID: Date: Mon, 16 Mar 2020 19:32:46 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/16/20 7:18 PM, Peng Fan wrote: >> Subject: RE: [PATCH V3 1/7] firmware: imx: Add stubs for !CONFIG_IMX_SCU >> case >> >> Hi, Alexandre >> >>> -----Original Message----- >>> From: Alexandre Belloni >>> Sent: Monday, March 16, 2020 5:16 PM >>> To: Anson Huang >>> Cc: Shawn Guo ; Peng Fan ; >>> s.hauer@pengutronix.de; kernel@pengutronix.de; festevam@gmail.com; >>> dmitry.torokhov@gmail.com; a.zummo@towertech.it; >> rui.zhang@intel.com; >>> daniel.lezcano@linaro.org; amit.kucheria@verdurent.com; wim@linux- >>> watchdog.org; linux@roeck-us.net; Daniel Baluta >>> ; gregkh@linuxfoundation.org; >>> linux@rempel-privat.de; tglx@linutronix.de; m.felsch@pengutronix.de; >>> andriy.shevchenko@linux.intel.com; >>> arnd@arndb.de; ronald@innovation.ch; krzk@kernel.org; robh@kernel.org; >>> Leonard Crestez ; Aisheng Dong >>> ; linux-arm-kernel@lists.infradead.org; linux- >>> kernel@vger.kernel.org; linux-input@vger.kernel.org; linux- >>> rtc@vger.kernel.org; linux-pm@vger.kernel.org; linux- >>> watchdog@vger.kernel.org; dl-linux-imx >>> Subject: Re: [PATCH V3 1/7] firmware: imx: Add stubs for >>> !CONFIG_IMX_SCU case >>> >>> On 16/03/2020 09:08:53+0000, Anson Huang wrote: >>>>> Why do you absolutely need to compile them independently? From a >>>>> code coverage point of view, having: >>>>> >>>>> COMPILE_TEST=y >>>>> CONFIG_IMX_SCU=y >>>>> >>>>> is enough to select and compile the remaining drivers. >>>> >>>> What I meant is for below case, like using other arch config which >>>> does NOT have CONFIG_IMX_SCU selected, ONLY with COMPILE_TEST >>>> selected, adding stubs for IMX_SCU APIs can fix such scenario. >>>> >>>> COMPILE_TEST=y >>>> CONFIG_IMX_SCU=n >>>> >>> >>> Why is that an issue? If they don't have IMX_SCU selected, then the >>> other SCU driver are not selected either, having stubs doesn't change >>> that you will have to select at least one option. Please explain what >>> is the issue that is not solved here. >> >> OK, what I thought is even without IMX_SCU selected, other SCU drivers still >> can be selected for build test after adding "COMPILE_TEST" to the kconfig, >> like below, if without IMX_SCU API stubs, the "COMPILE_TEST" can NOT be >> added to SCU drivers to enable build test, so I think the IMX_SCU API stubs >> should be added? > > Forgot to mention, without stub api, for drivers with > " #include " will met compile error without > +#ifdef CONFIG_IMX_SCU > +#endif > > So we have to use ifdef CONFIG_IMX_SCU to guard the include. > Add "depends on IMX_SCU" to the Kconfig entry for those drivers, and/or drop "COMPILE_TEST" from their Kconfig entry. Really, COMPILE_TEST is abused here. I start to understand those who advocate that it should be removed. This is an excellent case in point. Guenter