2010/8/24 Mike Frysinger <[email protected]>: > On Tuesday, August 24, 2010 07:28:00 Frans Meulenbroeks wrote: >> commit c00e9e68d7f77cc3cf3475203860a66cafeba449: >> Use already cached fp rather than constantly re-opening things on the fly. >> breaks gpio operation. >> It is possible to reuse the cached fp, but then we need to seek to the >> beginning each time. >> /sys/class/gpio/gpio*/value contains only one byte so without seek >> we will get only one byte. > > ive changed it to rewind(). however, this sounds like useless overhead at the > kernel level. i'll start a thread on lkml complaining about being forced to > make two system calls when one should be sufficient. i'd point out that my > simple gpio driver design didnt have this limitation :P. > -mike
It would be nice to work without the seek. In that case maybe the clock toggle can be done by writing "010" in one write operation (if the pulse does not become too small, ofc 011110 could also be used then. rewind or fseek does not seem too much of a difference. Frans ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ UrJTAG-development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/urjtag-development
