Irqcfg moved to chip data instead of platform data.
This simplifies access in interrupt handler little bit.
Input device open and close functions set status for
interrupt threaded handler once.
Unnecessary check for interrupt source removed since
it is enough that active interrupt line indicates
Based on pm_runtime control, turn lis3 regulators on and off.
Perform context save and restore on transitions.
Feature is optional and must be enabled in platform data.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/hwmon/lis3lv02d.c | 52
Call input device poll function at device open to refresh coordinates
immediately. This is needed for the case where poll interval is set to
zero and coordinate updates happens purely under interrupt control.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/hwmon/lis3lv02d.c |5
Sometimes lis3 chip seems to fail to setup factory tuning at boot up.
This probably happens if there is some odd power ramp down ramp up sequence
for example in device restart. Set boot bit in control2 register to
trig boot sequence manually and wait until it is finished.
Signed-off-by: Samu
If lis3lv02d_init_device fails, HW resources were not released
properly. In case of failure call release_resources if available.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/hwmon/lis3lv02d_i2c.c |5 +
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git
Short documentation at kernel doc format.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
include/linux/lis3lv02d.h | 41 +
1 files changed, 41 insertions(+), 0 deletions(-)
diff --git a/include/linux/lis3lv02d.h b/include/linux/lis3lv02d.h
index
Default fuziness is set smaller for 8 device.
In 12 bit device LSB is quite close to 1 mg
(mg = 1 / 1000 of earth gravity).
In 8bit device LSB is about 18 mg.
Set fuziness to 1 for 8 bit device.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/hwmon/lis3lv02d.c | 18
Add optional blockread function to interface driver. If available
the chip driver uses it for data register access. For 12 bit device
it reads 6 bytes to get 3*16bit data. For 8 bit device it reads out
5 bytes since every second byte is dummy.
This optimizes bus usage and reduces number of
Configure chip to data ready mode in selftest and count received
interrupts to see that interrupt line(s) are working.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/hwmon/lis3lv02d.c | 87
drivers/hwmon/lis3lv02d.h |3 +-
2
Add pm_runtime support to lis3 core driver.
Add pm_runtime support to lis3 i2c driver.
spi and hp_accel drivers are not yet supported. Old always
on functionality remains for those.
For sysfs there is 5 second delay before turning off the
chip to avoid long ramp up delay.
Signed-off-by: Samu
Changes are tested only with I2C interface using 8bit sensor since I don't
have other possibilities. Some features are not enabled
by default since I can't test them with all possible configurations.
Platform data contains field which controls new features.
Description about the changes:
0001:
I think this now addresses all the points raised in previous review, as well
as adding runtime power management support which is needed for MID
platforms.
From: Wen Wang wen.w.w...@intel.com
Initial release of the driver. Updated and verified on hardware.
Cleaned up as follows
Alan Cox:
On 10/22/10 12:57, Samu Onkalo wrote:
Based on pm_runtime control, turn lis3 regulators on and off.
Perform context save and restore on transitions.
Feature is optional and must be enabled in platform data.
Answers all my queries on the previous version
Signed-off-by: Samu Onkalo
On 10/22/10 12:57, Samu Onkalo wrote:
Add pm_runtime support to lis3 core driver.
Add pm_runtime support to lis3 i2c driver.
spi and hp_accel drivers are not yet supported. Old always
on functionality remains for those.
For sysfs there is 5 second delay before turning off the
chip to
On 10/22/10 12:57, Samu Onkalo wrote:
Added default output data rate setting to platform data.
If default rate is 0, reset default value is used.
Added control for duration via platform data.
Added possibility to configure interrupts to trig on
both rising and falling edge. The lis3 WU unit
On 10/22/10 12:57, Samu Onkalo wrote:
Add optional blockread function to interface driver. If available
the chip driver uses it for data register access. For 12 bit device
it reads 6 bytes to get 3*16bit data. For 8 bit device it reads out
5 bytes since every second byte is dummy.
This
On 10/22/10 12:57, Samu Onkalo wrote:
Short documentation at kernel doc format.
Please check the use of tabs etc in the alignment of the documentation.
It might work out right, but looks a bit random currently.
Couple of typos. Otherwise looks fine to me, but I'll only give
a reviewed by on
On Fri, 2010-10-22 at 07:57 -0400, Samu Onkalo wrote:
Changes are tested only with I2C interface using 8bit sensor since I don't
have other possibilities. Some features are not enabled
by default since I can't test them with all possible configurations.
Platform data contains field which
ctrl_* is deprecated. We should to use __raw_*.
Signed-off-by: Nobuhiro Iwamatsu iwama...@nigauri.org
---
drivers/i2c/busses/i2c-sh7760.c |4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/i2c/busses/i2c-sh7760.c b/drivers/i2c/busses/i2c-sh7760.c
index
Op 22-10-10 22:08, Guenter Roeck schreef:
On Fri, 2010-10-22 at 07:57 -0400, Samu Onkalo wrote:
Changes are tested only with I2C interface using 8bit sensor since I don't
have other possibilities. Some features are not enabled
by default since I can't test them with all possible
On Fri, Oct 22, 2010 at 07:44:48PM -0400, Éric Piel wrote:
Op 22-10-10 22:08, Guenter Roeck schreef:
On Fri, 2010-10-22 at 07:57 -0400, Samu Onkalo wrote:
Changes are tested only with I2C interface using 8bit sensor since I don't
have other possibilities. Some features are not enabled
by
21 matches
Mail list logo