Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1440940

Re: [PATCH v2 10/22] usb: chipidea: Add support for ULPI PHY bus

From Stephen Boyd <stephen.boyd@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH v2 10/22] usb: chipidea: Add support for ULPI PHY bus
Date 2016-07-12 00:10 +0200
Message-ID <rTRyO-4zt-29@gated-at.bofh.it> (permalink)
References <rSpXX-4yB-3@gated-at.bofh.it> <rSpXX-4yB-11@gated-at.bofh.it> <rTzVf-1r7-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 10 July 2016 at 20:10, Peter Chen <hzpeterchen@gmail.com> wrote:
> On Thu, Jul 07, 2016 at 03:21:01PM -0700, Stephen Boyd wrote:
>> @@ -418,6 +427,17 @@ static inline bool ci_otg_is_fsm_mode(struct ci_hdrc *ci)
>>  #endif
>>  }
>>
>> +#if IS_ENABLED(CONFIG_USB_CHIPIDEA_ULPI)
>> +int ci_ulpi_init(struct ci_hdrc *ci);
>> +void ci_ulpi_exit(struct ci_hdrc *ci);
>> +int ci_ulpi_resume(struct ci_hdrc *ci);
>> +#else
>> +static inline int ci_ulpi_init(struct ci_hdrc *ci) { return 0; }
>> +static inline void ci_ulpi_exit(struct ci_hdrc *ci) { }
>> +static inline int ci_ulpi_resume(struct ci_hdrc *ci) { return 0; }
>> +#endif
>> +
>> +
>
> One more blank line
>

Fixed.

>> @@ -911,11 +918,15 @@ static int ci_hdrc_probe(struct platform_device *pdev)
>>
>>               /* if both generic PHY and USB PHY layers aren't enabled */
>>               if (PTR_ERR(ci->phy) == -ENOSYS &&
>> -                             PTR_ERR(ci->usb_phy) == -ENXIO)
>> -                     return -ENXIO;
>> +                             PTR_ERR(ci->usb_phy) == -ENXIO) {
>> +                     ret = -ENXIO;
>> +                     goto ulpi_exit;
>> +             }
>>
>> -             if (IS_ERR(ci->phy) && IS_ERR(ci->usb_phy))
>> -                     return -EPROBE_DEFER;
>> +             if (IS_ERR(ci->phy) && IS_ERR(ci->usb_phy)) {
>> +                     ret = -EPROBE_DEFER;
>> +                     goto ulpi_exit;
>> +             }
>
> Just confirm, you try to get PHY through:
>         ci->phy = devm_phy_get(dev->parent, "usb-phy");
> right?

Yes.

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Re: [PATCH v2 10/22] usb: chipidea: Add support for ULPI PHY bus Peter Chen <hzpeterchen@gmail.com> - 2016-07-11 05:20 +0200
  Re: [PATCH v2 10/22] usb: chipidea: Add support for ULPI PHY bus Stephen Boyd <stephen.boyd@linaro.org> - 2016-07-12 00:10 +0200

csiph-web