From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751511AbcBEIw6 (ORCPT ); Fri, 5 Feb 2016 03:52:58 -0500 Received: from mail-ob0-f172.google.com ([209.85.214.172]:36192 "EHLO mail-ob0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751221AbcBEIwz (ORCPT ); Fri, 5 Feb 2016 03:52:55 -0500 MIME-Version: 1.0 In-Reply-To: <56B38079.10607@roeck-us.net> References: <1454519923-25230-1-git-send-email-fu.wei@linaro.org> <1454519923-25230-5-git-send-email-fu.wei@linaro.org> <20160204163101.GH17257@arm.com> <56B37E52.300@codeaurora.org> <56B38079.10607@roeck-us.net> Date: Fri, 5 Feb 2016 16:52:55 +0800 Message-ID: Subject: Re: [PATCH v10 4/5] Watchdog: introduce ARM SBSA watchdog driver From: Fu Wei To: Guenter Roeck Cc: Timur Tabi , Will Deacon , Rob Herring , =?UTF-8?Q?Pawe=C5=82_Moll?= , Mark Rutland , Ian Campbell , Kumar Gala , Wim Van Sebroeck , Jon Corbet , Catalin Marinas , Suravee Suthikulpanit , LKML , linux-watchdog@vger.kernel.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linaro ACPI Mailman List , rruigrok@codeaurora.org, "Abdulhamid, Harb" , Christopher Covington , Dave Young , Pratyush Anand , G Gregory , Al Stone , Hanjun Guo , Jon Masters , Arnd Bergmann , Leo Duran , Sudeep Holla Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi On 5 February 2016 at 00:46, Guenter Roeck wrote: > On 02/04/2016 08:37 AM, Timur Tabi wrote: >> >> Will Deacon wrote: >>>> >>>> +static int sbsa_gwdt_keepalive(struct watchdog_device *wdd) >>>> >+{ >>>> >+ struct sbsa_gwdt *gwdt = to_sbsa_gwdt(wdd); >>>> >+ >>>> >+ /* >>>> >+ * Writing WRR for an explicit watchdog refresh. >>>> >+ * You can write anyting(like 0xc0ffee). >>>> >+ */ >>>> >+ writel(0xc0ffee, gwdt->refresh_base + SBSA_GWDT_WRR); >>>> >+ >>>> >+ return 0; >>>> >+} >>> >>> You might get in trouble for that. 0xd09f00d is probably less poisonous. >>> >>> http://www.petpoisonhelpline.com/poison/caffeine/ >> >> >> Any reason why we can't just keep it simple and write 0? > > > +1 yes, we can, just "0" would be fine, will do. Thanks :-) > > Guenter > -- Best regards, Fu Wei Software Engineer Red Hat Software (Beijing) Co.,Ltd.Shanghai Branch Ph: +86 21 61221326(direct) Ph: +86 186 2020 4684 (mobile) Room 1512, Regus One Corporate Avenue,Level 15, One Corporate Avenue,222 Hubin Road,Huangpu District, Shanghai,China 200021