Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp557062pxa; Wed, 12 Aug 2020 08:27:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6KUrVIwICCSSgYfNptEza9eESt4SGF1g6cXXRZwJ1Q/cI7xKs/c42AafXg4UEow+YQEpC X-Received: by 2002:a17:906:d8ca:: with SMTP id re10mr316370ejb.382.1597246061270; Wed, 12 Aug 2020 08:27:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597246061; cv=none; d=google.com; s=arc-20160816; b=RgIJVb+ZoMNXav93bgYY1EL14mEjNLzdRWUs0CjfH0rKQxQSRewV1swpDHDk6l0WWE YWEPpJ2464oUQnrcVqh6I29CszOQAaCxsXUdl3piwXduxJgz+ATF11L2AQ44eN3RibmG dNx3Get6KTxuXWLq2kO0jUIyz1f2QR9EDn/MyQxDMFE6Z50oV8MeroXejenED9Y6HZZf ycsf12hXqkneEJGJ5cmJ3dFlsZ54073hP7qMJfYJ08K1VSUF/Km+k4d2BK/uKR++8tQ0 6l+9QGHXljV5HmtMvjECsczHSCLF1b9VlaStYU+4OwbdyRj8s220kcEyH5zOhCGZYIcw nrnQ== 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:dkim-signature; bh=TdjKGfpfVnwMoKkPgW934kp6AzuXiBbfQm38pNhYlXk=; b=qmLD7B9zT6lqTLF6vnF3bI1cGhufpFmt67lm+cPJhx+GRtCO6e+zVgOlR0GoiDI6vB HImMzKP/1FOngA2MlPVeFt64HS3MN1j09HUQ4pQELrPL8m39czdg1pA6L+wfEHWXuTke dKTIRXfX1P99D9J+G0u/R9fiLejLMwKCrPA0jgzi8KEaseb8NhGau060pt5vf79jF8lI 4YBYv+jzPhssl241pJm3MCI3ZZpgOycLVxM1+9hiBH9epONvDVFr0gWCSFmsY8MFrniP ieVogxxtSv8T0MmRrhdv2Ucf4ZohX2xNpQn2IltDjq1Ajd3VfUUfCDI1u7RV98mMC0FC P43A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=ha1ylY07; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p9si1519678edh.42.2020.08.12.08.27.16; Wed, 12 Aug 2020 08:27:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=ha1ylY07; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726523AbgHLPYf (ORCPT + 99 others); Wed, 12 Aug 2020 11:24:35 -0400 Received: from vern.gendns.com ([98.142.107.122]:40690 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726447AbgHLPYe (ORCPT ); Wed, 12 Aug 2020 11:24:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=TdjKGfpfVnwMoKkPgW934kp6AzuXiBbfQm38pNhYlXk=; b=ha1ylY07oxbxCr7PlZtnKKOs0R 9aT2k2kwEG1f4V+Vqg0mGliA8lLCar9r7HTe/AZJiLLzTX+5e0aMPgxIihlBA468nVH0GXeE1CICZ FTf9/TZegZNQ1ePVdjg8VGAGYPr1h+RQkd5Pj2axle8e4MLS+Ybj/wUdqZQuYdLpDGzkuNhCkC+Tj suFhc8t1QjwDQnguuSzC3cb7J1DRECQdU91tVU8jhiwhDlZA3440vgfkM2r4Neqv+mYBnhhKpYn3X 02F0F1XBxLhdMMHPfN7iOg+gqpdCpmPEEIa8JmicXN+FQQuwRsjllqFiiBfOGYlimCF/22OWWBUJj db/PPPNw==; Received: from [2600:1700:4830:165f::19e] (port=55728) by vern.gendns.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1k5scC-0000o0-C0; Wed, 12 Aug 2020 11:24:32 -0400 Subject: Re: [PATCH] power: supply: Add dependency to lego-ev3-battery Kconfig options To: Alex Dewar Cc: Sebastian Reichel , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Sekhar Nori , Bartosz Go??aszewski References: <20200809185444.54247-1-alex.dewar90@gmail.com> <20200812133711.ddwhxypmvr27pxdu@lenovo-laptop> From: David Lechner Message-ID: Date: Wed, 12 Aug 2020 10:24:30 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200812133711.ddwhxypmvr27pxdu@lenovo-laptop> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/12/20 8:37 AM, Alex Dewar wrote: > On Tue, Aug 11, 2020 at 09:24:10AM -0500, David Lechner wrote: >> On 8/9/20 1:54 PM, Alex Dewar wrote: >>> This battery appears only to be used by a single board (DA850), so it >>> makes sense to add this to the Kconfig file so that users don't build >>> the module unnecessarily. It currently seems to be built for the x86 >>> Arch Linux kernel where it's probably not doing much good. >> >> It would probably also make sense to add "default n" since it only >> applies to one board in the entire arch. > > Ah ok. That makes sense. Would you like me to send a follow-on patch for > this? You can just send a v2 patch that includes the change below and the additional change. > > Alex > >> >> BATTERY_LEGO_EV3 is already explicitly set to "m" in the appropriate >> defconfig file, so I don't think it would break anything. >> >>> >>> Signed-off-by: Alex Dewar >>> --- >>> drivers/power/supply/Kconfig | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/drivers/power/supply/Kconfig b/drivers/power/supply/Kconfig >>> index faf2830aa1527..9f76e2f47ac6d 100644 >>> --- a/drivers/power/supply/Kconfig >>> +++ b/drivers/power/supply/Kconfig >>> @@ -164,7 +164,7 @@ config BATTERY_DS2782 >>> config BATTERY_LEGO_EV3 >>> tristate "LEGO MINDSTORMS EV3 battery" >>> - depends on OF && IIO && GPIOLIB >>> + depends on OF && IIO && GPIOLIB && (ARCH_DAVINCI_DA850 || COMPILE_TEST) >>> help >>> Say Y here to enable support for the LEGO MINDSTORMS EV3 battery. >>> >>