Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2185752ybl; Sun, 18 Aug 2019 20:34:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqz10nhTNPALFxfgyj9phqqBpuxD8G5qEyWhFGdL1ELQWYkdL9s5idbiEd3KREWdEHhzdZU7 X-Received: by 2002:a17:90b:8c5:: with SMTP id ds5mr18985511pjb.142.1566185659991; Sun, 18 Aug 2019 20:34:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566185659; cv=none; d=google.com; s=arc-20160816; b=bQu7zXa0EutkoFLlbkGRKkGyFKVq44Cct7g0379dtg2kPtEzjYamvvmsk9qqDLPsnS 0MYqdTlA5l8y8TaYcSv+0pWw0ZJ8Wa653YRLAP16kfbLBWH56JTT3y/RpkmH0l5C9IAb u9DSZyyXyZ10ae1Crp0xTZiMTidP2OTaAvz+WZJHJovJQro6fag3QAdJshfwSH950BYg KQ2dmovjt0P3fSdRJNp4IFFg9vKfDMne4PQUgWOajD7IQDpmAMKMrKDoWm4BeSgPUAu8 kRbfgqEEmHW2z5YeHmx1pH70OKwMCNcXKaHkFSwm589CEcbp8Xq/lUPc+Gs52AU6rEZg ZqaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=3ND6DiEysS7MoM5r2NLnCQYfJl6urjtCGaOXqdzdb44=; b=Qd0YEMDVMWMb7gQzTW8s5/HPUCu+zvZ8EdrEmk6YXxiMYTrLSUJKpezjOawRqY9EtG 8maz1TVaP0WNBS/MiwPEgQ0fWrf64SPM6/4bvnSgDLt/haFW2+Yw0lbOD2uMvytQHIMA Rcqn3gThqshKHZGi6uIfBTdMctCr+3acup7b2zZQpRXv0tdPr/xB7lIGKP/SbVF6FVQR HwAwWwGqPotHoMV5iqsCm0dQqdWacakwTQ20J4fncwBk1aAistLa9tQ0pKQ2+oykFZOc 0eGHP1ANyS2JfSt4VygqIV2XDZh8Ang9SSyiMA1SDXx9bkQ130gl9gBgFYKfc8WEtRBM ZpqA== 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 d3si7974388pjx.75.2019.08.18.20.34.02; Sun, 18 Aug 2019 20:34:19 -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 S1726366AbfHSDdK (ORCPT + 99 others); Sun, 18 Aug 2019 23:33:10 -0400 Received: from anchovy2.45ru.net.au ([203.30.46.146]:36981 "EHLO anchovy2.45ru.net.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726186AbfHSDdK (ORCPT ); Sun, 18 Aug 2019 23:33:10 -0400 Received: (qmail 12459 invoked by uid 5089); 19 Aug 2019 03:33:07 -0000 Received: by simscan 1.2.0 ppid: 12386, pid: 12387, t: 0.3151s scanners: regex: 1.2.0 attach: 1.2.0 clamav: 0.88.3/m:40/d:1950 spam: 3.1.4 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on anchovy2 X-Spam-Level: X-Spam-Status: No, score=-0.4 required=6.0 tests=ALL_TRUSTED,AWL autolearn=disabled version=3.4.1 Received: from unknown (HELO ?192.168.0.34?) (rtresidd@electromag.com.au@203.59.235.95) by anchovy3.45ru.net.au with ESMTPA; 19 Aug 2019 03:33:06 -0000 Subject: Re: [PATCH 1/1] dt-bindings: power/supply/sbs_sbs-battery: Addition of force_load binding Add device tree binding documentation for addition of force_load boolean value to allow loading a battery during boot even if not present at that time. To: Rob Herring Cc: sre@kernel.org, mark.rutland@arm.com, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <1564037445-22936-1-git-send-email-rtresidd@electromag.com.au> <20190816211430.GA8175@bogus> From: Richard Tresidder Message-ID: <1baa2fe9-7649-f70a-9076-5b49464ae1cd@electromag.com.au> Date: Mon, 19 Aug 2019 11:33:03 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190816211430.GA8175@bogus> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-AU Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is a force load option when loading the driver as a module. This adds the equivalent methodology for the binding path. Though I suppose you could in fact just force load if the gpio detect isn't present. Thats a good idea, just wasn't the existing driver flow. I can't think of any reason why we couldn't do that though. I'll update the patch and resubmit V3 Will add a note about it in the docs Please note I'd submitted this incorrectly when using our patch script last time, it's now correctly part of the combined patch Regards   Richard Tresidder Richard Tresidder ** On 17/08/2019 5:14 am, Rob Herring wrote: > On Thu, Jul 25, 2019 at 02:50:45PM +0800, Richard Tresidder wrote: >> Signed-off-by: Richard Tresidder >> --- >> >> Notes: >> Add device tree binding documentation for addition of force_load >> boolean value to allow loading a battery during boot even if not >> present at that time. >> Accompanying patch to drivers/power/supply/sbs-battery.c submitted to linux-pm@vger.kernel.org >> >> Documentation/devicetree/bindings/power/supply/sbs_sbs-battery.txt | 4 +++- >> 1 file changed, 3 insertions(+), 1 deletion(-) >> >> diff --git a/Documentation/devicetree/bindings/power/supply/sbs_sbs-battery.txt b/Documentation/devicetree/bindings/power/supply/sbs_sbs-battery.txt >> index 4e78e51..187d7bb 100644 >> --- a/Documentation/devicetree/bindings/power/supply/sbs_sbs-battery.txt >> +++ b/Documentation/devicetree/bindings/power/supply/sbs_sbs-battery.txt >> @@ -15,7 +15,8 @@ Optional properties : >> after an external change notification. >> - sbs,battery-detect-gpios : The gpio which signals battery detection and >> a flag specifying its polarity. >> - >> + - sbs,force-load : Allow loading of a hot-pluggable battery when there is no >> + GPIO detect available and the module is statically built. > What's a module? That's Linux specific and nothing to do with the > binding. > > Can't you just force load if sbs,battery-detect-gpios is not present? > > Rob > >