fix-lid302dl-bitbang-all-the-way-baby.patch
commit97f806ac51658568ca09d1318e5749377f112782
authorAndy Green <andy@openmoko.com>
Mon, 13 Oct 2008 11:01:05 +0000 (13 12:01 +0100)
committerMike Westerhof <mwester@dls.net>
Mon, 13 Oct 2008 20:17:36 +0000 (13 15:17 -0500)
treea8e7d7469d582f7e64eaa6eaaf920d094a2b917f
parent0e1a95a639d0fb947dd2daf569d318d5dd895581
fix-lid302dl-bitbang-all-the-way-baby.patch

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.

Signed-off-by: Andy Green <andy@openmoko.com>
arch/arm/mach-s3c2440/mach-gta02.c
drivers/input/misc/lis302dl.c
include/linux/lis302dl.h