From mboxrd@z Thu Jan 1 00:00:00 1970 From: broonie@opensource.wolfsonmicro.com (Mark Brown) Date: Mon, 28 Feb 2011 14:37:41 +0000 Subject: [patch 1/2] mc13892: reboot on wdi event In-Reply-To: <20110228132643.964403175@rtp-net.org> References: <20110228132132.654689676@rtp-net.org> <20110228132643.964403175@rtp-net.org> Message-ID: <20110228143740.GD13869@opensource.wolfsonmicro.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 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.