From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755042AbbILUAu (ORCPT ); Sat, 12 Sep 2015 16:00:50 -0400 Received: from mail-oi0-f45.google.com ([209.85.218.45]:36477 "EHLO mail-oi0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755000AbbILUAs (ORCPT ); Sat, 12 Sep 2015 16:00:48 -0400 Subject: Re: [PATCH 5/7] soc: brcmstb: add wake-timer driver To: Brian Norris , Gregory Fong References: <1434672696-13632-1-git-send-email-computersforpeace@gmail.com> <1434672696-13632-6-git-send-email-computersforpeace@gmail.com> Cc: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com From: Florian Fainelli X-Enigmail-Draft-Status: N1110 Message-ID: <55F4846D.5040304@gmail.com> Date: Sat, 12 Sep 2015 13:00:45 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <1434672696-13632-6-git-send-email-computersforpeace@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 06/18/15 17:11, Brian Norris a écrit : > Useful for waking the system from suspend after a specified period of > time. > > This IP could potentially be supported as an RTC driver (for use with > the 'rtcwake' utility), but it is not battery backed, so that's not a > great fit. Implement a custom sysfs interface instead. I would very much like to see this driver be implemented as a degenerate RTC driver because this sorts of maps pretty well to the "rtcwake" use mode, and this is a persistent clock source, and even a clock source as well (I would rather avoid going the MFD route to expose these 3 "functions" though). Thanks! -- Florian