Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1563360 > unrolled thread
| Started by | Peter Chen <peter.chen@nxp.com> |
|---|---|
| First post | 2017-01-20 09:20 +0100 |
| Last post | 2017-01-20 09:20 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
RE: [PATCH 1/1] regulator: fixed: add suspend pm routines for pinctrl Peter Chen <peter.chen@nxp.com> - 2017-01-20 09:20 +0100
| From | Peter Chen <peter.chen@nxp.com> |
|---|---|
| Date | 2017-01-20 09:20 +0100 |
| Subject | RE: [PATCH 1/1] regulator: fixed: add suspend pm routines for pinctrl |
| Message-ID | <t1CAp-4Pq-11@gated-at.bofh.it> |
> >>>On Tue, Jan 03, 2017 at 05:02:47PM +0800, Peter Chen wrote: >>>> At some systems, the pinctrl setting will be lost or needs to set as >>>> "sleep" state to save power consumption. So, we need to configure >>>> pinctrl as "sleep" state when system enters suspend, and as "default" >>>> state after system resumes. In this way, the pinctrl value can be >>>> recovered as "default" state after resuming. >>> >>>I thought this was supposed to be done automatically by the driver core? >>>If not it should be, every single driver is likely to end up with that. >> >>Good idea, I will send a patch for that. >> > >After checking more, it is not suitable for driver core do it since different driver has >different usage for "sleep" pinctrl. Below are some examples: > >- Some drivers set "idle" for pinctrl when system goes to suspend >- Some drivers has some conditions for setting "sleep" for pinctrl >eg: drivers/net/ethernet/freescale/fec_main.c >- Some drivers may set "sleep" for pinctrl as ->close interface, but not system >suspend interface >- Some drivers can be woken up for "sleep" pinctrl, some may not. > Hi Mark, Any more comment for this patch? Thanks. Peter
Back to top | Article view | linux.kernel
csiph-web