[PATCH] fix-lid302dl-bitbang-all-the-way-baby.patch

Andy Green andy at openmoko.com
Wed Aug 27 00:40:57 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Somebody in the thread at some point said:
| This large patch removes motion sensor from Linux SPI bitbang driver.
| Previously, some access was done through Linux SPI protected
| by a mutex, and the ISR access was done by platform bitbang code due
| to inability of Linux SPI driver to work in the interrupt context.
|
| Now all access is done by bitbang callbacks in mach_gta02.c and are
| protected by single scheme of interrupt lockout for the duration --
| I line-by-line'd the driver to confirm that best I could, adding
| protection and taking more care on several /sys related paths.
|
| Because this is no longer a Linux SPI bus driver, the path for various
| /sys things have changed.  They can now be found down, eg,
|
| /sys/devices/platform/lis302dl.1/sample_rate
|
| lis302dl.1 is the top sensor and .2 the bottom.  The names of the input
| susbsytem paths remain the same as before.

I tested this for some minutes in two ssh sessions hexdumping the same
and both channels, it seems OK.  But because of the change in /sys path,
~ it feels better to get some confirmation it improves the situation
before putting people though that change on stable, so I stuck it on
andy branch right now and would appreciate some testing... it should
apply pretty well to 2.6.26 too.

- -Andy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAki0hnkACgkQOjLpvpq7dMqYNQCcCDeXcvXMm9vkKR3bt9O5Urz1
J5AAn1SFgEnwOu9kjbGbWex0657XJKaD
=b5aO
-----END PGP SIGNATURE-----



More information about the openmoko-kernel mailing list