Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161566AbbKEOJD (ORCPT ); Thu, 5 Nov 2015 09:09:03 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:42901 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161471AbbKEOI7 (ORCPT ); Thu, 5 Nov 2015 09:08:59 -0500 Subject: Re: [Linaro-acpi] [PATCH v8 5/5] Watchdog: introduce ARM SBSA watchdog driver To: Fu Wei Cc: Guenter Roeck , Linaro ACPI Mailman List , linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, lkml , linux-doc@vger.kernel.org, "Rafael J. Wysocki" , Arnd Bergmann , Jonathan Corbet , Jon Masters , Pratyush Anand , Will Deacon , Wim Van Sebroeck , Catalin Marinas , Wei Fu , Rob Herring , Vipul Gandhi , Dave Young References: <1445961999-9506-1-git-send-email-fu.wei@linaro.org> <1445961999-9506-6-git-send-email-fu.wei@linaro.org> <563AE588.1080009@roeck-us.net> <563B5DF9.6080102@codeaurora.org> From: Timur Tabi Message-ID: <563B62F7.3050307@codeaurora.org> Date: Thu, 5 Nov 2015 08:08:55 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:41.0) Gecko/20100101 Firefox/41.0 SeaMonkey/2.38 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1332 Lines: 33 Fu Wei wrote: > SBSA 2.3 Page 23 : > Note: the watchdog offset register is 32 bits wide. This gives a > maximum watch period of around 10s at a system > counter frequency of 400MHz. If a larger watch period is required then > the compare value can be programmed > directly into the compare value register. > > 214s means your system counter is approximately at 20MHz which is in > the range of (10MHz ~ 400MHz) > > SBSA 2.3 Page 13 : > The System Counter (of the Generic Timer) shall run at a minimum > frequency of 10MHz and maximum of > 400MHz. Thanks, that explains a lot. If we expected customers to have a lower system counter frequency, then we wouldn't have to worry about the timeouts being too short. It seems to me that the SBSA spec says that if you want a longer timeout, you have to lower the frequency. We shouldn't be complicating the driver because some customers might not follow the spec. -- Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, hosted by The Linux Foundation. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/