Subject: Re: Which is the read interface to GPIO?
To: None <simonb@wasabisystems.com>
From: KIYOHARA Takashi <kiyohara@kk.iij4u.or.jp>
List: port-evbmips
Date: 03/22/2006 12:06:44
Hi! Simon,


From: Simon Burge <simonb@wasabisystems.com>
Date: Tue, 21 Mar 2006 19:36:16 +1100

> I prefer 3) here.  Using in-kernel gpio ioctl's seems very heavy weight
> for what is needed, and duplicating the logic doesn't seem like the
> best way.  Perhaps the best way is to squirrel away the softc's of the
> primary and secondary GPIO blocks in a few static variables, or maybe
> store them in the devprop database?

The devprop_[sg]et() use sc_dev of softc the first arg.  However, it is
softc that we want.  ;-<
Is softc of the dummy passed to devprop_[sg]et()?  Or, is prop_[sg]et()
called?

--
kiyohara