On Tue, Jan 27, 2015 at 10:36 AM,  <robert.jarz...@free.fr> wrote:
> ----- Mail original -----
> De: "Fabio Estevam" <feste...@gmail.com>
> À: "Robert Jarzmik" <robert.jarz...@free.fr>
> Cc: "Felipe Balbi" <ba...@ti.com>, "Linus Walleij" 
> <linus.wall...@linaro.org>, "Philipp Zabel" <philipp.za...@gmail.com>, "USB 
> list" <linux-usb@vger.kernel.org>
> 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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to