Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp5061932pjb; Mon, 27 Jul 2020 11:56:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcDMko9YLiNKOUbLs/IsfkEoLW4Xz+7QxI0c4tJrCDA5J1iSR/W27mbgQ2UapUy/OK1e4U X-Received: by 2002:a17:906:430a:: with SMTP id j10mr21529605ejm.163.1595876215054; Mon, 27 Jul 2020 11:56:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595876215; cv=none; d=google.com; s=arc-20160816; b=lvdzikNoVDMzOcZZuYVYclxcpC9VjOO3Qm29smOKA20PFGdD5JS7X2Ct8jsIpoOvIF Is/XH2kER25H0+/iq9Au7oMhNNux0CCXqLMqCDF7hmoJComEAEOcRsPE0TXBKvVNPI0Q gLbMIs5mj0zDkpBv9kUTJZWBc1G7LS96tIUVrFBOkC5ZXaxCo7ZVm8PZuKSWHaMzITiv V9FxGGZ0OLgWYrwnzGkoeLmiHJU6ruNj7HILPfOUkjytYLrBpTUizyyX6y/vIFD4/Pyt iJStBDX5uQzcNJOw/HXnRnuynM3QM7JlTGIqjwCxyuKlBsprOgHKY66pxTTeewyPF/sT 5Qkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=1UWXuVxrTXPn2/C98wkkf6EevtHV1S1R04GoKomRKLw=; b=f6/OD5BhzzPKZCd9z3vYKhvtAEZn8M2qhjCeDNtFY+kZDbr2ZvthQXYGlDp+9ZGGgR kmWxDMCArd1zQ8Mme+8/d5hnKNNvkEl86/Vrk4hHadmoMQ9xerrEqN2NEjVlfngGg5GH kOdYb1qYblLFbHFyWg6Y8F2CGobUpTReCY58v4HAPpkDmHTHQlHZK6CMG8Rpb5T0Pvb8 AgQQyvmUn0E3EaT/WNjoFJsF68j/VpmXBBRupG5aKEXyaBvkSBfT6xu8wJNUcrzKrKs+ txarcd9iUyZoaZwuV5QQL1g9XlCEygR9/CtRImSQz4idNzih+Z/h+0WYCTaFIzehBJQa 9deA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@solid-run-com.20150623.gappssmtp.com header.s=20150623 header.b=R7lqQ6pN; 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 v22si5946982eji.185.2020.07.27.11.56.33; Mon, 27 Jul 2020 11:56:55 -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=pass header.i=@solid-run-com.20150623.gappssmtp.com header.s=20150623 header.b=R7lqQ6pN; 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 S1729380AbgG0RF1 (ORCPT + 99 others); Mon, 27 Jul 2020 13:05:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728626AbgG0RF0 (ORCPT ); Mon, 27 Jul 2020 13:05:26 -0400 Received: from mail-ej1-x644.google.com (mail-ej1-x644.google.com [IPv6:2a00:1450:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30D9AC061794 for ; Mon, 27 Jul 2020 10:05:26 -0700 (PDT) Received: by mail-ej1-x644.google.com with SMTP id dk23so5945735ejb.11 for ; Mon, 27 Jul 2020 10:05:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=solid-run-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1UWXuVxrTXPn2/C98wkkf6EevtHV1S1R04GoKomRKLw=; b=R7lqQ6pNyaOi81+mhqvokLJeiXUFPNBwC3xsKxqjGxZb/k31uk7EKn6BoAnyjvbn5S umAchjm85d039omd9hPDmJX7TMsYmZd7fl7WCzCJNXIOxmYMpU2UG/d2A3DnuJV9jYkw HObkH8Tmtp3IlcOzSTwxKikid7ELzMjZcxWKX33SujUJUYjb1QcP23NVg6b2Z9j9rPnB PhaYFjPvHYlQS48MvUQ11ajUsuyb5p2iTQbx/NB402O1P8e4jeMxVmbk/tY/Bn65r3kh ibrzMKa53e3v1LP/eUFspBJbYORDRyf1V7s/OyEPLKdFiyAAQLQZIHw2elVliGPuU5vk FpQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1UWXuVxrTXPn2/C98wkkf6EevtHV1S1R04GoKomRKLw=; b=AXFMzJFLwvOHdH+Qm6dbXo1TITHujl7/km4ypYlSjCSwQROKnA7jwZ91+aP1naM71A sl2Ub2S2QTRgBrhQ5jxGi2XtR1zRreHTu6vjky4qjLqozJfpzg+tpgfZlK8vrVyOn15C nlG7aPXpNWwtLcxMmVUMbyuJ7Pph2BZcfGebJOstYOKwZ5G2VmrXBEq6VgspcC4gCRpW od85+UA9M1FdxBmRR/xczmMd8PKn9/FD2XOoVlZP5zeyU61hdiGz2Y9lLiwzHjpNDnAM O3PIoKdlYhvvkzmhRxu2dSUUQk1rpe/mGZlnj2EAXBt/2B7sN1LRR1wUecwZpjf0eGpX C09A== X-Gm-Message-State: AOAM533U80lkfrow5vfa69D22FhDc1cIIV26pA+/4Pvk1R/Lx4ZV8PMi 9dzkpl5QGHv49Ihc/6Q6+IRwjvKWKyKmLB8PcWLrJw== X-Received: by 2002:a17:906:cc48:: with SMTP id mm8mr20323361ejb.132.1595869524926; Mon, 27 Jul 2020 10:05:24 -0700 (PDT) MIME-Version: 1.0 References: <20200720112401.4620-1-miguelborgesdefreitas@gmail.com> <20200720112401.4620-2-miguelborgesdefreitas@gmail.com> <20200723174905.GA596242@bogus> <20200723195755.GV3428@piout.net> <20200727094553.GH1551@shell.armlinux.org.uk> <20200727144938.GC239143@piout.net> <20200727152439.GK1551@shell.armlinux.org.uk> <20200727154104.GE239143@piout.net> <20200727154335.GL1551@shell.armlinux.org.uk> <20200727161632.GF239143@piout.net> In-Reply-To: <20200727161632.GF239143@piout.net> From: Jon Nettleton Date: Mon, 27 Jul 2020 19:04:48 +0200 Message-ID: Subject: Re: [PATCH v2 1/3] dt-bindings: rtc: pcf8523: add DSM pm option for battery switch-over To: Alexandre Belloni Cc: Russell King - ARM Linux admin , Rob Herring , Miguel Borges de Freitas , a.zummo@towertech.it, Baruch Siach , Shawn Guo , Sascha Hauer , Sascha Hauer , Fabio Estevam , NXP Linux Team , devicetree , linux-arm-kernel , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 27, 2020 at 6:16 PM Alexandre Belloni wrote: > > On 27/07/2020 17:55:50+0200, Jon Nettleton wrote: > > > So, can we please have that discussion, it is pertinent to this patch. > > > > > > > Thinking about this some more, I believe whether or not an IOCTL > > interface is in the works or needed is irrelevant. This patch > > describes the hardware and how it is designed and the topic of > > discussion is if we need a simple boolean state, or if we need > > something that could be used to support dynamic configuration in the > > future. I would rather make this decision now rather than keep > > tacking on boolean config options, or revisit a bunch of device-tree > > changes. > > Something that would describe the hardware is a property telling whether > the filter is present on VDD, not a property selecting DSM. The driver > can then chose to avoid standard mode when needed. > The filter being present or not is not the singular hardware requirement for making this determination. There is no reason to make this some obtuse argument. There are two states and you may want one or the other, or the ability to switch between them. This is a flag to tell the driver how the hardware should be configured based on the board preference. Let's find a simple consistent way to do this.