Re: Regulator enable/disable delay based on board design: How tohandle?

From: Mark Brown
Date: Mon Feb 13 2012 - 20:09:58 EST


On Mon, Feb 13, 2012 at 11:28:00PM +0530, Laxman Dewangan wrote:

> Interesting, Many regulator driver is written like it just take the
> regulator_init_data as the platform data and does not leave any
> option to add any new platform parameters.
> Not sure how can we add platform data without too much tempering on
> the existing user, but if we can add parameter of delay(settling
> time) in struct regulator_init_data then almost all driver can
> support such platform specific delay.

This is part of the reason why the driver_data field is present in the
constraints - the driver can take that and use it as a pdata within
pdata structure. It's not terribly nice to do that but it's possible.
A standard parameter might cause too much complexity as drivers try to
implement it even if they don't really need to (for example, due to
having soft control of this stuff already).

Attachment: signature.asc
Description: Digital signature