Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp3530079pxb; Mon, 30 Aug 2021 04:47:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBtNOZNlFhYVHKy1prFUWW2r6wSfWGJhNkImXPX9pdfyMn1IVsNLqxwTcXJ0kjRYTHxA+L X-Received: by 2002:a05:6602:1246:: with SMTP id o6mr18047454iou.173.1630324040109; Mon, 30 Aug 2021 04:47:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630324040; cv=none; d=google.com; s=arc-20160816; b=OFTOw6uO1nn7MMMQFnqd9+p+Enix9MueiLWUY3rJ6fSgRCufHUeqpEU/I6VOAy9ovS ANRmCVmlD500BKznl5EKRb2D+ErNvtbNKcWnz6hA24CltxtnKG5fAhktxlSDF6Cg0UJy vzgv40yjXpRtOqLRfuNOHT8JCbxPDQ4pcv+gphBhbFZDi+LhtxUCYwmWh85YfDEgQR6z lmEZP8kuAtaCRcgcFyp9LHRSyljFyMPgAYYkRONsuS0/yWusVpeG/z+RqO5VZzhqHcAf HYjPR+L7eGCtDdq54AE50zrk2PLw/YQwv5Hde6FyybnvHQ52k0sTCkRECYMDE/M84A7b lACA== 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=uAWJwm+7eeG77BpS1GV4/41+XFyVjQggfvQBvaUQTTA=; b=rrCXCwBsh+qbhGHKAM9wB53xxGZsrqZqHmfIitSHCLH7ymlxFekOL5RxQ0NEe80mmm Zmx/GZ9LD9YPcn0PXs5bqQGJJAfavOCwHI9ewGdQY9b3XqxtN18RpNKp9k5aCvTTs3s1 zkb3tv6y/CS34fwvEXnWp+iJGdoZY67eCPXd/LGu9Wr/CKA9DkSx3+khaeEsU9MjxUyh j+nd6Y8fQEb+aquoghNNpnU9nPwF+I+iRfUl/JocC9Tgo8P8oMeIdsbttNG4G7gxnh9k P1mejwagTmqyqoQM2mzc13m2TC11dXUdWi2MdyVGrN39Fvo4Epe+EcO5y7vopD6vihTP nQTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yadro.com header.s=mta-01 header.b=nbsb7TYM; 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 g127si2089997jab.44.2021.08.30.04.47.05; Mon, 30 Aug 2021 04:47:20 -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=nbsb7TYM; 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 S236475AbhH3LrN (ORCPT + 99 others); Mon, 30 Aug 2021 07:47:13 -0400 Received: from mta-02.yadro.com ([89.207.88.252]:39636 "EHLO mta-01.yadro.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232579AbhH3LrN (ORCPT ); Mon, 30 Aug 2021 07:47:13 -0400 Received: from localhost (unknown [127.0.0.1]) by mta-01.yadro.com (Postfix) with ESMTP id C2C034CF30; Mon, 30 Aug 2021 11:46:18 +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=1630323977; x=1632138378; bh=Y+CHmZ6B/AiXBxjVmkcFhf5gN sJMUvq6Qut2MbLq3Qk=; b=nbsb7TYM+7pdfCDwL4vUjlPdobId+uNkjQtv08ft0 va0svHQNLFQ63YffC594TLc7o/Pg2vfSLE4fXBGjolZth95ORzDrolOXuLxIVygN 7XJT3ilS8mByVx57/19uNx0rEi14b5MIARySUV/iJzXWtCITue+Pq2CRIwZS4xCz NU= 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 Bb4K68EkypwJ; Mon, 30 Aug 2021 14:46:17 +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 107A24CF40; Mon, 30 Aug 2021 14:46:16 +0300 (MSK) Received: from [10.199.0.170] (10.199.0.170) 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; Mon, 30 Aug 2021 14:46:16 +0300 Message-ID: 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: Mon, 30 Aug 2021 14:56:48 +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.170] 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 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.