Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp892049ybg; Mon, 27 Jul 2020 02:23:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgAesExqPay+MBSL4Eg4hnQvxgCHd36K0sfZMXA/17b4rxvuzJgR/8N+SwZdmKpa5AwnID X-Received: by 2002:a05:6402:1427:: with SMTP id c7mr4500899edx.245.1595841787458; Mon, 27 Jul 2020 02:23:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595841787; cv=none; d=google.com; s=arc-20160816; b=RCN5uwAgmE9Sq+ibkCmLpCYup1EVtjKWbdZMEPLzp6KinA89TWi77zHl52vagINUJf PUiW7GsICZLXAjUm+W1NRhb0zYEifoX6u6LGhdq78BVDwGYPckpaX4einJqdTe2fMytN wyBMnWAHEY5ofh6XHJWIrUwYFVoRnDxlPs+yzIA3roNtGm/g5iCtDq/MaK92lsV9T8HB uXjvS7Et/npnNNO6mMz+7ny6g5iaReuiKFPs5Yutt2F/ka6socEzlO8nHXtArEZaKBRF DgxAecc/nz14j9NEgr8n7oWEnCSTf89T2Sl2AwnqQtRY8Koa6CB1fojppOeFosLmBZAY WtOA== 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=yLnBcJ7AAd3mxUPf3jGsnG6dsXBMorrtxynphcZ58Lo=; b=OTbEMpUEaLpBDBkwmAxWGl1ke7Y1GsVQLm3R69Bu08ndKoMQMZXgxTDGgXbHQ3trhi /c8L9nYl/nwsv2rZ/46pJiYtahT9hZY/UNJ8at/n9m5jGDEksiVphlzDOJpxXgeMzdTo Sf+lZhIBIXoUtXAwY8stQx/ko5jKJ4VZavAhrHBwsXQ3TmtREtd5TfsUyG576fS4xiPP cwNAynOYfzcsfjGiD6CFylOIsHZJxL8JMyMzW6gyDOhWUdsF23FyAgpjPYlzBbmPCKXq lz2NYsrqBeRt/v+pGi04R+83j4vSvqykEgnRjWkYrqC3fLor3N7bHfqisnSPyXVChTMP ZWhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@solid-run-com.20150623.gappssmtp.com header.s=20150623 header.b=Rrme5m5V; 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 a23si5203372edn.528.2020.07.27.02.22.45; Mon, 27 Jul 2020 02:23:07 -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=Rrme5m5V; 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 S1727064AbgG0JT7 (ORCPT + 99 others); Mon, 27 Jul 2020 05:19:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726315AbgG0JT7 (ORCPT ); Mon, 27 Jul 2020 05:19:59 -0400 Received: from mail-ej1-x643.google.com (mail-ej1-x643.google.com [IPv6:2a00:1450:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 000E2C061794 for ; Mon, 27 Jul 2020 02:19:58 -0700 (PDT) Received: by mail-ej1-x643.google.com with SMTP id qc22so1512963ejb.4 for ; Mon, 27 Jul 2020 02:19:58 -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:content-transfer-encoding; bh=yLnBcJ7AAd3mxUPf3jGsnG6dsXBMorrtxynphcZ58Lo=; b=Rrme5m5VJcvJfeb/5BW8Hq518uIh95lif7kMwJNVad8/btgBS/K25HDnjgKvI8vtO7 YI4LnrVFZ5bte7TgQnygpWDu4yyX00VmQ4d9DWQl0uJwumsl20t8YcFhULEuJmRmqLzH MBYYsHgJd1Ruyr2KL95cXQCZPmpRWwUJCoq21BZwg2oz1hFMO6KA6viDQW333yocDKgh m5QjZkGjhuIhDuMDV/FnhxfqO9sc39fLVqjoPlpSkVFTk0/HTd6fO51dYtA/3KqxVGq8 Wi7aQuSR824kbXY6eaRf9EHGuOGoJ4D30m4hIF1qsykmde7LH484tEGOA9/K9zTR5oG0 gYXw== 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=yLnBcJ7AAd3mxUPf3jGsnG6dsXBMorrtxynphcZ58Lo=; b=U5HySB1EWWBs4SjYndJsDNSAg9ph/QW6ArgLsHbr1lnLP5w/YSrOj5ZInba+kH+nWx FEihLbkyw8Q2gCPVh1Wg8WHfjQIfJaXbxlV/NzMw1Q1/ug1xjwLbXkNVDIffhvh6mlag /ooWFcvyQlYLPvoxdgryVz+wA0xlgrEvQ3jOrRZBSAKL4Cghvc5s8iTIGmjkubxpS2Jw ciLZKBg3tx81Mypvdb9xNgTtth44mZaU12WLk10gn7rNjqBbySizDaVX59dibGiXDE8W 4R/NcpsaVe9YJaPdPPeXmKN1DGTwCo/4OKpWgdaATlNxzI/eztXWAe+uEUb0FxobLbIE SI5g== X-Gm-Message-State: AOAM533tU/IoRgmjd2y7bF5peXpiU6+f135aDOzvBAejdOCVg+QEP6cr 7H89fv2bLzzZMXf+cZgwiwbJQ7nJKqUwyqGKMqZpKjbi X-Received: by 2002:a17:906:2451:: with SMTP id a17mr17227540ejb.274.1595841597754; Mon, 27 Jul 2020 02:19:57 -0700 (PDT) MIME-Version: 1.0 References: <20200719145028.3370-3-miguelborgesdefreitas@gmail.com> <20200720112401.4620-1-miguelborgesdefreitas@gmail.com> <20200720112401.4620-2-miguelborgesdefreitas@gmail.com> <20200723174905.GA596242@bogus> <20200723195755.GV3428@piout.net> In-Reply-To: From: Jon Nettleton Date: Mon, 27 Jul 2020 11:19:21 +0200 Message-ID: Subject: Re: [PATCH v2 1/3] dt-bindings: rtc: pcf8523: add DSM pm option for battery switch-over To: Miguel Borges de Freitas Cc: Alexandre Belloni , Rob Herring , a.zummo@towertech.it, Baruch Siach , Russell King - ARM Linux , 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 On Thu, Jul 23, 2020 at 10:41 PM Miguel Borges de Freitas wrote: > > Hi Alexandre, > > Having a way to dynamically change the configuration would definitely > be helpful in most cases. I decided to go with a DT property because > in the case this patch tries to solve (the cubox-i) there isn't simply > any other option - the default mode won't work due to the missing hw > components. So, I thought that by defining it as a DT property it > could somehow be locked to the hardware definition. > Keep me posted > > Regards > > PS: Sorry for the second message, forgot to disable html and the > message couldn't be delivered to all recipients. > > Alexandre Belloni escreveu no dia > quinta, 23/07/2020 =C3=A0(s) 20:57: > > > > > > > > > I'm all for common properties, but is this common across vendors? > > > > > > > This is but this shouldn't be a DT property as it has to be changed > > dynamically. I'm working on an ioctl interface to change this > > configuration. > > > > Thanks for sending this patch. I think there are two paths forward if an ioctl interface is being added. 1) Change the property to reflect that this is the default state the RTC should be initialized to. 2) Just move this configuration into the bootloader and then verify that the bootloader doesn't reset this value. -Jon