From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=3.0 tests=FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 235D4C2D0DB for ; Thu, 23 Jan 2020 15:31:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 028A720684 for ; Thu, 23 Jan 2020 15:31:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728792AbgAWPba (ORCPT ); Thu, 23 Jan 2020 10:31:30 -0500 Received: from ns.iliad.fr ([212.27.33.1]:56996 "EHLO ns.iliad.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726232AbgAWPba (ORCPT ); Thu, 23 Jan 2020 10:31:30 -0500 Received: from ns.iliad.fr (localhost [127.0.0.1]) by ns.iliad.fr (Postfix) with ESMTP id 23CB5218D8; Thu, 23 Jan 2020 16:31:28 +0100 (CET) Received: from [192.168.108.51] (freebox.vlq16.iliad.fr [213.36.7.13]) by ns.iliad.fr (Postfix) with ESMTP id 0AFC31FF32; Thu, 23 Jan 2020 16:31:28 +0100 (CET) Subject: Re: [PATCH v2 1/2] i2c: Enable compile testing for some of drivers To: Krzysztof Kozlowski , Wolfram Sang , Jean Delvare , Jarkko Nikula , I2C , LKML Cc: Linux Next Mailing List , Kishon Vijay Abraham I , Greg KH , Stephen Rothwell , Geert Uytterhoeven , Linux ARM References: <1578384779-15487-1-git-send-email-krzk@kernel.org> From: Marc Gonzalez Message-ID: <2ef0dfb9-6f25-29c7-153b-3e4dfa15df8e@free.fr> Date: Thu, 23 Jan 2020 16:31:27 +0100 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: <1578384779-15487-1-git-send-email-krzk@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP ; ns.iliad.fr ; Thu Jan 23 16:31:28 2020 +0100 (CET) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/01/2020 09:12, Krzysztof Kozlowski wrote: > Some of the I2C bus drivers can be compile tested to increase build > coverage. This requires also: > 1. Adding dependencies on COMMON_CLK for BCM2835 and Meson I2C > controllers, > 2. Adding 'if' conditional to 'default y' so they will not get enabled > by default on all other architectures, > 3. Limiting few compile test options to supported architectures (which > provide the readsX()/writesX() primitives). > > config I2C_BCM_KONA > tristate "BCM Kona I2C adapter" > - depends on ARCH_BCM_MOBILE > - default y > + depends on ARCH_BCM_MOBILE || COMPILE_TEST > + default y if ARCH_BCM_MOBILE Why not the simpler: default ARCH_BCM_MOBILE Regards.