Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1099549pxb; Tue, 14 Sep 2021 16:44:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymROSF5aongoPNGfYzjv/lp0mgNtwX2Ex0qygJf/oOQrG/YrCpN1Lhi+NUztFD8sa84ED/ X-Received: by 2002:a05:651c:211a:: with SMTP id a26mr17539801ljq.305.1631663057103; Tue, 14 Sep 2021 16:44:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631663057; cv=none; d=google.com; s=arc-20160816; b=Vb6MvchusCBLR2ZuRKjLCw/exM8BbJ0/9UXt0fueML+LpNlGvKI2EwfKayTXLyl05z mFLGSyPs7wNZ/IOT6hcKfcQJzZMjZhvP608VWo6rlr2+K9F+G8v176+6vXDgbvxvWDiu GpxR5dXmvI6qToa9mSalD70TFoKG2rvJgzqIi9ahl+4gig3W/VwyXOK9XqLypsljfIqr fRqWPwGLT+WB6wpI3dvlU8iOIA2rVpvukLmekR3ieR1WWOLeOfHOEDRNgyyeMQO6Pi7R QHm5eketvwJ022LMQrzyjW+wM25xVC+9YNUNJz8h4QHSzmvrnLsaBKn87gkneNJnr1P8 pbTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:organization:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=rv+zz22b9fZQL8owiO20v1+0vqZWGZ0GcTc5Sg/uy0A=; b=Qfh9WdkHiYcqhblW8vbQ7ox3b0INUuGT0/WOoa3oi3lt/z2TVG8UpIFTaJpDsplfgo bcp2Oa4XWCWiblX+MfkfttpSRtYqnkFWIgZwCAGQTfVNf0nbuy5VtEvXRZhX0nTL7wMV 6iy2xvwh+q1prxd0Fojxvz3/qMMvqL8y8IF7In1Dh5fBNH5X31y4XaMR+08SeuwlyjWL th3MINP44iC2/meSFDL4sLYHxX1+/kioIozWVDybh0VSijgQRE2Qlz2kFjwjSufAGUi/ SxVFHooaF7zSXdAd79Wsqfc4AwQRW/fEZpXHIdAeBuw/T0rwGA/w8UP5UuXfrPnSq8Dj iAjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yadro.com header.s=mta-01 header.b=Tau0ZGRz; 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=NONE dis=NONE) header.from=yadro.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y11si14003699ljn.122.2021.09.14.16.43.49; Tue, 14 Sep 2021 16:44:17 -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=@yadro.com header.s=mta-01 header.b=Tau0ZGRz; 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=NONE dis=NONE) header.from=yadro.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235895AbhINXn1 (ORCPT + 99 others); Tue, 14 Sep 2021 19:43:27 -0400 Received: from mta-02.yadro.com ([89.207.88.252]:43076 "EHLO mta-01.yadro.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233774AbhINXn1 (ORCPT ); Tue, 14 Sep 2021 19:43:27 -0400 Received: from localhost (unknown [127.0.0.1]) by mta-01.yadro.com (Postfix) with ESMTP id CDE5942413; Tue, 14 Sep 2021 23:42:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yadro.com; h= content-transfer-encoding:mime-version:user-agent:content-type :content-type:organization:references:in-reply-to:date:date:from :from:subject:subject:message-id:received:received:received; s= mta-01; t=1631662926; x=1633477327; bh=R5bpcvsT3kXYqwQ+cjx1HLt+j CeJZyVa9dVb6M+UHRc=; b=Tau0ZGRzI41Vrwpo448vEHSwjzNgq/xoACMaGw0PZ PskR3K/6q0CWV7yu0pDusI8qIx1TNfvL9m3KUcDzUasmD8GUroN/Ey9bUFk5a9SR cDM/BA0FfGfG1/xhErLeoJpTCe+jnB8c+gb3qPn1wxYTsMVlkifUjLtbZiajufQv N0= X-Virus-Scanned: amavisd-new at yadro.com Received: from mta-01.yadro.com ([127.0.0.1]) by localhost (mta-01.yadro.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id For72AKW95pQ; Wed, 15 Sep 2021 02:42:06 +0300 (MSK) Received: from T-EXCH-04.corp.yadro.com (t-exch-04.corp.yadro.com [172.17.100.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mta-01.yadro.com (Postfix) with ESMTPS id 1EB6A423EF; Wed, 15 Sep 2021 02:42:05 +0300 (MSK) Received: from [10.199.0.2] (10.199.0.2) by T-EXCH-04.corp.yadro.com (172.17.100.104) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.32; Wed, 15 Sep 2021 02:42:05 +0300 Message-ID: <8f47c350219719cbd8706ebc079b064cfa43ce95.camel@yadro.com> Subject: Re: [PATCH 0/2] rtc: pch-rtc: add Intel Series PCH built-in read-only RTC From: Ivan Mikhaylov To: Alexandre Belloni , Milton Miller II CC: Paul Fertser , Alessandro Zummo , , Date: Wed, 15 Sep 2021 02:52:55 +0300 In-Reply-To: References: <20210810154436.125678-1-i.mikhaylov@yadro.com> <20210814224215.GX15173@home.paul.comp> Organization: YADRO Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.4 (3.38.4-1.fc33) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Originating-IP: [10.199.0.2] X-ClientProxiedBy: T-EXCH-01.corp.yadro.com (172.17.10.101) To T-EXCH-04.corp.yadro.com (172.17.100.104) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2021-08-30 at 14:56 +0300, Ivan Mikhaylov wrote: > On Tue, 2021-08-17 at 22:05 +0200, Alexandre Belloni wrote: > > 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, gentle reminder about this one series. I can get rid off from sysfs > attribute and put it like RO rtc without any additional things for now as > starter. > > Thanks. > ping Thanks.