- 26 10月, 2010 6 次提交
-
-
由 Samu Onkalo 提交于
If lis3lv02d_init_device fails, HW resources were not released properly. In case of failure call release_resources if available. Signed-off-by: NSamu Onkalo <samu.p.onkalo@nokia.com> Acked-by: NEric Piel <eric.piel@tremplin-utc.net> Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com>
-
由 Samu Onkalo 提交于
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 operations and interrupts needed for one data update. Signed-off-by: NSamu Onkalo <samu.p.onkalo@nokia.com> Acked-by: NJonathan Cameron <jic23@cam.ac.uk> Acked-by: NEric Piel <eric.piel@tremplin-utc.net> Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com>
-
由 Samu Onkalo 提交于
All axis enable bits are set to 0 at module remove. Restore reset default value at init. Signed-off-by: NSamu Onkalo <samu.p.onkalo@nokia.com> Acked-by: NEric Piel <eric.piel@tremplin-utc.net> Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com>
-
由 Samu Onkalo 提交于
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: NSamu Onkalo <samu.p.onkalo@nokia.com> Acked-by: NJonathan Cameron <jic23@cam.ac.uk> Acked-by: NEric Piel <eric.piel@tremplin-utc.net> Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com>
-
由 Samu Onkalo 提交于
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: NSamu Onkalo <samu.p.onkalo@nokia.com> Acked-by: NJonathan Cameron <jic23@cam.ac.uk> Acked-by: NEric Piel <eric.piel@tremplin-utc.net> Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com>
-
由 Takashi Iwai 提交于
The axis-mapping of lis3dev device on many (rather most) HP machines doesn't follow the standard. When each new model appears, users need to adjust again. Testing this requires the rebuild of kernel, thus it's not trivial for end-users. This patch adds a module parameter "axes" to allow a custom axis-mapping without patching and recompiling the kernel driver. User can pass the parameter such as axes=3,2,1. Also it can be changed via sysfs. Signed-off-by: NTakashi Iwai <tiwai@suse.de> Acked-by: NEric Piel <eric.piel@tremplin-utc.net> Cc: Jean Delvare <khali@linux-fr.org> Cc: Guenter Roeck <guenter.roeck@ericsson.com> Signed-off-by: NAndrew Morton <akpm@linux-foundation.org> Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com>
-
- 17 9月, 2010 1 次提交
-
-
由 Kuninori Morimoto 提交于
If CONFIG_PM was selected and lis3lv02d_platform_data was NULL, the kernel will be panic when halt command run. Reported-by: NYusuke Goda <yusuke.goda.sx@renesas.com> Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com> Acked-by: NSamu Onkalo <samu.p.onkalo@nokia.com> Sigend-off-by: NJean Delvare <khali@linux-fr.org>
-
- 18 12月, 2009 1 次提交
-
-
由 Samu Onkalo 提交于
Signed-off-by: NSamu Onkalo <samu.p.onkalo@nokia.com> Cc: Éric Piel <eric.piel@tremplin-utc.net> Cc: Kalhan Trisal <kalhan.trisal@intel.com> Cc: Jean Delvare <khali@linux-fr.org> Signed-off-by: NAndrew Morton <akpm@linux-foundation.org> Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
-