Re: [PATCH v2 1/4] gpiolib: Add "unknown" direction support

From: Wolfram Sang
Date: Mon Feb 21 2011 - 04:48:07 EST


> We had exported our 5V_enable gpio to sysfs to allow a user-space application
> to enable/disable devices connected to 5V circuit.
> But on the other hand we had to read the current status of this gpio in the
> power-fail interrupt handler to distinguish between false-positive (5V
> disabled) and a correct detection.

What about gpio_export() (description in Documentation/gpio.txt)?

Regards,

Wolfram

--
Pengutronix e.K. | Wolfram Sang |
Industrial Linux Solutions | http://www.pengutronix.de/ |

Attachment: signature.asc
Description: Digital signature