Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1208660
| From | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCHv4 2/4] serial: imx: add runtime pm support |
| Date | 2015-08-17 17:50 +0200 |
| Message-ID | <pYuPE-3cv-21@gated-at.bofh.it> (permalink) |
| References | <pXBqa-7u1-3@gated-at.bofh.it> <pXBqa-7u1-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi, On Friday, August 14, 2015 09:37:46 PM Eduardo Valentin wrote: > This change introduces the runtime pm support on imx serial > driver. The objective is to be able to idle the uart > port whenever it is not in use while still being able > to wake it up when needed. The key changes in this patch are: > 1. Move the clock handling to runtime pm. Both, ipg and per, > are now handled in the suspend and resume callbacks. Only > enabling and disabling the clocks are handled in runtime > suspend and resume, so we are able to use runtime pm > in IRQ context. > 2. Clocks are prepared in probe and unprepared in remove, > so we do not need to prepare (may sleep) in runtime pm. > 3. We mark the device activity based on uart and console > callbacks. Whenever the device is needed and we want to > access registers, we runtime_pm_get and then mark its > last usage when we are done. This is done also across > IRQs and DMA callbacks. > 4. We reuse the infrastructure in place for suspend and > resume, so we do not need to redo wakeup configuration, > or context save and restore. > > After this change, the clocks are still sane, in the sense > of having balanced clock prepare and enable. The clock changes in this patch seem to make this driver non-functional with CONFIG_PM=n. Have you tested your changes with CONFIG_PM=n? Generally the driver should not depend on PM support to enable its clocks. We had this issue in few Exynos-specific drivers not that long time ago.. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCHv4 0/4] serial: imx: rework pm support and add runtime pm Eduardo Valentin <edubezval@gmail.com> - 2015-08-15 06:40 +0200
[PATCHv4 1/4] serial: imx: add a flag to indicate we are in the suspend path Eduardo Valentin <edubezval@gmail.com> - 2015-08-15 06:40 +0200
[PATCHv4 2/4] serial: imx: add runtime pm support Eduardo Valentin <edubezval@gmail.com> - 2015-08-15 06:40 +0200
Re: [PATCHv4 2/4] serial: imx: add runtime pm support Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> - 2015-08-17 17:50 +0200
Re: [PATCHv4 2/4] serial: imx: add runtime pm support Eduardo Valentin <edubezval@gmail.com> - 2015-08-17 19:30 +0200
csiph-web