Thread (5 messages) 5 messages, 2 authors, 2017-08-30

Re: [rtc-linux] [PATCH 1/2] rtc: pcf2127: add support for pcf2127 watchdog functionality

From: Alexandre Belloni <hidden>
Date: 2017-08-30 07:53:04

On 30/08/2017 at 09:45:06 +0200, Sean Nyekjær wrote:

On 2017-08-29 17:07, Alexandre Belloni wrote:
quoted
Hi Sean,

I know this patch is 7 months old but I never had the time to write a
proper reply.

This is using a pretty old API. Can you register a proper watchdog using
the watchdog subsystem (see drivers/watchdog)? Also, please copy the
watchdog maintainers.

I understand this will require a significant rewrite effort but the
final code will be quite cleaner.
Hi Alexandre

I unfortunately don't have access to the hardware anymore...
I think it would be very risky to rewrite the whole code without testing it
:-)
Ok, too bad. :(
Yes this driver is quite hacky in some ways. It could be nice if the
watchdog part for this could be in the driver/watchdog and the rtc part
here. Maybe we could have 2 entries in the devicetree that shared the same
i2c device address.
If you want to go that route, the proper way is to use the MFD
subsystem.

-- 
Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help