Re: Regulator: drivers that need to know their supply

2016-04-10 Thread Mark Brown
On Thu, Apr 07, 2016 at 08:17:25PM +0200, Martin Fuzzey wrote: > On 07/04/16 19:02, Mark Brown wrote: > >No, this is not sensible. You should be telling the framework about the > >slew rate and letting the framework work out how long it's going to take > >to transition. Your driver shouldn't be

Re: Regulator: drivers that need to know their supply

2016-04-07 Thread Martin Fuzzey
Thanks for your reply. On 07/04/16 19:02, Mark Brown wrote: On Thu, Apr 07, 2016 at 03:25:09PM +0200, Martin Fuzzey wrote: To implement the .enable_time() method I need the voltage (which is the supply's voltage). No, this is not sensible. You should be telling the framework about the slew r

Re: Regulator: drivers that need to know their supply

2016-04-07 Thread Mark Brown
On Thu, Apr 07, 2016 at 03:25:09PM +0200, Martin Fuzzey wrote: > To implement the .enable_time() method I need the voltage (which is > the supply's voltage). No, this is not sensible. You should be telling the framework about the slew rate and letting the framework work out how long it's going t

Regulator: drivers that need to know their supply

2016-04-07 Thread Martin Fuzzey
Hi, I am working on a driver for the tps22993 load switch. This chip has configurable slew rates but no voltage setting (as it's just a switch). To implement the .enable_time() method I need the voltage (which is the supply's voltage). The problem is that, when my regulator is configured as al