lkml.org 
[lkml]   [2019]   [Jan]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3 2/2] mfd: tps65218.c: Add input voltage options
On Wed, Jan 16, 2019 at 02:13:36PM +0000, Lee Jones wrote:
> On Mon, 14 Jan 2019, Christian Hohnstaedt wrote:
>
> > These options apply to all regulators in this chip.
> >
> > ti,strict-supply-voltage-supervision:
> > Set STRICT flag in CONFIG1
> > ti,under-voltage-limit-microvolt:
> > Select 2.75, 2.95, 3.25 or 3.35 V UVLO in CONFIG1
> > ti,under-voltage-hyst-microvolt:
> > Select 200mV or 400mV UVLOHYS in CONFIG2
> >
> > Signed-off-by: Christian Hohnstaedt <Christian.Hohnstaedt@wago.com>
> > Tested-by: Keerthy <j-keerthy@ti.com>
> > Reviewed-by: Keerthy <j-keerthy@ti.com>
> > ---
> > drivers/mfd/tps65218.c | 89 ++++++++++++++++++++++++++++++++++++++++++++
> > include/linux/mfd/tps65218.h | 4 ++
> > 2 files changed, 93 insertions(+)
>
> This looks like regulator code.
>
> Why aren't you placing it into the regulator driver?

This code manages properties of the chip, affecting all regulators.

The regulator-driver has no hook to be called once for the chip.
Even if I put this code into the regulator driver file,
I will have to call it from here.

This would introduce a dependency from the mfd to the regulator code.


Christian

\
 
 \ /
  Last update: 2019-01-17 06:55    [W:0.058 / U:9.144 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site