summaryrefslogtreecommitdiff
path: root/include/linux/m4sensorhub.h
AgeCommit message (Collapse)Author
2014-11-04IKXCLOCK-4107 Add Additional M4 Panic Restore LogicEric Tashakkor
Added user settings recovery to the pedometer driver. Created panic recovery for display and audio statuses. Change-Id: I9520d54d66a7711201d6d17f726afd592365d74a Signed-off-by: Eric Tashakkor <w36098@motorola.com>
2014-08-10Revert "IKXCLOCK-3469"fsd017
This reverts commit af33de0af5b5803582d572f36a942b031c86540f. Jim was able to root cause the kernel panic introduced by polling sensors, so we don't need to revert Simon's change. This commit reverts the revert on Simon's commit for threaded irq. See note below on Jim's analysis of the issue: IKXCLOCK-3468 m4sensorhub: Use freezable workqueue The update of the sensorhub to use polling was based on the belief that the workqueue would be frozen before suspend and thawed afterwards. Unfortunately the system_wq used by schedule_delayed_work, is not freezable. Update the changes to use the system_freezable_wq. Change-Id: Ib759664a5bc61dad72207f59d2c8c672cd0f7c9
2014-08-10IKXCLOCK-3469fsd017
PT:xClock: Kernel Panic observed after full OTA to KGW38C.M219-919 Revert "mfd: sensorhub: convert to threaded IRQ handler" This reverts commit 767129434361fd64e64f975b5c559cf0e3a1d58f.
2014-08-07mfd: sensorhub: convert to threaded IRQ handlerSimon Wilson
Change-Id: Id1c895ffdae01b085b79adc3934c5a2438a12157 Signed-off-by: Simon Wilson <simonwilson@google.com>
2014-07-16IKXCLOCK-2951 Fix M4 Kernel Wakeup PrintsEric Tashakkor
Simplified M4 wakeup source printing to happen in the soft IRQ handler. Moved the wakeup event flag check to the hardware IRQ handler so that it is always called before resume. Removed an unused static variable in the M4 core. Change-Id: Ia1ff34cd06b51fc9bc5b6da5e87993c844414e93 Signed-off-by: Eric Tashakkor <w36098@motorola.com>
2014-07-11IKXCLOCK-2835 Fix M4 Panic RecoveryEric Tashakkor
Reduced the retry logic to only do a reboot and jump-to-user. Updated the panic handler to use the same call as m4sensorhub_initialize. Removed an unused static variable in the M4 core. Change-Id: I246e220540a4c02939c0ac435b670529d85c8f27 Signed-off-by: Eric Tashakkor <w36098@motorola.com>
2014-07-02IKXCLOCK-2594: Restore pedometer data after m4 panicViditha Hanumanthareddy
When m4 panics and resets, the total stepcount start from 0, and if an app was registered for pedometer data it would start seeing stepcount restart from 0 when this happens. This fix is to avoid the app from seeing total steps go lower than the previously reported total steps. Change-Id: Ia1c803175e34e582fa132de7ca88e8762e335fe7
2014-06-04IKXCLOCK-1762: Fix m4 panic handlersViditha Hanumanthareddy
Change-Id: I53820435227388c323d2beec6e678a94b674fff9
2014-05-29IKXCLOCK-1703 Add M4 Pre-Flash Callback for RTCEric Tashakkor
Added a pre-flash callback system for drivers with timing restrictions like RTC Updated the RTC driver to save and use set time requests until M4 is ready Fixed a bug where uninitialized memory was preventing the time being set Minor clean up of driver files to meet checkpatch style requirements Change-Id: I9e03f373226e678e8e884c836f68fcb265f39a57 Signed-off-by: Eric Tashakkor <w36098@motorola.com>
2014-05-27IKXCLOCK-1349 Fix Kernel Panics in M4 CoreEric Tashakkor
Fixed several panics caused by missing NULL checks in exported core functions (e.g., M4 fails to init but an outside process calls the sysfs interface) Fixed/added error messages to check for bad conditions earlier Fixed a bug in m4sensorhub-irq where IRQ book-keeping was not being done Added missing callback string to m4sensorhub-panic.c Change-Id: I82a8602f2327bf63982caa23af103c48a01bbcc1 Signed-off-by: Eric Tashakkor <w36098@motorola.com>
2014-05-14IKXCLOCK-1233: Hold a timed wakelock for m4 eventsViditha Hanumanthareddy
A few m4 interrupts/events like gesture, rtc alarm that can occur when kernel is suspended need enough time to allow the event to reach the higher layer before kernel suspends again. The absence of this was causing gestures & rtc alarm to get missed by the higher layers. Change-Id: Ibf10a1a031bd279ef2a488214498036c648220dc
2014-04-25IKXCLOCK-910: Sysfs to disable all m4 interruptsViditha Hanumanthareddy
Change-Id: I5593b43a86b2d6887ff348f99b63499cec5128fe
2014-03-05IKXCLOCK-320: sysfs for M4 download status and firmware versionAmit Jain
Change-Id: I3bca559e9d4a2e8cf4f2b149eb11c1c20b6dcf89
2014-03-05IKXCLOCK-193:Init mechanism of M4 based driversAmit Jain
Change-Id: I3c665f1c31d14e73d3776982d570c250e6f8c3b1 Reviewed-on: http://gerrit.pcs.mot.com/608745 SLTApproved: Slta Waiver <sltawvr@motorola.com> Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Sajid Dalvi <fsd017@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com>
2014-03-05IKXCLOCK-26: Add support for STM401Viditha Hanumanthareddy
Change-Id: I60489dfee479c9994792aaa82295a960f3965ae7 Reviewed-on: http://gerrit.pcs.mot.com/587826 SLTApproved: Slta Waiver <sltawvr@motorola.com> Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Douglas Zobel <dzobel1@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com>
2014-03-05IKG5-1478: Change m4 kernel modules to be kernel builtinsViditha Hanumanthareddy
Change-Id: I39210cb9b0d0cf75042b5adcfa57da8b800f89a5 Reviewed-on: http://gerrit.pcs.mot.com/588276 SLTApproved: Slta Waiver <sltawvr@motorola.com> Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Douglas Zobel <dzobel1@motorola.com> Reviewed-by: Sajid Dalvi <fsd017@motorola.com> Reviewed-by: Jee Su Chang <w20740@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com>
2014-03-05IKG5-1475 : Add m4 firmware filename to device treefsd017
Change-Id: I677e5d44f0a2ebef1938d8e56672205725c6808d Reviewed-on: http://gerrit.pcs.mot.com/585574 SLTApproved: Slta Waiver <sltawvr@motorola.com> Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Jee Su Chang <w20740@motorola.com> Reviewed-by: Douglas Zobel <dzobel1@motorola.com> Reviewed-by: James Wylder <jwylder@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com>
2014-03-05CW integration and minnow bringupDoug Zobel
* create minnow machine type * create Android makefile * add pre-commit syntax check * enable -Werror * Add drivers: CPCAP, TPS65xxx, m4sensorhub, atmxt, lm3535, usb gadget, minnow display, TI 12xx wireless Change-Id: I7962f5e1256715f2452aed5a62a4f2f2383d5046