Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4585065pxb; Tue, 5 Oct 2021 06:17:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTDN144jZmu5ApMD+R0nwRXTz85iqktm1rPtZL5u8QDkGij0pD2+UMuI6DJdHG5q5ltfiw X-Received: by 2002:a7b:c351:: with SMTP id l17mr3449321wmj.120.1633439878068; Tue, 05 Oct 2021 06:17:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633439878; cv=none; d=google.com; s=arc-20160816; b=FwJ5IVKbKZUWyw7vj3GVZLZ564QX2hi5afDcZlO49OOVO/YyrYLXwXpNtRT0UpglV9 RcCrOH9jfPQhLD9zNqMB/hXKmSGNPGE+Nv537y+1qwZ2bW4is4S7oWWdmwBoshwPhr02 F/Goz97OYSczz1bmJj5b6C8ylMvKghXccNOdpgkFz5eAV0Nwol4qWv+mVLYzNpq7tBuI A+NKFSVzzph7V8QDjZnJiRUuU6aKT2JsAhKCytWz9nYVaFhVRfLj724/VRGCqeeNb79r 9gIMp3FwpSl7IglNR0i0bCh/0YoDLi0V10aAlxw9aXBdn09o747PE1CjvqXTKaFW4RLt KvUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=M2VAujEiqdjO3Osl0q8IVZz/7xv/kMW9ywzOp8W8Slo=; b=sFXhYDmNQM4BO3bCFW+swtioeWCI7zpoKowRAlql5G1aaHk5k41oILa2l24DRUqdXd OcnDRjXYGjF8G3NVWL3kBQhSXBf9GA3lu4hmwKOdoqKJlaekKFVy70p2mRy95Ct0lBtE D37wKwxAd7/7hoLIwNSoDyheNlqwFzBi+3DKq8sjFNkGIN279gtXF3sZCM0hqikbOPR8 KhCjCJdwLh480MxjBK6HEHU08QLAdfyMyhNhAHGyPSv0Mtx30G8VRzX1J6tC2fnWhtOA dLbOXU2h6jnhyb3zGk6kKKcM2ypl63TjwgY70X4A8gXxmPPAIbG9mRtdgHltt3I59LJu Lkhg== ARC-Authentication-Results: i=1; mx.google.com; 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 3si21751805ejq.564.2021.10.05.06.17.33; Tue, 05 Oct 2021 06:17:58 -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; 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 S234959AbhJENRc (ORCPT + 99 others); Tue, 5 Oct 2021 09:17:32 -0400 Received: from hostingweb31-40.netsons.net ([89.40.174.40]:40403 "EHLO hostingweb31-40.netsons.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234919AbhJENRb (ORCPT ); Tue, 5 Oct 2021 09:17:31 -0400 Received: from [185.56.157.72] (port=34808 helo=[192.168.101.73]) by hostingweb31.netsons.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1mXkIF-00GPVT-64; Tue, 05 Oct 2021 15:15:39 +0200 Subject: Re: [PATCH 2/2] power: supply: max77976: add Maxim MAX77976 charger driver To: Randy Dunlap , linux-pm@vger.kernel.org Cc: Sebastian Reichel , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20211004130732.950512-1-luca@lucaceresoli.net> <20211004130732.950512-2-luca@lucaceresoli.net> From: Luca Ceresoli Message-ID: Date: Tue, 5 Oct 2021 15:15:37 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hostingweb31.netsons.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lucaceresoli.net X-Get-Message-Sender-Via: hostingweb31.netsons.net: authenticated_id: luca+lucaceresoli.net/only user confirmed/virtual account not confirmed X-Authenticated-Sender: hostingweb31.netsons.net: luca@lucaceresoli.net X-Source: X-Source-Args: X-Source-Dir: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Randy, On 04/10/21 17:28, Randy Dunlap wrote: > On 10/4/21 6:07 AM, Luca Ceresoli wrote: >> diff --git a/drivers/power/supply/Kconfig b/drivers/power/supply/Kconfig >> index ad93b3550d6d..622d690c883a 100644 >> --- a/drivers/power/supply/Kconfig >> +++ b/drivers/power/supply/Kconfig >> @@ -557,6 +557,17 @@ config CHARGER_MAX77693 >>       help >>         Say Y to enable support for the Maxim MAX77693 battery charger. >>   +config CHARGER_MAX77976 >> +    tristate "Maxim MAX77976 battery charger driver" >> +    depends on REGMAP_I2C >> +    help >> +      The Maxim MAX77976 is a 19 Vin, 5.5A 1-Cell Li+ Battery Charger >> +      USB OTG support. It has an I2C interface for configuration. >> + >> +      Say Y to enable support for the Maxim MAX77976 battery charger. >> +      This driver can also be built as a module. If so, the module >> will be >> +      called max77976_charger. > > REGMAP_I2C is not a user-settable config option, so drivers should not > "depend on" it. This should be more like: > >     depends on I2C >     select REGMAP_I2C Ouch, thanks for spotting, will fix in v2. -- Luca