Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp17517ybg; Mon, 27 Jul 2020 14:14:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrKlf0vYSI2TQ0ejmH0Mw6qUnWZdQ4yqnMZjls7aq3BAGrdOuqBxmyOonuhjoVdL6eEMY4 X-Received: by 2002:a17:906:fa15:: with SMTP id lo21mr21029786ejb.42.1595884466920; Mon, 27 Jul 2020 14:14:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595884466; cv=none; d=google.com; s=arc-20160816; b=bVGH/z+An37IGZoD/KuXHOFPpldPoCW6whsnZa0zzcRWBbP4k0HpwFzPDbztWZypGz vTwhYc3zmHq0pm7aY9/vbx1/VpsFS2+hCobJHh/e55fAJhq4vfdnirqlGYv47uzz4jwy MpML+zfgiHh9pjCOK3D93DT5+C/fxMN2NcCcn0agFGVil9bMyJ2QxBmm9lzr7bcbw7mT LkVhE72iVCy2K5JLAlXh7BycW0NWLaIOzK52U45pHFsaVvohFIxe0cyjwOp2mD2ZeDLC hxD7iB8bYYo3pYi+2Xu6xL0gVGEodGIbsh+ZPnxVjP9cuo6cEO3nibi+lr4PCkjm0S/B BqcQ== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Xi8D6LIwsxs0KNLAaqairags+EWlCXEvsyTkAbsZmKs=; b=u0XmElAxf1zN23VV8XCQY0Zfwx2tt4xykDsBOQxGR9IoBNuj4meGBKInvXLvXa1VB+ rKjWhK11ck2GnE7n4k3ERgDLuApYSxpIziKFvWe2zsHWpeyGkFVAs9m3VoFXjCKNgLat aZiZ1BbtsfK+aTKTT33UTpnEwXWSLtHP+OeaB/Ohe0LP0ycKHz1jHepjSShZHJ+Po227 pPvQdlbTyFmbwktFK+xJnPnJrZiPabqw5jcJ+chULJWp95dC/Ogudz1UUn4VEWwE/DA0 +NlzjAedr2ysqxiEtJPnITSZIaYQvlCCI1Nv2BQDh4/q2MtPHLBHHoKZsQ2ctxtvOzve JtPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TuLyPU3X; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cn9si6123538edb.325.2020.07.27.14.14.05; Mon, 27 Jul 2020 14:14:26 -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=@gmail.com header.s=20161025 header.b=TuLyPU3X; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726278AbgG0VNz (ORCPT + 99 others); Mon, 27 Jul 2020 17:13:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726139AbgG0VNz (ORCPT ); Mon, 27 Jul 2020 17:13:55 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD51AC061794; Mon, 27 Jul 2020 14:13:54 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id k20so8451424wmi.5; Mon, 27 Jul 2020 14:13:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Xi8D6LIwsxs0KNLAaqairags+EWlCXEvsyTkAbsZmKs=; b=TuLyPU3XGBxurp2UASoX96QUzbR2jSJbe5WazAm1qdG99vSkjG+cJHb9HUMe+JIBhz fast/LQJUyOVdK6J3LKYY/MqqZX3hQUOhpvElAQH5AJkKL+nshkiYliekbIMSlY1MbQi qgYHU12lPL9wUmTcMi2A4pdg6h/6kmI2oZkTCPMFa2jCopRbmXrMdkioDAMwJM46fYcB KkUZtFZokzxqrvxv78A3na9abLnnE20Jy+b9UtQbqt4G4JeTSP1oyknkiDn1Rej2Hh/6 jZDzxKtOzD48sznc+ITS30CgCIC35vigb/k2a4kkTpobgVcNzdlXAMxcU9pOUnQmBB87 qA5Q== 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:content-transfer-encoding; bh=Xi8D6LIwsxs0KNLAaqairags+EWlCXEvsyTkAbsZmKs=; b=TYI3Y5UaDMXezA1yolAmPqr21FCy+8s7RvdHYrVw+bd5vCPPX3mYKaf3dLZTKuc2Qr UgdZ8571gkYJUczHrC1cCtUQTweeCtSvNqx8P8bEz7lHMh25FBCW9HiqX2/tvVa1YvTg YKLBzETz4mqXsgufP4FBN5bYoVHsrXs3csL7o6AQIg+auACzt+Iv98s5svIyUeKZOTyK pa/vtNSX1AFaWITjBdEN1/jObcSqJJvkHcHbJ+IEvxhEoMVKfIG2vSaWMnsbz16T+ct3 BoS+cgBZRJ1gMWpXnOpFcV/aNq6C4VH8sSDYB27M7lZlMY0cHpbzRjp/G+IbRrXcz3mZ hxow== X-Gm-Message-State: AOAM532bVb7ej11AqcG3IaAgkvw6d/w7WGpDasxUjQrCP8IP54oa2gUI VZBDvKyTYfWEjxW3eE6k0tyMLBx++628KXj8vwPBCL1FWN0= X-Received: by 2002:a7b:c765:: with SMTP id x5mr959701wmk.14.1595884433463; Mon, 27 Jul 2020 14:13:53 -0700 (PDT) MIME-Version: 1.0 References: <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> <20200727173051.GM1551@shell.armlinux.org.uk> In-Reply-To: <20200727173051.GM1551@shell.armlinux.org.uk> From: Miguel Borges de Freitas Date: Mon, 27 Jul 2020 22:13:42 +0100 Message-ID: Subject: Re: [PATCH v2 1/3] dt-bindings: rtc: pcf8523: add DSM pm option for battery switch-over To: Russell King - ARM Linux admin Cc: Alexandre Belloni , Jon Nettleton , Rob Herring , 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" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Russell King - ARM Linux admin escreveu no dia segunda, 27/07/2020 =C3=A0(s) 18:30: > > On Mon, Jul 27, 2020 at 06:16:32PM +0200, 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 pat= ch. > > > > > > > > > > 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. For what it's worth I also tend to agree. The patchset, regardless of the property name (that I admit might be misleading), is intended at enforcing a mode that the RTC/driver should use by default. This mode is strongly related to the hardware definition/implementation and its capabilities. While I understand the need for the IOCTL interface to solve issues exactly like the aforementioned factory example, I fail to see how it can be of any help to solve the problem at hand - as it won't likely configure the driver to use a different default mode depending on the board. The IOCTL interface might also allow the userspace to change this property back to the default mode (000) and end up breaking the RTC operation, but I guess that's the cost of configurability and, in the end, the user's responsibility. Any pointers on how to proceed are appreciated. Regards, Miguel