Thread (46 messages) 46 messages, 6 authors, 2016-02-07

Re: [PATCH v10 4/5] Watchdog: introduce ARM SBSA watchdog driver

From: Fu Wei <hidden>
Date: 2016-02-05 08:52:58
Also in: linux-arm-kernel, linux-watchdog, lkml

Hi

On 5 February 2016 at 00:46, Guenter Roeck [off-list ref] wrote:
On 02/04/2016 08:37 AM, Timur Tabi wrote:
quoted
Will Deacon wrote:
quoted
quoted
+static int sbsa_gwdt_keepalive(struct watchdog_device *wdd)
quoted
+{
+    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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help