lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200801111740.25754.florian.fainelli@telecomint.eu>
Date:	Fri, 11 Jan 2008 17:40:25 +0100
From:	Florian Fainelli <florian.fainelli@...ecomint.eu>
To:	Marc Pignat <marc.pignat@...s.ch>
Cc:	wim@...ana.be, linux-kernel@...r.kernel.org
Subject: Re: [RFC, PATCH] watchdog on gpio

Hello Marc,

Your patch looks good to me, and I have been waiting for something like 
this :). Other comments below.

Le jeudi 10 janvier 2008, Marc Pignat a écrit :
> +#include <asm/uaccess.h>
> +#include <asm/arch/gpio.h>

At first sight, this will only work with the platforms which have implemented 
gpiolib, some (like MIPS) still use the old generic GPIO API. So I think the 
include will not work here for anything than ARM, correct me if I am wrong.

> +static int gpio_wdt_keepalive(struct gpio_wdt *wdt)
> +{
> +	gpio_set_value(wdt->pdata->pin, 0);
> +	gpio_set_value(wdt->pdata->pin, 1);
> +	return 0;
> +}

Some watchdog drivers requires you to toggle the full GPIO line, not only one 
bit (I particularly think about the MTX-1 board watchdog).

Did you look into hooking into Wim's uniform watchdog driver :

http://git.kernel.org/?p=linux/kernel/git/wim/linux-2.6-watchdog-experimental.git;a=commit;h=732c54027e6c866f98857c4a6d1c6c466459dcd5

Maybe you can save some code ?



-- 
Cordialement, Florian Fainelli
------------------------------
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ