Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1482143
| From | Felipe Balbi <balbi@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: Question about suspend/resume clock handling in dwc3-of-simple.c |
| Date | 2016-09-13 07:40 +0200 |
| Message-ID | <sgOBP-5N0-1@gated-at.bofh.it> (permalink) |
| References | <sgECu-7at-43@gated-at.bofh.it> <sgEMb-7tX-39@gated-at.bofh.it> <sgFoR-7LG-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
Hi, Guenter Roeck <linux@roeck-us.net> writes: >> > Should it be clk_disable_unprepare(), or maybe something like the >> > following >> > >> > if (!pm_runtime_status_suspended(dev)) >> > clk_disable_unprepare(); >> > else >> > clk_unprepare(); >> >> I'm not sure how balanced those calls are, yeah. I don't have HW to test >> PM with. But note that as it is, there is no actual runtime PM support, >> so clk_disable_unprepare() will always be necessary. >> >> Perhaps we will find further issues when someone tries to use runtime PM >> with dwc3-of-simple. ;-) >> > > We are working on code derived from it, so unless I can convince the author > that he can not just use clk_unprepare() I suspect we'll hit the problem. > If so, I'll let you know. Are you sending that upstream? Depending on your requirements, it might be easier to patch dwc3-of-simple.c then adding yet another glue layer :-) -- balbi
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Question about suspend/resume clock handling in dwc3-of-simple.c Guenter Roeck <linux@roeck-us.net> - 2016-09-12 21:00 +0200
Re: Question about suspend/resume clock handling in dwc3-of-simple.c Felipe Balbi <balbi@kernel.org> - 2016-09-12 21:10 +0200
Re: Question about suspend/resume clock handling in dwc3-of-simple.c Guenter Roeck <linux@roeck-us.net> - 2016-09-12 21:50 +0200
Re: Question about suspend/resume clock handling in dwc3-of-simple.c Felipe Balbi <balbi@kernel.org> - 2016-09-13 07:40 +0200
Re: Question about suspend/resume clock handling in dwc3-of-simple.c Guenter Roeck <linux@roeck-us.net> - 2016-09-13 15:20 +0200
Re: Question about suspend/resume clock handling in dwc3-of-simple.c Felipe Balbi <balbi@kernel.org> - 2016-09-13 16:10 +0200
csiph-web