Re: [PATCH 3/4] mfd: s2mps11: Add device tree support

From: Mark Brown
Date: Thu Jul 04 2013 - 05:23:23 EST


On Thu, Jul 04, 2013 at 10:37:30AM +0530, Yadwinder Singh Brar wrote:

> - Currently ramp-delay (= 0) if not defined in DT, leaves the
> hardware with default

That's just an issue in the code if that is the case, you can test for
the presence of a property independently of getting its value.

> - As ramp time is inversely propositional to ramp-rate(i.e. ramp-delay ,
> its wrongly named, my mistake :( ) so it may look weired to use ramp-rate =0
> as no ramp(ramp_time = 0).

I think it's fairly obvious what's going on there, it fits in with the
general pattern that a lower number is faster too.

> I had below idea in my mind, I dropped it because I thought it may be
> to early to put common code as no other driver in mainline appeared
> with this requirement yet but probably may come.

There are plenty of drivers that could configure this, it's just that
it's normally done either in hardware or the bootloader rather than by
the OS.

Attachment: signature.asc
Description: Digital signature