Re: [PATCH v2 1/3] usb: phy: generic: migrate to gpio_desc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jan 27, 2015 at 10:36 AM,  <robert.jarzmik@xxxxxxx> wrote:
> ----- Mail original -----
> De: "Fabio Estevam" <festevam@xxxxxxxxx>
> À: "Robert Jarzmik" <robert.jarzmik@xxxxxxx>
> Cc: "Felipe Balbi" <balbi@xxxxxx>, "Linus Walleij" <linus.walleij@xxxxxxxxxx>, "Philipp Zabel" <philipp.zabel@xxxxxxxxx>, "USB list" <linux-usb@xxxxxxxxxxxxxxx>
> 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux