Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2398587ybh; Mon, 16 Mar 2020 02:23:07 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvYug5bj90AyTg96WBTRxBU1skmX0e4Ki/d80NI6lfOpG9TIE3y2fD7LbYWwSp36YWW6RSA X-Received: by 2002:a9d:2aca:: with SMTP id e68mr22048782otb.324.1584350587683; Mon, 16 Mar 2020 02:23:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584350587; cv=none; d=google.com; s=arc-20160816; b=cluIlLwfzSXsRmnLPwNh3+mZfHINrlOj57fdKvP9poxhbvTCMPotUwV4aR7tWOlrEG 76weDUr5F0hBTR0gwg+SPxnLTimvkOOfYCMI5nnlZ3Altq7Erl49o7FD4feiHh5pPXtx hnwO1Jp5Sd5+U/OhTvJ/HV5ABJ3JG5ZzkRfYBSQ5iO8F5Q1TdPOSSIv4zf/aywZXWNaa eTWLb3Sk+H1FY1b/rcE+7dNFKAQmJ/iawbU9GBAekXacgr0CJGMAO1ws4OT/S+Jup35h vBsGrbQRNG0yGmbGYIV3G6hb3skzrDHwfFfzXlL/oNE4vHbpoKqp9qDf2aayR3F6tQF/ vBWA== 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=BFDmsOLjoDTBUYs44mdwZbvCbAi4rXGbJleQMwO+Jc4=; b=rYKbxDR3bUyiALrWGvs+4chuAr8RBYNQzWxVCgpEpMemgQiwmbDdoH8BaGCSHbfw1u HTLzzn5b4GnbHAPKJUdqJ8fHLjL6RjK80G6duUweS+ILvBJTOGWkPHcSsh7jLwi8VnNm BFGMC23KT8i2ep6/QDZ6SXcxCwtUH4L1Nz66OZ56J7fHe44XcYpBgiLeIMCASjQa3jvV acY/GkO3SX5YpFtqZHeBtMBY4NIFWYVRSoUkI409xPxamNel9fGeqmJVVh0KCvokWsyy VaDBaoxHl+QihHfCYNtVzaBHTlMsb2LLms9+brVzfWIAib3/Ni4NQxefyWyMEps5LwSp wWCA== 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 w19si7550933oic.35.2020.03.16.02.22.55; Mon, 16 Mar 2020 02:23:07 -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 S1730357AbgCPJWY (ORCPT + 99 others); Mon, 16 Mar 2020 05:22:24 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:46819 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730152AbgCPJWX (ORCPT ); Mon, 16 Mar 2020 05:22:23 -0400 Received: from localhost (lfbn-lyo-1-9-35.w86-202.abo.wanadoo.fr [86.202.105.35]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPSA id F1229240035; Mon, 16 Mar 2020 09:15:41 +0000 (UTC) Date: Mon, 16 Mar 2020 10:15:41 +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: <20200316091541.GI4518@piout.net> References: <20200316005219.GD17221@dragon> <20200316030744.GC17221@dragon> <20200316033447.GE17221@dragon> <20200316084056.GG4518@piout.net> <20200316090053.GH4518@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 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. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com