On Tue, Jan 27, 2015 at 10:36 AM, <[email protected]> wrote: > ----- Mail original ----- > De: "Fabio Estevam" <[email protected]> > À: "Robert Jarzmik" <[email protected]> > Cc: "Felipe Balbi" <[email protected]>, "Linus Walleij" > <[email protected]>, "Philipp Zabel" <[email protected]>, "USB > list" <[email protected]> > Envoyé: Mardi 27 Janvier 2015 12:23:43 > Objet: Re: [PATCH v2 1/3] usb: phy: generic: migrate to gpio_desc > >> I'll amend my patch just as you said, my bad. >> but the problem I see is that even if I use: >> nop->gpiod_reset = devm_gpiod_get_optional(dev, "reset"); >> >> The 'reset-gpio' pin cannot be retrieved. This is the point I don't >> understand currently. > If the reset-gpio device-tree property doesn't exist, > devm_gpiod_get_optional() > will return a NULL pointer, and nop->gpiod_reset = NULL.
I agree, but 'reset-gpio' property exists in imx51-babbage.dts, but devm_gpiod_get_optional(dev, "reset") is returning NULL. This is the problem that puzzles me at the moment. Thanks -- 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
