Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1490913pxb; Tue, 17 Aug 2021 13:07:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIa2g4ohd9X6oO7raKl05eMxdRvTIuwnmtANiZuvp0+ZCt52OwFy8bwNgZ3oj0/u9vYZsI X-Received: by 2002:a17:906:410c:: with SMTP id j12mr5792234ejk.553.1629230852741; Tue, 17 Aug 2021 13:07:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629230852; cv=none; d=google.com; s=arc-20160816; b=1ASxuFrM110yNt2sadPzkCaBOs+UbMXyWLti7ixudaaKsGKYs/bJ/Qpr5Jbt37oqu7 pCTAT2WslpxbnR1yUtCUkHQgKnGnZUPU+07k19PpKPODIYdRu6xN9kwvOY0bxokvFAg1 +BTvC8ApvtZYiMppAJz2z4CmSUssnwfRVpFcOkREMdjBVvfpC7b83BrjTmP5msqQ6r1v vILkadDQ8M1fC/CLJkbHc4cu7ZbqB8pRZqQw0BoqKr2Z3DvANRolkprkH40/U++Ni4IS NuRC5i5fXoGkZ+DBz44Xf8ZkFO3E5d8jIz6no/8y6RciW4kIDgjX27K0l9MHt7Th7pWY s87w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=WehxJc6wyFQVxPig+abRcwbUnGVg0LeiTk2jShAJf2c=; b=fqtU3eQ8jZrdyeph22qmgB4/vQHX7dzDe0cOwcvB+gq69rs8dFynGqxZWpFMy+QVpq tb32jmI2dtQvhhdRbvOTOGKI0WXRjx7Xuyvf1vFYy5bHIyDVdJfaAlbI+ja0kI24zi9c ybTFYDT4r07YcJIKGU9MwrWh1ps8ZbHYvnVbpw9L9sPZbatlUtkXbaP0xr2S89F8jYfe Je0R/8s4H/P7SjZ9LP1w+Z4ls+UNGjqlb7BiHKk9DYbfgl6lNXZbeitm+dfw7ErMXAzr nicz7UKDL32jCVUZloVT2HMgIfofDkbpjCYCVmQdIdAn57t5eF0AZwQpUYH6hf9Qx4go Wcfw== 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 qo8si3244171ejb.637.2021.08.17.13.07.06; Tue, 17 Aug 2021 13:07:32 -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 S233513AbhHQUGV (ORCPT + 99 others); Tue, 17 Aug 2021 16:06:21 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:49643 "EHLO relay9-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229466AbhHQUGV (ORCPT ); Tue, 17 Aug 2021 16:06:21 -0400 Received: (Authenticated sender: alexandre.belloni@bootlin.com) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id B09C4FF806; Tue, 17 Aug 2021 20:05:45 +0000 (UTC) Date: Tue, 17 Aug 2021 22:05:45 +0200 From: Alexandre Belloni To: Milton Miller II Cc: Paul Fertser , Ivan Mikhaylov , Alessandro Zummo , openbmc@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2] rtc: pch-rtc: add Intel Series PCH built-in read-only RTC Message-ID: References: <20210810154436.125678-1-i.mikhaylov@yadro.com> <20210814224215.GX15173@home.paul.comp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17/08/2021 18:04:09+0000, Milton Miller II wrote: > > On Aug 16, 2021, Alexandre Belloni wrote: > >On 15/08/2021 01:42:15+0300, Paul Fertser wrote: > >> On Tue, Aug 10, 2021 at 06:44:34PM +0300, Ivan Mikhaylov wrote: > >> > Add RTC driver with dt binding tree document. Also this driver > >adds one sysfs > >> > attribute for host power control which I think is odd for RTC > >driver. > >> > Need I cut it off and use I2C_SLAVE_FORCE? I2C_SLAVE_FORCE is not > >good > >> > way too from my point of view. Is there any better approach? > >> > >> Reading the C620 datasheet I see this interface also allows other > >> commands (wake up, watchdog feeding, reboot etc.) and reading > >statuses > >> (e.g Intruder Detect, POWER_OK_BAD). > >> > >> I think if there's any plan to use anything other but RTC via this > >> interface then the driver should be registered as an MFD. > >> > > > >This is not the current thinking, if everything is integrated, then > >there is no issue registering a watchdog from the RTC driver. I'll > >let > >you check with Lee... > > I think the current statement is "if they are truly disjoint > hardware controls" then an MFD might suffice, but if they require > software cordination the new auxillary bus seems to be desired. > Honestly, the auxiliary bus doesn't provide anything that you can't do by registering a device in multiple subsystem from a single driver. (Lee Jones, Mark Brown and I did complain at the time that this was yet another back channel for misuses). > >>However, I'm not sure what is the correct interface for > >poweroff/reboot > >control. > > While there is a gpio interface to a simple regulator switch, > the project to date has been asserting direct or indirect > gpios etc to control the host. If these are events to > trigger a change in state and not a direct state change > that some controller trys to follow, maybe a message delivery > model? (this is not to reboot or cycle the bmc). > > milton -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com