On Wed, Sep 24, 2014 at 9:41 PM, Robert Jarzmik <[email protected]> wrote:

> I have not found in the gpiolib anything for a driver to set that
> active_low value, only for machine code. The legacy behaviour was that
> that information was handed over to the driver.

That's correct, active low is a property of the electronics, and
not something the driver should mess with going forward.

Active low is now defined in either the descriptor table in the
machine, in the device tree or in ACPI nodes.

The old way was convoluted and something like:

board file defines custom platform data -> driver gets this
-> tells GPIOlib to use active low

Or in worst case the polarity is hard-coded in the driver (!)

That was not a clean separation, the driver should not need to
care about polarity, the core should handle this.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to