lkml.org 
[lkml]   [2014]   [Jan]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: About gpio-regulator setting on DT
On Wed, Jan 29, 2014 at 04:08:30PM -0800, Kuninori Morimoto wrote:

> /* build initial state from gpio init data. */
> state = 0;
> for (ptr = 0; ptr < drvdata->nr_gpios; ptr++) {
> if (config->gpios[ptr].flags & GPIOF_OUT_INIT_HIGH) <== we need this
> state |= (1 << ptr);
> }
> drvdata->state = state;

So this just looks like a bug in the code - the DT has all the data
needed but the parsing code isn't setting everything up that the rest of
the code needs and/or we should drop one of the ways of configuring
things in the main probe function. Avoiding having two ways of doing
the same thing in the main probe would definitely be good.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2014-01-30 13:41    [W:0.167 / U:0.364 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site