On Sun Mar 23 15:56:52 EDT 2014, pau...@gmail.com wrote:
> On Sun, Mar 23, 2014 at 8:47 PM, Gorka Guardiola <pau...@gmail.com> wrote:
> 
> >
> > if(!setonce){
> >       setonce = 1;
> >       serialctl(p, "l8 i1");  /* default line parameters */
> > }
> 
> And setonce needs to live in the interface, and it needs to be locked, etc.

another idea: since this is only needed by some hardware.  and then only in 
init.
why not make it the responsibility of such hardware to do this in the init
fn.  then the problem can be addressed without any special cases like
!setonce.

what do you think?

- erik

Reply via email to