aboutsummaryrefslogtreecommitdiff
path: root/include/uapi/linux
Commit message (Collapse)AuthorAgeFilesLines
* BACKPORT: PCI: Make PCI_ROM_ADDRESS_MASK a 32-bit constantNick Desaulniers2019-08-151-1/+1
| | | | | | | | | | | | | | | A 64-bit value is not needed since a PCI ROM address consists in 32 bits. This fixes a clang warning about "implicit conversion from 'unsigned long' to 'u32'". Also remove now unnecessary casts to u32 from __pci_read_base() and pci_std_update_resource(). Change-Id: I9fe11487a5cab742501444eccab7b405a9ba4885 Signed-off-by: Matthias Kaehlcke <mka@chromium.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Bug: 62057517 Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
* Revert "Revert "rtc: alarm: Add power-on alarm feature""a7301c2018-12-071-0/+1
| | | | | | | | | This reverts commit 3f8342d655e7fb4f780878d192a051a9a18c1e4d. To keep moto change: d8053d4 (CR): time: alarmtimer: Add Power ON Alarm check Change-Id: I5968abbeee85a065f55ca608dea5c57afae42c05 Signed-off-by: a7301c <a7301c@motorola.com>
* add "tlv" moduleWenjun Yang2018-12-071-0/+40
| | | | | | | | | | | | | | | User space can set "tlv" format rules by iptables, add this module to process tlv format data, reporting a netlink message contain the token when the tlv data rule was matched. Change-Id: I76dc1b38fbe039f03162a2945eaf065161bab6d6 Reviewed-on: https://gerrit.mot.com/1082499 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hongjie Liu <liuhj7@lenovo.com> Reviewed-by: Igor Kovalenko <igork@motorola.com> Submit-Approved: Jira Key
* kernel: support layered NFLOGYu Miao2018-12-071-0/+11
| | | | | | | | | | | | | | | Add parameter --nflog-layer to get specified layer data. All by default, so no effect on existed code. Change-Id: I14081e402be21b4ef5859c015f09d7ed9431f646 Signed-off-by: Yu Miao <miaoyu4@lenovo.com> Reviewed-on: https://gerrit.mot.com/1082466 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Igor Kovalenko <igork@motorola.com> Submit-Approved: Jira Key
* Fix for ACDB initialization errorAshank Sinha2018-12-071-1/+3
| | | | | | | | | | | | | | | | | | | | | | | ACDB initialization was not proper and hence ACDB related errors were seen. a) There was a mismatch in the enum value of AFE_SIDETONE_IIR_CAL_TYPE defined in "msm_audio_calibration.h" and "acdb-loader.c". b) "afe_sidetone Cal_block not found" errors were seen in kernel logs. This patch resolves the above issues. Change-Id: Ib00b88fa37d5eed39bf4472c185c3dc767bf8cb5 Signed-off-by: Neeraj Kumar <neerajk@motorola.com> Reviewed-on: https://gerrit.mot.com/1055247 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Ashank Sinha <sinhaash@motorola.com> Reviewed-by: Suresh Jayappa <sureshj@motorola.com> Reviewed-by: Ravikumar Vembu <raviv@motorola.com> Submit-Approved: Jira Key
* Revert "NFC: Detection of NQ chip set and firmware version"Weilong Wu2018-12-073-24/+0
| | | | | | | | | | | | | | | | | | | | This reverts commit 3bac5e163cebad4f2cb69b855e0b74acca2b9098. Mot-CRs-fixed: (CR) Don't need this ID check logic as we dont use QC user space components. QC definition of IDs dont match what we have our product. Signed-off-by: Weilong Wu <wuwl10@motorola.com> Change-Id: I39b2e008e6e7355f765ad428561ce64b55e411e2 Reviewed-on: https://gerrit.mot.com/1035884 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Balachandar Swami <balaswami@motorola.com> Reviewed-by: Mingyong Lu <lumy1@motorola.com> Reviewed-by: Huosheng Liao <liaohs@motorola.com> Submit-Approved: Jira Key
* Sensor:add check when get akm asacuijy22018-12-071-0/+2
| | | | | | | | | | | | | | | | | | The asa only get once when boot, if it's value is zero, will cause AKSC_CERTIFICATION_DENIED And retry when get asa to avoid this issue. If asa's value still zero after retrying, set it to default value 0x80, which from AKMD's advice Change-Id: Ie36fcc7ba14c457d89cc3243ea23644e00bcb6d8 Signed-off-by: cuijy2 <cuijy1@motorola.com> Reviewed-on: https://gerrit.mot.com/910393 SLTApproved: Slta Waiver <sltawvr@motorola.com> SME-Granted: SME Approvals Granted Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Igor Kovalenko <igork@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com>
* Add ioctl for low persistence display mode to MDSS driver.Ruben Brunk2018-12-071-0/+1
| | | | | | | | | | | | | | | | Bug: 26217194 Mot-CRs-fixed: (CR) Change-Id: I996756f6d31b5f31fd02141a2d8130e313ff0833 Signed-off-by: Patrick Auchter <auchter@motorola.com> Reviewed-on: https://gerrit.mot.com/884067 SLTApproved: Slta Waiver <sltawvr@motorola.com> SME-Granted: SME Approvals Granted Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Bang Nguyen <bangnguyen@motorola.com> Reviewed-by: Shi-Yong Li <a22381@motorola.com> Reviewed-by: Igor Kovalenko <igork@motorola.com> Reviewed-by: Fred Fettinger <fettinge@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com>
* moto-sensorhub: Add additional VR sensorsDaniel Moore2018-12-072-21/+58
| | | | | | | | | | | | | | | | | | Adding uncal gyro, uncal mag, ALS, display rotate, gravity, linear accel, and rotation vectors(9axis/6axis/Game). All contained in our vr_data structure and designed to be under the QC 8996 I2C HW Fifo size. Change-Id: I26f26833b77d59cbbad4e36bb6c8cfe2d4382876 Signed-off-by: Daniel Moore <dtmoore@motorola.com> Reviewed-on: https://gerrit.mot.com/896046 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver <sltawvr@motorola.com> Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Robert Wiegand <Robert.P.Wiegand@motorola.com> Reviewed-by: Igor Kovalenko <igork@motorola.com> Reviewed-by: Russell Knize <rknize@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com>
* uapi/stml0xx_vmm: register for receiving commandsmolg12018-12-071-3/+3
| | | | | | | | | | | | | | - Entry for a vmm register that will be used for receiving factory commands. Change-Id: I29c69050a035270ca6c82ab9e5386600b7d9c4fb Signed-off-by: molg1 <molg1@lenovo.com> Reviewed-on: https://gerrit.mot.com/896682 SLTApproved: Slta Waiver <sltawvr@motorola.com> SME-Granted: SME Approvals Granted Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Ligan Mo <molg1@motorola.com> Reviewed-by: Lijun Chen <chenlj2@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com>
* ASoC: msm: enable QDSP sidetone IIRSeungYoon Lee2018-12-071-0/+26
| | | | | | | | | | | | | | | enable QDSP sidetone and sidetone IIR module. add mixer controls to enable them and apr code to send corresponding calibration data to LPASS. Change-Id: I7bb07f43aaeb4b148f777ccc70529efa386a8691 Signed-off-by: SeungYoon Lee <w22905@motorola.com> Reviewed-on: https://gerrit.mot.com/892652 SLTApproved: Slta Waiver <sltawvr@motorola.com> SME-Granted: SME Approvals Granted Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Igor Kovalenko <igork@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com>
* drivers/misc/moto-sensorhub: Implement VR modeDaniel Moore2018-12-073-7/+39
| | | | | | | | | | | | | | | | | | | VR mode will put the sensors driver into a low latency mode. Only accel, gyro, and mag data will be handled. The data will be read from a single I2C transaction from the sensorhub. The priority of the irq_task will also be raised to a real time priority level. Change-Id: Ifd054477e094a31f5ef97f61ec52dd675f4fdd16 Signed-off-by: Daniel Moore <dtmoore@motorola.com> Reviewed-on: http://gerrit.mot.com/889528 SLTApproved: Slta Waiver <sltawvr@motorola.com> SME-Granted: SME Approvals Granted Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Robert Wiegand <Robert.P.Wiegand@motorola.com> Reviewed-by: Russell Knize <rknize@motorola.com> Reviewed-by: Eric Hefner <ehefner@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com>
* drives: misc: stml0xx: Motion and Stationary Detectmolg12018-12-072-6/+8
| | | | | | | | | | | | | | | | | - Cherry-pick from CR (CR) - "BYPASS_MODE" is not used in N now, Reset it for N upgrate and build error. Change-Id: Ibd646aed63b1ac54ddf7c91ea576dd7a1129e97b Signed-off-by: molg1 <molg1@motorola.com> Reviewed-on: http://gerrit.mot.com/884222 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver <sltawvr@motorola.com> Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Robert Wiegand <Robert.P.Wiegand@motorola.com> Reviewed-by: Jason Jae Hyun Koh <jasonkoh@motorola.com> Reviewed-by: Igor Kovalenko <igork@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com>
* input: misc: change report key code for cap sensorwengjun12018-12-071-0/+7
| | | | | | | | | | | | | | | – Use custom key code instead of the default key code. – Change log level for cap sensor behavior tracking. Change-Id: I79fb3e39f38b6ca7674d5af05d2a858769e029f2 Signed-off-by: wengjun1 <wengjun1@motorola.com> Reviewed-on: http://gerrit.mot.com/879072 SLTApproved: Slta Waiver <sltawvr@motorola.com> SME-Granted: SME Approvals Granted Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Yi Cao <caoyi1@motorola.com> Reviewed-by: Igor Kovalenko <igork@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com>
* drivers/misc: Add the Motion/Stationary sensorsRobert Wiegand2018-12-071-10/+14
| | | | | | | | | | | | | | | | Add the Motion/Stationary sensor reporting to the sensor hub kernel driver. These sensors are new in the Android N release. Change-Id: I3cf54fa8b2aa355fdbd0a0c0f9eb48a08cbf9ee7 Signed-off-by: Robert Wiegand <qa2113@motorola.com> Reviewed-on: http://gerrit.mot.com/875936 SLTApproved: Slta Waiver <sltawvr@motorola.com> SME-Granted: SME Approvals Granted Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Daniel Moore <dtmoore@motorola.com> Reviewed-by: Igor Kovalenko <igork@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com> Reviewed-by: Russell Knize <rknize@motorola.com>
* uapi/stml0xx_vmm: register for receiving commandsmolg12018-12-071-3/+3
| | | | | | | | | | | | | | | - Cherry-pick from CR (CR). - Entry for a vmm register that will be used for receiving factory commands. Change-Id: I65bd3d101a0bc778b49a9c19165038caf57661fe Signed-off-by: molg1 <molg1@motorola.com> Reviewed-on: http://gerrit.mot.com/874145 SLTApproved: Slta Waiver <sltawvr@motorola.com> SME-Granted: SME Approvals Granted Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Hongshu Lou <louhs1@motorola.com> Reviewed-by: Christopher Fries <cfries@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com>
* drivers: misc: stml0xx: stml0xx driver supportmolg12018-12-074-0/+968
| | | | | | | | | | | | | | | | | | | - Merge from (CR). - AK09912 split arch support. - Receive raw register data from SH and process them through the AKM library - Report magnetometer events to the HAL - Increased streaming sensor queue & spi msg sizes Change-Id: Ibd31431f8c6d3d91dffc8b198c035cda9fff147c Signed-off-by: molg1 <molg1@motorola.com> Reviewed-on: http://gerrit.mot.com/868149 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver <sltawvr@motorola.com> Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Robert Wiegand <Robert.P.Wiegand@motorola.com> Reviewed-by: Jason Jae Hyun Koh <jasonkoh@motorola.com> Reviewed-by: Christopher Fries <cfries@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com>
* drivers: misc: moto-sensorhub: Add ultrasound sensor idDaniel Moore2018-12-071-1/+2
| | | | | | | | | | | | | | | Add the ultrasound sensor id to the list of supported sensor types. Change-Id: I91481ebd3e45d24e7664df9495c9fc8304311149 Signed-off-by: Daniel Moore <dtmoore@motorola.com> Reviewed-on: http://gerrit.mot.com/860778 SLTApproved: Slta Waiver <sltawvr@motorola.com> SME-Granted: SME Approvals Granted Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Robert Wiegand <Robert.P.Wiegand@motorola.com> Reviewed-by: Russell Knize <rknize@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com>
* Add Camera F Sync featurewlgs032018-12-072-3/+8
| | | | | | | | | | | | | | | | Add a Sensor Sync sensor type for Camera EIS Change-Id: Ibc4cef97f6036190c2857ce9819ce71bd2ed3761 Signed-off-by: wlgs03 <wlgs03@motorola.com> Reviewed-on: http://gerrit.mot.com/854602 SLTApproved: Slta Waiver <sltawvr@motorola.com> SME-Granted: SME Approvals Granted Reviewed-by: Robert Wiegand <Robert.P.Wiegand@motorola.com> Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Jason Jae Hyun Koh <jasonkoh@motorola.com> Reviewed-by: Igor Kovalenko <igork@motorola.com> Reviewed-by: Eric Hefner <ehefner@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com>
* netfilter: Fix data usage note feature issueHong-Mei Li2018-12-071-0/+49
| | | | | | | | | | | | | | | | | | | Google added a feature to pop up data usage warning or limit note after data reaches to the traffic boundary. To enable this feature, we need the prework: 1.Fix issue in NETFILTER_XT_MATCH_QUOTA2_LOG definition to remove deprecated code 2.add ipt_ULOG.h file Change-Id: I1fc614d8c20e9d51ee4e13e126218faefa6abd6a Signed-off-by: Hong-Mei Li <a21834@motorola.com> Reviewed-on: http://gerrit.mot.com/853669 SLTApproved: Slta Waiver <sltawvr@motorola.com> SME-Granted: SME Approvals Granted Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Zhi-Ming Yuan <a14194@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com>
* add BUS_GREYBUS type for HIDMao Bing2018-12-071-0/+1
| | | | | | | | | | | | | | | for HID over greybus Change-Id: I31a2962e6677a861926a16e5533b4d383ae04d97 Signed-off-by: Mao Bing <bing.mao@motorola.com> Reviewed-on: http://gerrit.mot.com/850100 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver <sltawvr@motorola.com> Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Christopher Fries <cfries@motorola.com> Reviewed-by: Gregory Meiste <w30289@motorola.com> Reviewed-by: Kazuhiro Ondo <kazuhiro.ondo@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com>
* motosh: Fix incorrect size for two wake msgsDaniel Moore2018-12-071-0/+8
| | | | | | | | | | | | | | | | | | | | Two of the wake messages were pulling too much data off of the queue causing us to drop the entire queue when the corruption was detected. This could have also sent up invalid messages depending on what the next bytes of data in the queue looked like. Change-Id: I892c646831918ce6d53d5949a27963fde689d232 Signed-off-by: Daniel Moore <dtmoore@motorola.com> Reviewed-on: http://gerrit.mot.com/847557 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver <sltawvr@motorola.com> Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Robert Wiegand <Robert.P.Wiegand@motorola.com> Reviewed-by: Jason Jae Hyun Koh <jasonkoh@motorola.com> Reviewed-by: Igor Kovalenko <igork@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com>
* motosh: Start moving vmm declarations to kernel uapiDaniel Moore2018-12-072-0/+39
| | | | | | | | | | | | | | | | | | | | | This will allow the kernel and sensorhub to pull the vmm declarations from a common header file and for both to know about the size of the register. By including the extern declarations here it ensures that when these are defined in the sensorhub there will be a compilation failure if they do not match. Change-Id: I992b8f0500faec65526a9d7c93bbc7a098f3c252 Signed-off-by: Daniel Moore <dtmoore@motorola.com> Reviewed-on: http://gerrit.mot.com/845032 SLTApproved: Slta Waiver <sltawvr@motorola.com> SME-Granted: SME Approvals Granted Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Robert Wiegand <Robert.P.Wiegand@motorola.com> Reviewed-by: Jason Jae Hyun Koh <jasonkoh@motorola.com> Reviewed-by: Igor Kovalenko <igork@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com>
* motosh: Report more information on prox and stow changesDaniel Moore2018-12-071-3/+3
| | | | | | | | | | | | | | | | This will help when debugging proximity and stowed related issues which result from bad hardware or miscalibrations. Change-Id: I5fdafaa2b6079f17c298e8d71bf6b23459037f77 Signed-off-by: Daniel Moore <dtmoore@motorola.com> Reviewed-on: http://gerrit.mot.com/843652 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver <sltawvr@motorola.com> Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Robert Wiegand <Robert.P.Wiegand@motorola.com> Reviewed-by: Igor Kovalenko <igork@motorola.com> Reviewed-by: Eric Hefner <ehefner@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com>
* include/uapi/linux: motosh_vmm: support motion historyJason Jae Hyun Koh2018-12-071-3/+3
| | | | | | | | | | | | | | | | | Create a new vmm register that keeps a buffer of the last 8 seconds of motion states at a 1s resolution Change-Id: I11789496830574a6d664dcd95b529395c04cfbc4 Signed-off-by: Jason Jae Hyun Koh <jason.koh@motorola.com> Reviewed-on: http://gerrit.mot.com/844020 SLTApproved: Slta Waiver <sltawvr@motorola.com> SME-Granted: SME Approvals Granted Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Robert Wiegand <Robert.P.Wiegand@motorola.com> Reviewed-by: Daniel Moore <dtmoore@motorola.com> Reviewed-by: Gabriel Burca <Gabriel.Burca@motorola.com> Reviewed-by: Ravikumar Vembu <raviv@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com>
* drivers: misc: moto-sensorhub: Add game rotation vectorwlgs032018-12-072-20/+23
| | | | | | | | | | | | | | | | | Add the game rotation vector sensor. Also consolidate derived sensors update rates. Change-Id: Ic399505896919da25a7199e3185a81cfa1d9bef4 Signed-off-by: wlgs03 <wlgs03@motorola.com> Reviewed-on: http://gerrit.mot.com/837947 SLTApproved: Slta Waiver <sltawvr@motorola.com> SME-Granted: SME Approvals Granted Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Robert Wiegand <Robert.P.Wiegand@motorola.com> Reviewed-by: Daniel Moore <dtmoore@motorola.com> Reviewed-by: Jason Jae Hyun Koh <jasonkoh@motorola.com> Reviewed-by: Christopher Fries <cfries@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com>
* drivers: misc: moto-sensorhub: Mod Current DrainDaniel Moore2018-12-072-5/+8
| | | | | | | | | | | | | | | Read the mod current drain measurement from the sensorhub. This is the total accumulated current drain from power up in mAH. Change-Id: I60cbe384df5b6279246269b6a6aab94ba2b3aab6 Signed-off-by: Daniel Moore <dtmoore@motorola.com> Reviewed-on: http://gerrit.mot.com/833459 SLTApproved: Slta Waiver <sltawvr@motorola.com> SME-Granted: SME Approvals Granted Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Eric Hefner <ehefner@motorola.com> Reviewed-by: Igor Kovalenko <igork@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com>
* drivers/misc: Add Accel BatchingEric Hefner2018-12-072-3/+50
| | | | | | | | | | | | | | | | | | | | | - Accel batching for GMS Activity Recognition - use ap_ccp_wake to sync time and indicate AP suspend - 16usec resolution timestamp - static fast or dynamic read buffer large batches - spliced reads of vmm_nwake_queue - flush complete from irq_handler - cleanup motosh_time - late sample driftcomp for streaming only Change-Id: If7af6286ac52c2e1a390f391f652f6be50b9278a Signed-off-by: Eric Hefner <ehefner@motorola.com> Reviewed-on: http://gerrit.mot.com/832507 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver <sltawvr@motorola.com> Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Robert Wiegand <Robert.P.Wiegand@motorola.com> Reviewed-by: Igor Kovalenko <igork@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com>
* drivers: misc: moto-sensorhub: Accelerometer calibrationwlgs032018-12-072-7/+13
| | | | | | | | | | | | | | | | Save and restore the accelerometer calibration data. Change-Id: Id115dc9321fe4aaaaed94cfef57124ee40013b4d Signed-off-by: wlgs03 <wlgs03@motorola.com> Reviewed-on: http://gerrit.mot.com/829993 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver <sltawvr@motorola.com> Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Eric Hefner <ehefner@motorola.com> Reviewed-by: Daniel Moore <dtmoore@motorola.com> Reviewed-by: Jason Jae Hyun Koh <jasonkoh@motorola.com> Reviewed-by: Russell Knize <rknize@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com>
* mm/compaction: generic driver page migrationRuss W. Knize2018-12-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Based on Gioh Kim's idea for "mobile" pages. Add a page flag to mark a page as "mobile". These pages should then provide a mapping that has isolatepage, putbackpage, and migratepage callbacks that will be called during kernel page migration. Because migrate needs to use page->lru, isolatepage needs to vacate this field in struct page. If mobile page isolation fails because of some contention, it can return -EAGAIN which may prompt compaction to make another pass later. Mobile page compaction is disabled by default and can be controlled via /proc/sys/vm/mobile_page_compaction. Change-Id: Ie95923ba892f64371e4fdf8a5dd8d8271f3ea94a Signed-off-by: Russ Knize <Russ.Knize@motorola.com> Reviewed-on: http://gerrit.mot.com/822534 SLTApproved: Slta Waiver <sltawvr@motorola.com> SME-Granted: SME Approvals Granted Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Igor Kovalenko <igork@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com>
* include: uapi: linux: motosh_vmm.h remove unused entrieswlgs032018-12-071-27/+22
| | | | | | | | | | | | | | | | | Remove unused entries to make addition of new entries which is make use of the locations of unused entries cleaner. Change-Id: I04f2257f4ef8c023c334706b4289b402bf215047 Signed-off-by: wlgs03 <wlgs03@motorola.com> Reviewed-on: http://gerrit.mot.com/823605 SLTApproved: Slta Waiver <sltawvr@motorola.com> SME-Granted: SME Approvals Granted Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Robert Wiegand <Robert.P.Wiegand@motorola.com> Reviewed-by: Ravikumar Vembu <raviv@motorola.com> Reviewed-by: Eric Hefner <ehefner@motorola.com> Reviewed-by: Russell Knize <rknize@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com>
* drivers/misc: moto-sensorhub: Add headset detectRobert Wiegand2018-12-072-9/+13
| | | | | | | | | | | | | | | Port the Sensor Hub headset detect kernel driver code from the 8952 kernel to the 8953 kernel. Add conditional compilation for the sensor hub Moto display code. Change-Id: Ie9abfc39af530d072cb5fa0d95e795770cbd7659 Signed-off-by: Robert Wiegand <qa2113@motorola.com> Reviewed-on: http://gerrit.mot.com/820161 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver <sltawvr@motorola.com> Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Igor Kovalenko <igork@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com>
* thermal: Add interface for generated tempsJason Knopsnyder2018-12-072-0/+27
| | | | | | | | | | | | | | | | | | | | | | Add a method for thermal management algorithms in user space to send virtual/generated temperature values to the kernel. The supported temperature sysfs names will be defined in the device tree; and the user space alogirthm must send the name (matching the device tree name) along with the temperature value correspoding to that name. At this point the temperature data will simply be made available in the /sys/class/thermal/ sysfs. Change-Id: Id7aa4c8daed4cf9ecc443338d9e77cfa443d044e Signed-off-by: Jason Knopsnyder <jasonk@motorola.com> Reviewed-on: http://gerrit.mot.com/807517 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver <sltawvr@motorola.com> Reviewed-by: Kenneth Kessler <kennykessler@motorola.com> Tested-by: Jira Key <jirakey@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com>
* drivers:misc:moto-sensorhub: Add glance sensor supportDaniel Moore2018-12-072-7/+8
| | | | | | | | | | | | | | | | Handle reading glance sensor data out of the wake_irq queue and send the data up to the HAL. Change-Id: Ifb4fba07815a1edea5e9e35cb1e9f39c7fe8190b Signed-off-by: Daniel Moore <dtmoore@motorola.com> Reviewed-on: http://gerrit.mot.com/804199 SLTApproved: Slta Waiver <sltawvr@motorola.com> SME-Granted: SME Approvals Granted Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Robert Wiegand <Robert.P.Wiegand@motorola.com> Reviewed-by: Gabriel Burca <Gabriel.Burca@motorola.com> Reviewed-by: Igor Kovalenko <igork@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com>
* misc: moto-sensorhub: Export packet sizesGabriel Burca2018-12-071-0/+8
| | | | | | | | | | | | | | | | - User-space code needs to know the maximum RX/TX packet sizes. Change-Id: I3f01962fdd7f27d9b93cd8a724e4b0575127ba42 Signed-off-by: Gabriel Burca <Gabriel.Burca@motorola.com> Reviewed-on: http://gerrit.mot.com/800655 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver <sltawvr@motorola.com> Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Eric Hefner <ehefner@motorola.com> Reviewed-by: Robert Wiegand <Robert.P.Wiegand@motorola.com> Reviewed-by: Daniel Moore <dtmoore@motorola.com> Reviewed-by: Christopher Fries <cfries@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com>
* drivers/misc: moto-sensorhub: Add passthrough commandRobert Wiegand2018-12-072-6/+10
| | | | | | | | | | | | | | | | Port the passthrough ioctl from the low-tier sensor hub to the high-tier hub so that all products provide the same interface for accessing sensor registers. Change-Id: I22d68a6c332dc2a1b8d5eb37c7545ed5b02a8f06 Signed-off-by: Robert Wiegand <qa2113@motorola.com> Reviewed-on: http://gerrit.mot.com/797751 SLTApproved: Slta Waiver <sltawvr@motorola.com> SME-Granted: SME Approvals Granted Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Gabriel Burca <Gabriel.Burca@motorola.com> Reviewed-by: Igor Kovalenko <igork@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com>
* fs: rename wrapfs to esdfsRuss W. Knize2018-12-071-1/+1
| | | | | | | | Wrapfs is the base of the new Emulated SD Card file system for Android, which replaces the FUSE-backed "sdcard" service. Change-Id: I0a69ac606b8750f2a3a953987d795695d53da139 Signed-off-by: Russ Knize <Russ.Knize@motorola.com>
* fs: add wrapfs base for K3.17-rc1-88Russ W. Knize2018-12-071-0/+2
| | | | | | | | | | | Wrapfs is a small null-layer stackable file system, similar to BSD's Nullfs. Maintainer: Erez Zadok <ezk AT cs DOT stonybrook DOT edu> Web Site: <http://wrapfs.filesystems.org/> Change-Id: I99a1b0c389c829f5c49498b55545db19b3c6a7a1 Signed-off-by: Russ Knize <Russ.Knize@motorola.com>
* drivers:misc: Enable BMI160 Step counterEric Hefner2018-12-071-3/+10
| | | | | | | | | | | | | | - simplify to 4 byte step count Change-Id: I8a726b98accb636137db3e2a6a023786a5c5ee2d Signed-off-by: Eric Hefner <ehefner@motorola.com> Reviewed-on: http://gerrit.mot.com/792893 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver <sltawvr@motorola.com> Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Ravikumar Vembu <raviv@motorola.com> Reviewed-by: Robert Wiegand <Robert.P.Wiegand@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com>
* misc: moto-sensorhub: Export SensorHub registersGabriel Burca2018-12-072-0/+568
| | | | | | | | | | | | | | - Change is necessary to ensure kernel and SensorHub register maps are synchronized at all times. Change-Id: I4348f4f91dcfaba0f8b3b50002d5f468e5f7cc98 Signed-off-by: Gabriel Burca <Gabriel.Burca@motorola.com> Reviewed-on: http://gerrit.mot.com/789300 SLTApproved: Slta Waiver <sltawvr@motorola.com> SME-Granted: SME Approvals Granted Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Christopher Fries <cfries@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com>
* msm: mdss Support disp_util toolBang Nguyen2018-12-071-0/+9
| | | | | | | | | | | | | | | | | | | | | | Support the disp_util tool to set and get the register information from MIPI DSI display from user space. This is a port of multiple changes from 8992/8994: - c3451b4 - 82b5b67 - 3c95a41 - http://gerrit.mot.com/#/c/780400/1 Change-Id: Ibbea47c4843aac4b7227b89212e8cc7bb35ef6dc Signed-off-by: Zac Crosby <zac@motorola.com> Reviewed-on: http://gerrit.mot.com/780739 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver <sltawvr@motorola.com> Reviewed-by: Shi-Yong Li <a22381@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com> Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Bang Nguyen <bangnguyen@motorola.com> Reviewed-by: Joseph Swantek <jswantek@motorola.com>
* drivers/misc: motosh: Sensor hub driverRobert Wiegand2018-12-072-0/+363
| | | | | | | | | | | | | | Copy the sensor hub driver from 8992. Change-Id: I1462e58b25231bd00f55bb4eaf8e6e851e35123d Signed-off-by: Robert Wiegand <qa2113@motorola.com> Reviewed-on: http://gerrit.mot.com/775285 SME-Granted: SME Approvals Granted Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Jeffrey Carlyle <jeff.carlyle@motorola.com> Reviewed-by: Philip Lee <pglee@motorola.com> SLTApproved: Robert Neely <wrn002@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com>
* Revert "net : update enum entry for netlink_sockev."Pradosh Das2018-10-041-1/+1
| | | | | | | This reverts commit 494bc9610a0151cd7f5955bf63d6acad0fc29827. Change-Id: I8d64afb30bac903f91815d46b3be96234647eda9 Signed-off-by: Pradosh Das <prados@codeaurora.org>
* Merge "net : update enum entry for netlink_sockev."Linux Build Service Account2018-09-121-1/+1
|\
| * net : update enum entry for netlink_sockev.Devi Sandeep Endluri V V2018-07-261-1/+1
| | | | | | | | | | | | | | | | | | | | Update netlink_sockev enum entry to maintain same binary with different kernels . CRs-Fixed: 2284498 Change-Id: I392212b5559b3c0f4c2ddbbdfaaa2fd4aa9147ee Acked-by : Manoj Basapathi <manojbm@qti.qualcomm.com> Signed-off-by: Devi Sandeep Endluri V V <dendluri@codeaurora.org>
* | Merge "msm: kgsl: Add a property to find if secure context is supported"Linux Build Service Account2018-08-311-0/+1
|\ \
| * | msm: kgsl: Add a property to find if secure context is supportedSunil Khatri2018-08-311-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a property to determine if a target support secure context for use cases like CPZ. This property can be used by userspace application to create a secure context if its supported on the target. Change-Id: I1ccc824378fb8fbd2cfbc7b811c6c3fdcd17803e Signed-off-by: Sunil Khatri <sunilkh@codeaurora.org>
* | | Merge "msm: kgsl: Add a property to find alignment of secure buffers"Linux Build Service Account2018-08-311-0/+1
|\| |
| * | msm: kgsl: Add a property to find alignment of secure buffersSunil Khatri2018-08-311-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a property to determine the hardware alignment constraint on secure buffers. XPUv2 and below have a minimum requirement of 1 MBytes alignment and hence driver should allocate memory with minimum alignment on size. Change-Id: Ie3ca5da489bc94ae57ddc6695e402463fd7a88c2 Signed-off-by: Sunil Khatri <sunilkh@codeaurora.org>
* | | Revert "rtc: alarm: Add power-on alarm feature"Mao Jinlong2018-08-231-1/+0
|/ / | | | | | | | | | | | | | | | | | | | | This reverts commit 2e1a4aefef66db901f9a906b79e30187f10dbecb. Power off alarm is not set via alarmtimer now. Remove the changes of power off alarm's previous design. CRs-Fixed: 2132189 Change-Id: I0f60bec0d94c93c4f2a89ae86a1b0a0d04aa9e48 Signed-off-by: Mao Jinlong <jinlmao@codeaurora.org>