Hi, On Wed, Jan 30 2013, Arnd Bergmann wrote: >> > From the code, I understand that of_get_named_gpio() would return a gpio >> > line with the polarity already inverted if it's specified that way, >> >> Sorry, don't understand. of_get_named_gpio() just returns a GPIO number, >> not GPIO level. It doesn't even actually request the GPIO for the specific >> user. Or do you mean, that gpio_chip::of_xlate() should request the chip >> to invert the GPIO from now on? > > I'm not saying that it should, I just thought that it did that already, > but I may be wrong with that. Where does the polarity of a gpio > line normally get set? of_get_named_gpio() intentionally discards the specified flags, but of_get_named_gpio_flags(.., .., .., &gpio_flags) retrieves them, and gpio_flags will == OF_GPIO_ACTIVE_LOW if that's how the gpio's been specified in the DT. - Chris. -- Chris Ball <cjb@xxxxxxxxxx> <http://printf.net/> One Laptop Per Child -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html