Re: [REPOST RFC PATCH 0/3] New "gpio-poweroff" driver to turn offplatform devices with GPIOs

From: Mark Brown
Date: Wed Dec 14 2011 - 07:00:11 EST


On Tue, Dec 13, 2011 at 01:23:31PM -0500, Kyle Moffett wrote:

> I'm working on support for some custom hardware of ours, and part of
> the support code is the ability for the software to shutdown the power
> supply using GPIOs (via an I2C GPIO controller).

We already have the regulator API for controlling power to devices,
simple GPIO supplies are supported using fixed voltage regulators. The
drivers that are being turned off should have regulator support added to
them. If we have a separate method for doing GPIOs then drivers would
have to support multiple methods of controlling their power.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/