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


Groups > linux.kernel > #1472044

Re: [RESEND PATCH 3/4] usb: dwc2: assert phy reset when waking up in rk3288 platform

From John Youn <John.Youn@synopsys.com>
Newsgroups linux.kernel
Subject Re: [RESEND PATCH 3/4] usb: dwc2: assert phy reset when waking up in rk3288 platform
Date 2016-08-29 20:30 +0200
Message-ID <sbztM-2iZ-1@gated-at.bofh.it> (permalink)
References (1 earlier) <s8GL9-4yb-45@gated-at.bofh.it> <s9qNZ-Dm-33@gated-at.bofh.it> <s9Ccp-8hd-7@gated-at.bofh.it> <sa7zA-4yA-27@gated-at.bofh.it> <sbpE5-4vC-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 8/29/2016 12:51 AM, Felipe Balbi wrote:
> 
> Hi,
> 
> John Youn <John.Youn@synopsys.com> writes:
> 
> [...]
> 
>>>>> +			 */
>>>>> +			if (of_device_is_compatible(np, "rockchip,rk3288-usb"))
>>>>> +				hsotg->phy->ops->reset(hsotg->phy);
>>>>> +
>>>>
>>>> You should probably check for NULL before calling the reset()
>>>> callback.
>>> Sure.
>>>>
>>>> Also, I'd rather see a generic quirk property that you set for your
>>>> platform.
>>>>
>>>> Something like "phy_reset_on_wakeup_quirk".
>>> But Rob Herring want me to implied by the SoC specific compatible 
>>> string. I agree with him. It is certainly bug in RK3288 platform.
>>> It is no found no the other platform.
>>
>> Ok, I missed that before.
>>
>> Based on the drivers I'm familiar with (like dwc3), you would
>> typically add a "quirk" anyways.
>>
>> Felipe,
>>
>> Do you have some policy or preference on this?
> 
> if it's not a dwc2-generic feature, then let's do it via compatible
> flag, sure. What we don't want is for things like:
> 
> if (is_compatible('synopsys') || is_compatible('rockchip') ||
> 	is_compatible('foobar') ... )
> 
> For that, we'd be better of adding a generic quirk flag which several
> can use.
> 

Alright sounds reasonable.

Randy, could you respin with the other feedback? There's no need to
add a quirk.

Regards,
John

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


Thread

Re: [RESEND PATCH 3/4] usb: dwc2: assert phy reset when waking up in  rk3288 platform John Youn <John.Youn@synopsys.com> - 2016-08-25 20:30 +0200
  Re: [RESEND PATCH 3/4] usb: dwc2: assert phy reset when waking up in rk3288 platform Felipe Balbi <felipe.balbi@linux.intel.com> - 2016-08-29 10:00 +0200
    Re: [RESEND PATCH 3/4] usb: dwc2: assert phy reset when waking up in  rk3288 platform John Youn <John.Youn@synopsys.com> - 2016-08-29 20:30 +0200

csiph-web