Re: [4.4-rc1 regression] pxa27x_udc and suspend/resume

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

 



Hi,

Robert Jarzmik <robert.jarzmik@xxxxxxx> writes:
>>> that "ping mioa701" doesn't work anymore.
>>
>> that's kind of expected considering pxa27x disabled the UDC and
>> disconnects from the bus on suspend:
>
> Euh it's expected to work _after resume_.

sure is, but you can't expect it to have a proper IP. From host's
perspective this is a brand new usb0 network interface. Unless you have
dhcp client running on the phone and a server on your PC, you can't
assume it'll have IP ;-) (or statically configured, yada yada yada ;-)

>> static int pxa_udc_suspend(struct platform_device *_dev, pm_message_t state)
>> {
>> 	struct pxa_udc *udc = platform_get_drvdata(_dev);
>> 	struct pxa_ep *ep;
>>
>> 	ep = &udc->pxa_ep[0];
>> 	udc->udccsr0 = udc_ep_readl(ep, UDCCSR);
>>
>> 	udc_disable(udc);
>> 	udc->pullup_resume = udc->pullup_on;
>> 	dplus_pullup(udc, 0);
>>
>> 	return 0;
>> }
>>
>> I'm actually surprised that it ever worked before :-)
>
> I don't follow you : upon resume, ie. after pxa_udc_resume(), it
> worked before. The case that bothers me is after resume, not between
> suspend() and resume().

I got that :-) My surprise is how you managed to get IP
before. Statically configured ?

-- 
balbi

Attachment: signature.asc
Description: PGP signature


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

  Powered by Linux