Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2380167ybh; Mon, 16 Mar 2020 02:01:46 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtlmeU1Rmg+jf42sBrqOfrWABltSdnTF0t/FD2hlShlT/Fw5Z+CbLBdWO8V5YNx9RXLh8nW X-Received: by 2002:a05:6830:456:: with SMTP id d22mr6518873otc.138.1584349305878; Mon, 16 Mar 2020 02:01:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584349305; cv=none; d=google.com; s=arc-20160816; b=JkodrbBYnHnHCJ8O0l6BqOZpZhBhLrQBgpA15rQvJP4oEnWD/ougGvgoCBnWxNFOnY m1JtRurXH6XW6GaVTa6CJ+BLLFCdmtopVBYqMbleNl4t3iFntWoxoMaf//RO11077Bpb VvLQFkFsaaGDFjuGY8eHJWEMzVuoXRt2qUR98ljSm+xebW7e5ZL8buuQEGdwm6Y/XncF GnQhqeUw3eGjTNOPg7UmJsc4ByFBTJ4hvFuwbjyRLk3QFhzb6y0x/I7OMi2bqJHCZ0bb GYyENotKM7S7UtTTGN7uQAYTds/UGtKYqVl6MMaf2l+DxweiKNxPTU3hfYM7FJwrz8/Z ReIw== 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-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Y/ukh3f6JBEIoCKu5GVZEbjlA9I8MWxgOYhyc71JsEY=; b=VNvLGq7QOqJf//OBbtLLqpS51bKrYnDfE8C9V3IdEtY0VE+lklTxmEoARl9lr5Mmju Z7FJ5Dzgc8fXt/rXlwpj/ZosAhdTzQdo4eiOwHQTjdND9twhqpPRa5mZIZjsA1oNnNUl 6guBOJsjoJ4VpVLv7942V+3IoV0Z5x9U0YwBAKfO1fSdqTAnB8NPgiklun0pR+6h+nNr d+aaiQdF1cqD6qD8VKS5zSj7UQhwFNBF70T1Yei1UWKZ+g8/y3WveBUbOOYuptYBq+t2 YIhLsy+1/KUy1FrpCJ1ApTtiUXD2LKXmBp7rHYnCo/UbIWdTiCmxNMCt+lqmVJY+2Ec6 EQ/g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c14si9782848otm.146.2020.03.16.02.01.31; Mon, 16 Mar 2020 02:01:45 -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; 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 S1730342AbgCPJBA (ORCPT + 99 others); Mon, 16 Mar 2020 05:01:00 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:64591 "EHLO relay1-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730317AbgCPJA7 (ORCPT ); Mon, 16 Mar 2020 05:00:59 -0400 X-Originating-IP: 86.202.105.35 Received: from localhost (lfbn-lyo-1-9-35.w86-202.abo.wanadoo.fr [86.202.105.35]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id B1587240004; Mon, 16 Mar 2020 09:00:53 +0000 (UTC) Date: Mon, 16 Mar 2020 10:00:53 +0100 From: Alexandre Belloni 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 Message-ID: <20200316090053.GH4518@piout.net> References: <1583714300-19085-1-git-send-email-Anson.Huang@nxp.com> <20200316005219.GD17221@dragon> <20200316030744.GC17221@dragon> <20200316033447.GE17221@dragon> <20200316084056.GG4518@piout.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16/03/2020 08:44:10+0000, Anson Huang wrote: > > > > Subject: Re: [PATCH V3 1/7] firmware: imx: Add stubs for !CONFIG_IMX_SCU > > case > > > > On 16/03/2020 08:04:17+0000, Anson Huang wrote: > > > Hi, Shawn > > > > > > > Subject: Re: [PATCH V3 1/7] firmware: imx: Add stubs for > > > > !CONFIG_IMX_SCU case > > > > > > > > On Mon, Mar 16, 2020 at 03:18:43AM +0000, Peng Fan wrote: > > > > > Just sent out. One more thing, I think all drivers depends on > > > > > IMX_SCU should not have COMPILE_TEST if we plan not to add dummy > > > > > functions. I see you picked up Anson's patch in imx/drivers branch, > > please check more. > > > > > > > > Ha, yes. COMPILE_TEST should be dropped for IMX_SCU_PD in Anson's > > patch. > > > > Thanks for reminding. > > > > > > I still NOT quite understand why we won't support COMPILE_TEST for SCU > > > drivers, with whose stubs, the build should be OK, if there is any > > > build error, we should try to fix it, NOT just remove the COMPILE_TEST > > support, any special reason? > > > > > > > COMPILE_TEST is supported as long as IMX_SCU is selected like is it for any > > driver depending on any bus. > > But without having " || COMPILE_TEST " in kconfig, COMPILE_TEST will NOT be supported, > I think as long as we have stubs for those SCU APIs, all drivers depending on IMX_SCU can > support COMPILE_TEST independently. > 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. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com