Hi Uwe, Uwe Kleine-König writes: > On Thu, Nov 26, 2015 at 02:39:45PM +0100, Harald Geyer wrote: > > Uwe Kleine-König writes: > > > Hmm, so you set a bit in a persistent register iff the watchdog is > > > running. And if that bit is set during probe you assume the watchdog > > > reset the machine. But this also happens, when the user presses the > > > reset button which makes the detection unreliable. > > > > Yes, kind of. I'm using this driver on an imx233-olinuxino, where the > > reset button causes the device to power cycle and thus clears the > > persitent bit. So I can't test your case, but surely there are some paths > > So the rtc isn't properly battery backed? Yes, since the mainline kernel can't do anything useful with the battery other than reporting it's voltage, nobody uses imx233-olinuxino with mainline kernel and battery. > AFAIUI the persistent bits should survive a power cycle?! I only tested without battery, and in my case they definitely don't. > I think somewhere in our hardware > repository at Pengutronix we have a machine where I can test that, I > will check that. Thanks! Best regards, Harald > > into reset, that don't clear the bit and cause false positives. > > Best regards > Uwe > > -- > Pengutronix e.K. | Uwe Kleine-König | > Industrial Linux Solutions | http://www.pengutronix.de/ | -- If you want to support my work: see http://friends.ccbib.org/harald/supporting/ or donate via bitcoin to 1FUtd8T9jRN1rFz63vZz7s2fDtB6d6A7aS -- To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html