Re: How to power gate a specific single device from outside?

2017-10-25 Thread Alan Cox
> Now, what I need in the kernel is to _selectively_ suspend devices > that are not needed in the "backup/emergency" mode. Which means you need to get the applications using them to die - or you could rewrite the driver top to bottom to have locking sufficient to ensure that your power management

Re: How to power gate a specific single device from outside?

2017-10-25 Thread Waldemar Rymarkiewicz
On 25 October 2017 at 01:56, Alan Cox wrote: > > For a lot of devices if you close it then it will try and put the device > into a low power state. If a driver isn't doing that then (unless there > are hardware constraints preventing it) it would make sense to fix it. > > There are some things ent

Re: How to power gate a specific single device from outside?

2017-10-24 Thread Alan Cox
> I could not find anything standard that let me power gate single > device from userland. Perhaps it's considered as a too risky operation > to expose to the user. I don't want to touch drivers too much as well > not to make them dependant on extra system feature. Better to have a > separate modul

How to power gate a specific single device from outside?

2017-10-24 Thread Waldemar Rymarkiewicz
Hi I am looking for a convenient way to power gate specific single device when the platform is running in backup mode - the platform lost main power supply and it's on backup buttery now. The intention is to save max power in backup mode and switch off all unnecessary blocks. I could not find any