From: Daniel Mack <daniel@caiaq.de>
To: Samu Onkalo <samu.p.onkalo@nokia.com>
Cc: eric.piel@tremplin-utc.net, pavel@ucw.cz,
lm-sensors@lm-sensors.org, linux-kernel@vger.kernel.org
Subject: Re: [lm-sensors] [PATCH 0/6] lis3lv02d: Power management,
Date: Thu, 11 Feb 2010 19:01:52 +0000 [thread overview]
Message-ID: <20100211190152.GD28972@buzzloop.caiaq.de> (raw)
In-Reply-To: <1265271848-26559-1-git-send-email-samu.p.onkalo@nokia.com>
On Thu, Feb 04, 2010 at 10:24:02AM +0200, Samu Onkalo wrote:
> Lis3 accelerometer chip family changes for power management,
> click and threshold event handling.
>
> Patch set adds interrupt handlers for click/tap events and threshold
> based events. Actual configuration which events are enabled
> is done via platform data. All the features cannot be used in parallel.
> Interrupts are implemented only for 8 bit device, since I'm not familiar
> with other devices and I don't have suitable testing environment.
I tested that with an PXA3xx based board featuring a 8bit sensor, and at
least I cannot see any regression :)
You can take this as an
Tested-by: Daniel Mack <daniel@caiaq.de>
Thanks,
Daniel
> Changes:
>
> lis3: Add missing constants for 8bit device
> This is quite clear. Some click feature related register definitions
> were missing.
>
> lis3: Separate configuration function for 8 bit device
> Move platformdata based configurations for 8 bit device to
> separate function to keep common part little bit more readable.
>
> lis3: Introduce platform data for second ff / wu unit
> 8 bit device has two freefall / wakeup detection blocks. Add possibility
> to configure also the second unit. Change hipass filter configuration
> to platform data. Change is compatible with existing platform data.
>
> lis3: Power control for the chip
> This kind of feature has been in the driver earlier. It was removed
> because saving was so small in laptop environment. However, in smaller
> devices, even a small saving need to be implemented. When driver detects
> that no-one is really interested about the acceleration, chip is powered down.
> Input device, freefall device and sysfs are controlling this. By default,
> chip is powered on to keep functionality similar to current implementation.
>
> lis3: Add skeletons for interrupt handlers
> Interrupt handlers are added in two patches to keep changes cleaner.
> This first patch adds two dummy threaded interrupt handlers for 8 bit device.
>
> lis3: Interrupt handlers for 8bit wakeup and click events
> This patch adds content to dummy handlers. Depending on the chip configuration,
> either click or ff/wu handling is called. For click event, BTN input event is
> sent separately for each axes. For threshold event, coordinates are updated
> immediatelly to input device. This allows input device to be used either in
> polled mode and / or interrupt driven mode. Polling can stopped from userspace
> by via input device sysfs.
>
> Patch set applies to 2.6.33-RC6 tree.
> Tested with 2.6.32 environment for omap3
>
> Samu Onkalo (6):
> lis3: Add missing constants for 8bit device
> lis3: Separate configuration function for 8 bit device
> lis3: Introduce platform data for second ff / wu unit
> lis3: Power control for the chip
> lis3: Add skeletons for interrupt handlers
> lis3: Interrupt handlers for 8bit wakeup and click events
>
> drivers/hwmon/lis3lv02d.c | 308 +++++++++++++++++++++++++++++++++--------
> drivers/hwmon/lis3lv02d.h | 12 ++
> drivers/hwmon/lis3lv02d_i2c.c | 8 +-
> drivers/hwmon/lis3lv02d_spi.c | 12 +-
> include/linux/lis3lv02d.h | 12 ++
> 5 files changed, 287 insertions(+), 65 deletions(-)
>
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
WARNING: multiple messages have this Message-ID (diff)
From: Daniel Mack <daniel@caiaq.de>
To: Samu Onkalo <samu.p.onkalo@nokia.com>
Cc: eric.piel@tremplin-utc.net, pavel@ucw.cz,
lm-sensors@lm-sensors.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/6] lis3lv02d: Power management, click and threshold interrupts
Date: Thu, 11 Feb 2010 20:01:52 +0100 [thread overview]
Message-ID: <20100211190152.GD28972@buzzloop.caiaq.de> (raw)
In-Reply-To: <1265271848-26559-1-git-send-email-samu.p.onkalo@nokia.com>
On Thu, Feb 04, 2010 at 10:24:02AM +0200, Samu Onkalo wrote:
> Lis3 accelerometer chip family changes for power management,
> click and threshold event handling.
>
> Patch set adds interrupt handlers for click/tap events and threshold
> based events. Actual configuration which events are enabled
> is done via platform data. All the features cannot be used in parallel.
> Interrupts are implemented only for 8 bit device, since I'm not familiar
> with other devices and I don't have suitable testing environment.
I tested that with an PXA3xx based board featuring a 8bit sensor, and at
least I cannot see any regression :)
You can take this as an
Tested-by: Daniel Mack <daniel@caiaq.de>
Thanks,
Daniel
> Changes:
>
> lis3: Add missing constants for 8bit device
> This is quite clear. Some click feature related register definitions
> were missing.
>
> lis3: Separate configuration function for 8 bit device
> Move platformdata based configurations for 8 bit device to
> separate function to keep common part little bit more readable.
>
> lis3: Introduce platform data for second ff / wu unit
> 8 bit device has two freefall / wakeup detection blocks. Add possibility
> to configure also the second unit. Change hipass filter configuration
> to platform data. Change is compatible with existing platform data.
>
> lis3: Power control for the chip
> This kind of feature has been in the driver earlier. It was removed
> because saving was so small in laptop environment. However, in smaller
> devices, even a small saving need to be implemented. When driver detects
> that no-one is really interested about the acceleration, chip is powered down.
> Input device, freefall device and sysfs are controlling this. By default,
> chip is powered on to keep functionality similar to current implementation.
>
> lis3: Add skeletons for interrupt handlers
> Interrupt handlers are added in two patches to keep changes cleaner.
> This first patch adds two dummy threaded interrupt handlers for 8 bit device.
>
> lis3: Interrupt handlers for 8bit wakeup and click events
> This patch adds content to dummy handlers. Depending on the chip configuration,
> either click or ff/wu handling is called. For click event, BTN input event is
> sent separately for each axes. For threshold event, coordinates are updated
> immediatelly to input device. This allows input device to be used either in
> polled mode and / or interrupt driven mode. Polling can stopped from userspace
> by via input device sysfs.
>
> Patch set applies to 2.6.33-RC6 tree.
> Tested with 2.6.32 environment for omap3
>
> Samu Onkalo (6):
> lis3: Add missing constants for 8bit device
> lis3: Separate configuration function for 8 bit device
> lis3: Introduce platform data for second ff / wu unit
> lis3: Power control for the chip
> lis3: Add skeletons for interrupt handlers
> lis3: Interrupt handlers for 8bit wakeup and click events
>
> drivers/hwmon/lis3lv02d.c | 308 +++++++++++++++++++++++++++++++++--------
> drivers/hwmon/lis3lv02d.h | 12 ++
> drivers/hwmon/lis3lv02d_i2c.c | 8 +-
> drivers/hwmon/lis3lv02d_spi.c | 12 +-
> include/linux/lis3lv02d.h | 12 ++
> 5 files changed, 287 insertions(+), 65 deletions(-)
>
next prev parent reply other threads:[~2010-02-11 19:01 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-04 8:24 [lm-sensors] [PATCH 0/6] lis3lv02d: Power management, Samu Onkalo
2010-02-04 8:24 ` [PATCH 0/6] lis3lv02d: Power management, click and threshold interrupts Samu Onkalo
2010-02-04 8:24 ` [lm-sensors] [PATCH 1/6] lis3: Add missing constants for 8bit device Samu Onkalo
2010-02-04 8:24 ` Samu Onkalo
2010-02-04 8:24 ` [lm-sensors] [PATCH 2/6] lis3: Separate configuration function for Samu Onkalo
2010-02-04 8:24 ` [PATCH 2/6] lis3: Separate configuration function for 8 bit device Samu Onkalo
2010-02-04 8:24 ` [lm-sensors] [PATCH 3/6] lis3: Introduce platform data for second Samu Onkalo
2010-02-04 8:24 ` [PATCH 3/6] lis3: Introduce platform data for second ff / wu unit Samu Onkalo
2010-02-04 8:24 ` [lm-sensors] [PATCH 4/6] lis3: Power control for the chip Samu Onkalo
2010-02-04 8:24 ` Samu Onkalo
2010-02-04 8:24 ` [lm-sensors] [PATCH 5/6] lis3: Add skeletons for interrupt handlers Samu Onkalo
2010-02-04 8:24 ` Samu Onkalo
2010-02-04 8:24 ` [lm-sensors] [PATCH 6/6] lis3: Interrupt handlers for 8bit wakeup Samu Onkalo
2010-02-04 8:24 ` [PATCH 6/6] lis3: Interrupt handlers for 8bit wakeup and click events Samu Onkalo
2010-02-05 2:12 ` [lm-sensors] [PATCH 0/6] lis3lv02d: Power management, Daniel Mack
2010-02-05 2:12 ` [PATCH 0/6] lis3lv02d: Power management, click and threshold interrupts Daniel Mack
2010-02-11 19:01 ` Daniel Mack [this message]
2010-02-11 19:01 ` Daniel Mack
2010-02-11 19:17 ` [lm-sensors] [PATCH 0/6] lis3lv02d: Power management, Éric Piel
2010-02-11 19:17 ` [PATCH 0/6] lis3lv02d: Power management, click and threshold interrupts Éric Piel
2010-02-12 6:31 ` [lm-sensors] [PATCH 0/6] lis3lv02d: Power management, samu.p.onkalo
2010-02-12 6:31 ` [PATCH 0/6] lis3lv02d: Power management, click and threshold interrupts samu.p.onkalo
2010-02-12 9:56 ` [lm-sensors] [PATCH 0/6] lis3lv02d: Power management, samu.p.onkalo
2010-02-12 9:56 ` [lm-sensors] [PATCH 0/6] lis3lv02d: Power management, click and threshold interrupts samu.p.onkalo
2010-02-12 12:21 ` [lm-sensors] [PATCH 0/6] lis3lv02d: Power management, Éric Piel
2010-02-12 12:21 ` [PATCH 0/6] lis3lv02d: Power management, click and threshold interrupts Éric Piel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100211190152.GD28972@buzzloop.caiaq.de \
--to=daniel@caiaq.de \
--cc=eric.piel@tremplin-utc.net \
--cc=linux-kernel@vger.kernel.org \
--cc=lm-sensors@lm-sensors.org \
--cc=pavel@ucw.cz \
--cc=samu.p.onkalo@nokia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.