Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp777342ybl; Thu, 23 Jan 2020 07:34:09 -0800 (PST) X-Google-Smtp-Source: APXvYqyEfbklZyDYcGO7BSVOnrcXiHEc/xLIf7WRCUcrXvukFVyh+pmbtFGVUm4RDoKRV2oYFIKF X-Received: by 2002:aca:d78b:: with SMTP id o133mr11069045oig.163.1579793649558; Thu, 23 Jan 2020 07:34:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579793649; cv=none; d=google.com; s=arc-20160816; b=ERoOsWrtjVtwKpQYhECyiDYef7HCquZ0uAmsxpDCTKXK4XdAII9OqEiGjhGaZEfj6x Dql7h4c473lvR9jWs7P7J5YQz5cWyCkDo4uTq1H+1b24Da1eXZYAFceaeJHd+fC3rqpP AnAS/z2wjivjsTROvZGDPBMqMMhKUXc2rnz9JBUO/lYfIBW78LXP9GKuppa+ipy43ITE HbizBKQAta9UJDPleODX50S5m1EI8FXDk4x/cwyrC9mBCWqg5kkJtdpr/P0BsozqwIo/ lLmOUEOuAnomIVDP5bUBja5tW8gjfLoSxUxYM9KywQyi0gUcdHMCYdE6D0idMFq3ElRD pF+A== 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:from:references:cc:to:subject; bh=X31Z6aRE4HaqzDNg0GnKxUzsV2qTneUpB/DLdFjEgb8=; b=SCwJ8x0On5U9Xr2wLKPJvgTXKabdg5UK7uuGRDC49XoTnPehU0ejlg/YWBKqV4cAbA 4dqdN586HgWmgvYqQjhnHVQmYWDY5Sww2iFsp34OTl93zt1T8UhNXXNEqwDzRl0CPgEc b0+ukFKRP5aYENeYLCioSpTAs0/DPIujdkPpZtHajItLZeTjqYpXD/TQHSpiniLlV04k qs5qkbcq2unceRt0rf9afcRUhcTEtTFuWGn/B4dO9KWq4DzxckS+uZJStmQCzsRocUj5 UWbFKHxCpj/YcmIVTfD06HALRKRCDgmB/2JkwXDwcSBz5KJJ8w/6FWDsBpc7iJLRkyUN Bf6Q== 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 n63si956571oib.210.2020.01.23.07.33.57; Thu, 23 Jan 2020 07:34:09 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728655AbgAWPba (ORCPT + 99 others); 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.