Thread (6 messages) 6 messages, 3 authors, 2011-02-28
STALE5598d

[patch 1/2] mc13892: reboot on wdi event

From: Mark Brown <hidden>
Date: 2011-02-28 14:37:41

On Mon, Feb 28, 2011 at 02:21:33PM +0100, Arnaud Patard wrote:
+
+	/* allows to reboot on wdi event */
+	ret = mc13xxx_reg_read(mc13892, MC13892_POWERCTL2, &val);
+	if (!ret) {
+		val |= MC13892_POWERCTL2_WDIRESET;
+		mc13xxx_reg_write(mc13892, MC13892_POWERCTL2, val);
+	}
+
Also, why is this in the regulator driver?  The MFD core for the device
might be a better choice - that'll ensure it gets done even if regulator
support isn't enabled for some reason.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help