Commit graph

1,134 commits

Author SHA1 Message Date
Ryan Lattrel
47210f01e5 p938x_charger: report fast charging if >= 15W
Only report fast charging rate if the guaranteed power
is greater than or equal to 15W.

Change-Id: I6f8a5492d47bf7a81b5b17215b5c8aa0ca65e871
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1548059
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Drew Abbott <drewa@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-05-05 15:43:00 -05:00
Jialei Hao
8340f806e9 Revert "(CR): touchscreen_mmi: Do not write if value is same with cached"
CRs-fixed: (CR)

This reverts commit ae14e1e8e6b308b0d8e48310a3da5249a55e18ea.

Change-Id: If12f4a04f4a4467ac23c27e356163b647c7c37c0
Reviewed-on: https://gerrit.mot.com/1547048
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
2020-05-04 10:27:49 -05:00
a7301c
02067ed44f Fix complilation error after removing -fno-builtin
The complication error i observed after remove -fno-builtin
in kernel with commit: 6af03f4 Makefile: Remove -fno-builtin cflag
++++
kernel/msm-4.19/../../motorola/kernel/modules/drivers/misc/utag/utags.c:1805:45:
warning: size argument in 'strlcpy' call appears to be size of the
source; expec     ted the size of the destination
[-Wstrlcpy-strlcat-size]
++++

Change-Id: I68144bce14af6944e1b4d8c225d1ad04203aefa5
Signed-off-by: a7301c <a7301c@motorola.com>
Reviewed-on: https://gerrit.mot.com/1545924
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
2020-05-03 11:11:56 -05:00
xizx
d1dce5465a qpnp-power-on-mmi: support hw_warmreset feature
When system is freezed or has no response, DFers often reset the phone
by long-press power btn. So there is no useful log for developpers and
the issue becomes very hard to analysis.

This hw_warmreset feature will trigger a warmreset reboot, so that next
cycle system can save the lastkmsg and re-trigger a clean hardware
cold reboot.

Only when the command line is configured with "hw_warmreset_enable=1",
the feature will take effect.

Change-Id: Icb694be4023ad1e47e5872fee2cd9a9697bbb48d
Reviewed-on: https://gerrit.mot.com/1545767
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2020-04-30 05:55:13 -05:00
huangzh3
b061b8d033 : fix 'rmmod ets_fps_mmi' error
input_free_device() should only be used if
input_register_device() was not called yet or if it failed. Once
device was unregistered use input_unregister_device() and memory
will be freed once last reference to the device is dropped.
NO_PROP_NEEDED:  only one branch 'bo'

Change-Id: I82a8402192daed8ac94eb9a4c360984c4b28487d
Reviewed-on: https://gerrit.mot.com/1543781
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianlin Nie <niejl1@motorola.com>
Reviewed-by: Zhihong Kang <kangzh@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Minghui Wei <weimh1@motorola.com>
Submit-Approved: Jira Key
2020-04-30 04:04:03 -05:00
litong
8a43f52f68 Use touch class unified interface to support edge gesture
TP:
Modify the edge gesture node, use the unified interface in the
touchscreen class.

Change-Id: I94c2c4da74ca1e653fb26a0683a33a8cd8504ca4
Reviewed-on: https://gerrit.mot.com/1544089
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-04-30 00:40:20 -05:00
haojl2
99b1c39611 touchscreen_mmi: Do not write if value is same with cached
For writeable sys entry, if value is same with cached value, do not
write again.

Change-Id: I75b3b1ca6aa190e9507ca922071ba23c745dba5e
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1544483
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-04-30 00:38:59 -05:00
haojl2
beca016ae8 touchscreen_mmi: use try to call and try to read
To call touchscreen methods may cause concurrent competition.
So use uniform macro TRY_TO_CALL and TRY_TO_GET to call and get from
touch IC.
Add a mutex to lock all method invoke.

Change-Id: Ifca60891582e76c5d31fbdb31a386618665d7258
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1544138
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-04-30 00:38:52 -05:00
haojl2
1044348204 touchscreen_mmi: update RW sys entry.
For touchscreen class sys entries which support read and write.
Those entry value is set by user space and will be read by user space.
When IC is not active, read and write to touch IC may fail (power off or
interrupt closed). So, when write to those entries, just save value to
cache and restore when IC resume. Read those entries just return cached
value.

Change-Id: Ieee193597b68b2d87c6234116f2f085e5ab6aeac
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1544046
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: <litong20@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-04-30 00:38:46 -05:00
haojl2
ee308c6c73 touchscreen_mmi: Only update refresh & charger when active
When IC not resume, LCD refresh and charger mode no need set to IC.
Just save the value and the value will restore in IC resume work.

Change-Id: Icadcb7883c6347ae65c5ebaafac39d138cbac5e4
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1543990
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: <litong20@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-04-30 00:38:38 -05:00
haojl2
578ac982ce touchscreen_mmi: Add macro to get touch status
When touch start enter suspend, touch_stop will set to 1.
When touch resumed totally, pm_mode will be TS_MMI_PM_ACTIVE

Add two macro to get touch state.

Change-Id: I20ddb852f277ec6c0ffd38d33851416af4d2d06e
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1543989
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <litong20@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-04-30 00:38:33 -05:00
haojl2
d55d2842ec touchscreen_mmi: Add edge touch support
Moto edge touch need touch driver create some specific sys entries to
handle edge touch functions.

Add those sys entries to support edge touch.

Change-Id: I1385d75cd911d3c4b9fd2e07f811fa00393fbfd1
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1543327
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: <litong20@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-04-30 00:38:25 -05:00
xizx
dd764ca417 Revert "(CR) qpnp-power-on-mmi: support hw_warmreset feature"
it will cause compile error on other mainline

This reverts commit f1cc9d58ffc3bff2ab7f23d583c2c13b23afd665.

Change-Id: I554e68ad26680746d7863ea70434dc23644e394b
Reviewed-on: https://gerrit.mot.com/1545352
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2020-04-29 21:44:23 -05:00
xizx
5a313f8705 qpnp-power-on-mmi: support hw_warmreset feature
When system is freezed or has no response, DFers often reset the phone
by long-press power btn. So there is no useful log for developpers and
the issue becomes very hard to analysis.

This hw_warmreset feature will trigger a warmreset reboot, so that next
cycle system can save the lastkmsg and re-trigger a clean hardware
cold reboot.

Only when the command line is configured with "hw_warmreset_enable=1",
the feature will take effect.

Change-Id: I9e0abcf3757b69175125bcf14188ad54f78a087d
Reviewed-on: https://gerrit.mot.com/1536790
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2020-04-29 20:56:32 -05:00
kalathik
81aa808015 touchscreen_mmi: Correctly Initialize temp cmd variable
After enabling CONFIG_INIT_STACK_ALL, which make reading cmd
from fifo is 0xAAAAAA00, instead of 0x00. This makes
command mismatch and touch is not resuming once goes to suspend.

Change-Id: I730ba3c562000024fdc8dfb1c9aed138b2d4e715
Signed-off-by: Kanagarathina Kalathi <kalath(CR)@motorola.com>
Reviewed-on: https://gerrit.mot.com/1545167
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-04-29 15:26:38 -05:00
Ryan Lattrel
9f28f0ef46 sx933x: update registers on open/close
Update configured registers on open and close events
if set in the device tree.

Change-Id: I004f519e1dd5851a93affab81598969509f27712
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1543714
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-04-29 14:17:00 -05:00
Andy White
9b3ec1e171 Reset fuel gauge in factory mode
Reset fuel gauges in factory boot mode or in a
factory build

Change-Id: I63a3efe7ddf1e2a7cf612f56a10ca868265c2467
Signed-off-by: Perry White <awhite6@motorola.com>
Reviewed-on: https://gerrit.mot.com/1544240
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Submit-Approved: Jira Key
2020-04-29 10:20:55 -05:00
litong
0680049b4a Modify synaptics' log information
1. The i2c error message is output only when the i2c transmission error
exceeds the maximum number of attempts.
2. Output coordinate information when the touchscreen is pressed.

Change-Id: Ida9f51904b0d40e39111529843b146844b4240b6
Reviewed-on: https://gerrit.mot.com/1543943
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-04-29 05:37:03 -05:00
litong
0fd56bb285 Add power flag to indicate power status.
TP:
Add power status flag to indicate whether it is powered on
or powered off.
Set power state when power on and power off.

Change-Id: I9f8677278a2bc358233e7221ee564b69e4b75dcc
Reviewed-on: https://gerrit.mot.com/1538895
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-04-29 05:37:01 -05:00
wengjun1
cb2f525a09 dlkm: Himax 0Flash touch improvement
- Rename some macros for avoid conflicts with other driver and correct
macro for hx83112f.

Change-Id: I41f68b0fd30c2ef192466f0d60f977305fd81297
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1544078
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-04-28 22:21:58 -05:00
wengjun1
a83f1a7b69 dlkm: Himax 0Flash touch improvement
- Change reset pin ctrl logic for prevent to current drain issue when
suspend.

Change-Id: I0373a62b4c484cf035af55dcfbb2347e008ff93e
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1544077
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-04-28 22:21:52 -05:00
wengjun1
1816ab68ce dlkm: Himax 0Flash touch improvement
- Remove HX_RESUME_HW_RESET to match hx83112f for
single tap.

Change-Id: I5671b0fac893b4bf7959e7fcb06a74428dcbb4a3
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1544074
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-04-28 22:21:44 -05:00
wengjun1
fbaa5492ad dlkm: Himax 0Flash touch improvement
- Change some high frequency logs from pr_debug to pr_info
to reduce test time.

Change-Id: Icac69a3f86632d51b5ad8e56f14346009eadca49
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1543763
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-04-28 22:21:37 -05:00
zhouwl
70e81e8fd0 ASoC: add aw882xx volume ramp function
add volume fade in/fade out function for resolving loudspeaker
POP noise, causes by switching profile when audio stream type
is changing.

NO_PROP_NEEDED: aw882xx doesn't use in bq-shm2018 products.

Change-Id: I15329b8666eca10ad8993cab78fe7788e9f36de7
Signed-off-by: zhouwl <zhouwl@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1541858
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Yunfei Guo <guoyf2@motorola.com>
2020-04-28 21:30:32 -05:00
zhucc2
3c50a7591f exfat: use kvzalloc instead kzalloc in exfat_fill_super().
kzalloc maybe fail when memory fragmented, there is not enough contiguous
memory to used.
04-17 02:19:20.788   672 11313 D vold    : File system checking finished.
No errors found.
04-17 02:19:20.788   672 11313 D vold    :
04-17 02:19:20.788   672 11313 I vold    : Check OK
04-17 02:19:20.816   672 11313 E vold    : Mount failed; attempting
read-only: Out of memory
04-17 02:19:20.818   672 11313 E vold    : public:8,97 failed to mount
/dev/block/vold/public:8,97: Out of memory

Binder  : 672_7: page allocation failure: order:4, mode:0x60c0c0
(GFP_KERNEL|__GFP_COMP|__GFP_ZERO), nodemask=(null)

Change-Id: I20b687ffdc26742f9e938668ee8e016c3bb3af1b
Reviewed-on: https://gerrit.mot.com/1541702
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dongliang Yue <yuedl1@motorola.com>
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-04-28 20:36:30 -05:00
Eyob Tesfu
c1364f0fcd : power: bq_27426_mmi: Add FG OCV voltage support
Read OCV register  and export the value to sysfs
OCV Voltage: Standard Command 0x24/0x25 (16-bit integer), mV

Change-Id: I15309822861b5469e2483b79ac39185cedd4dbff
Signed-off-by: Eyob Tesfu <w15039@motorola.com>
Reviewed-on: https://gerrit.mot.com/1542296
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-04-27 09:28:35 -05:00
litong
9380aa9a8d Syna: USB detection support
Added USB cable detection support to better handle charging noise.
This is optional feature controlled via device tree property
mmi,usb-charger-detection. 

Change-Id: Ie7ec0625d1712da94926d1903810a9ec1b497779
Reviewed-on: https://gerrit.mot.com/1543354
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2020-04-27 06:33:48 -05:00
weimh1
9396755c08 dlkm/sensor: optimize sx933x boot-time
1.Just need msleep(100) when reset chip
  2.It can reduce about 100ms boot-time

Change-Id: Iacc6cdb6cfbb6c85698fc3eaea8e7f8ff3580a53
Signed-off-by: weimh1 <weimh1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1543184
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lijun Chen <chenlj2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-04-27 02:39:30 -05:00
litong
323ab260fb Modify the value of synaptics major and minor
TP:
Take the larger value of x_width and y_width as the major, and the
smaller value as the minor.

Change-Id: I15461a286210e8925d5a497e9005d4dd1c624352
Reviewed-on: https://gerrit.mot.com/1542931
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-04-26 20:49:10 -05:00
litong
3b4b1c2e8f Solve resume and suspend confusion,causes touchscreen crash
When answering a call, the display screen keeps on and off,
which causing the touchscreen to enter the suspend process when the
resume process is not completed

Change-Id: I70ace85a8eb969f5b3005218d432ce4e3d29e8c4
Reviewed-on: https://gerrit.mot.com/1542928
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2020-04-26 06:29:11 -05:00
Chuanchun Zhu
5c531b9ed3 Revert "(CR): exfat: use kvzalloc instead kzalloc in exfat_fill_super()."
compile fail when  kernel version < 4.14, we need check and recommit later.

This reverts commit 71ab0b07650e2f41f45ff087abce284fd2176e9e.

Change-Id: Idaeea78203c84127713f9a49cb0ce264c5faMontanaa
Reviewed-on: https://gerrit.mot.com/1541523
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-04-23 22:01:15 -05:00
zhucc2
fd5e126865 exfat: use kvzalloc instead kzalloc in exfat_fill_super().
kzalloc maybe fail when memory fragmented, there is not enough contiguous
memory to used.
04-17 02:19:20.788   672 11313 D vold    : File system checking finished.
No errors found.
04-17 02:19:20.788   672 11313 D vold    :
04-17 02:19:20.788   672 11313 I vold    : Check OK
04-17 02:19:20.816   672 11313 E vold    : Mount failed; attempting
read-only: Out of memory
04-17 02:19:20.818   672 11313 E vold    : public:8,97 failed to mount
/dev/block/vold/public:8,97: Out of memory

Binder  : 672_7: page allocation failure: order:4, mode:0x60c0c0
(GFP_KERNEL|__GFP_COMP|__GFP_ZERO), nodemask=(null)

Change-Id: I7bb92c672bdf2b2f777871d5f12f793b34d36b7f
Reviewed-on: https://gerrit.mot.com/1539365
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Shi-Yong Li <a22381@motorola.com>
Reviewed-by: Dongliang Yue <yuedl1@motorola.com>
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2020-04-23 20:41:33 -05:00
chenlj2
d52429660e DLKM/sarsensor:add tcmd test interfaces for abov mmi
1. add fw_download_status sys interface;
2. add int_state sys interface.

port form:
https://gerrit.mot.com/#/c/1539901/

Change-Id: I809e33078d66fe04b1b3678a690e5e19c7bdddf0
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1540822
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2020-04-23 03:51:46 -05:00
a7301c
c2ac43a982 fixup! (CR): aw8697: Add error checking to RTP mode
Due to llvm is updated to 10.0.3, this would report
build error l(CR):
+++
 /mnt/rider/a7301c/R_8250/kernel/msm-4.19/../../motorola/kernel/modules/drivers/misc/awinic/aw8697/aw8697.c:1353:10:
warning: result of comparison of constant 0 with expression of type
'bool' (aka '_Bool') is always false [-Wtautological-constant-compare]
+++

Change-Id: I4bc8ebe7829d060d34a06d09dbb7eeb39891731c
Signed-off-by: a7301c <a7301c@motorola.com>
Signed-off-by: Perry White <awhite6@motorola.com>
Reviewed-on: https://gerrit.mot.com/1533709
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-on: https://gerrit.mot.com/1540157
2020-04-22 11:24:48 -05:00
a7301c
87223d1df0 fixup! (CR): goodix_gtx8_v1430_mmi: Port goodix v1.4.3.0 driver code
Due to llvm is updated to 10.0.3, this would report
build error l(CR):
+++
/mnt/rider/a7301c/R_8250/kernel/msm-4.19/../../motorola/kernel/modules/drivers/input/touchscreen/goodix_gtx8_v1430_mmi/goodix_ts_i2c.c:732:52:
warning: result of comparison of constant 256 with expression of
type 'u8' (aka 'unsigned char') is always true
[-Wtautological-constant-out-of-range-compare]
3446 error, forbidden warning: goodix_ts_i2c.c:732
+++

Change-Id: I57c0062a562295e8254827d0152b4f0a11519f2b
Signed-off-by: a7301c <a7301c@motorola.com>
Reviewed-on: https://gerrit.mot.com/1533708
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-on: https://gerrit.mot.com/1540156
2020-04-22 11:24:41 -05:00
a7301c
bcfd170343 fixup! (CR): create mmi_info module
Due to llvm is updated to 10.0.3, this would report
build error l(CR):
+++
/mnt/rider/a7301c/R_8250/kernel/msm-4.19/../../motorola/kernel/modules/drivers/mmi_info/mmi_info_main.c:43:3:
warning: misleading indentation; statement is not part of the
previous 'if' [-Wmisleading-indentation]
 error, forbidden warning: mmi_info_main.c:43
+++
Signed-off-by: a7301c <a7301c@motorola.com>

Change-Id: Icce684f637adeb374a2298d3f8add967d5bbddca
Reviewed-on: https://gerrit.mot.com/1533707
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: Yinjun Chen <a7301c@motorola.com>
Reviewed-on: https://gerrit.mot.com/1540155
2020-04-22 11:24:34 -05:00
a7301c
6fb73ee052 Pass absolute path of "TOP" to Kbuild.
In R, Only a few limite environment variables are passed
to ninjia, others will be cleared.
So, pass this "TOP" specically to kernel modules build.
And have to be absolute path.
Otherwise, the header can't be located.

Change-Id: I7820e3d8112611c1c16a1807ea57ab9949416918
Reviewed-on: https://gerrit.mot.com/1508821
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: Yinjun Chen <a7301c@motorola.com>
Reviewed-on: https://gerrit.mot.com/1540154
2020-04-22 11:24:25 -05:00
zhouwl
bd7a9af5f2 ASoC: aw882xx:correct a property variate in parse dt
this sysctrl property has been defined in Astro dtsi,
it will not cause any mistake, but need to correct.

NO_PROP_NEEDED: aw882xx doesn't use in bq-shm2018 products.

Change-Id: Ie1359731cd12636f83b0335c4d67be14c03d567c
Signed-off-by: zhouwl <zhouwl@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1539509
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2020-04-22 03:39:35 -05:00
wengjun1
dd6f6f0e7c dlkm: Himax: Apply for new interface for single tap
- Since now display has updated new interface for wakeup gesture,
apply the new interface to implement single tap for TDDI.

Change-Id: I0ee716b60cd1ef244d645a4a6735ad454288b98f
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1538941
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-04-21 04:32:20 -05:00
wengjun1
2f70e77a91 himax: Compatible with the way of gesture to report key
- Since we noticed that some projects need to report not only one type
of touch gesture and touch hal has been changed on bq branch, so if
we still report instance the single tap should not be work properly. So
add report function key to fit for the hal's change.

Change-Id: I463c7ceb046836305b9c947eec6f79d321df7d92
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1538913
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-04-21 03:56:04 -05:00
zhouwl
6204f33cd5 ASoC: aw882xx driver update
This is Awinic official release, the key change is i2c_read function,
use i2c_transfer to replace the old one, add thread_lock to protect
i2c operation safety, in order to resolve a potential no sound risk
after supporting different audio scenarios feature.

NO_PROP_NEEDED: aw882xx doesn't use in bq-shm2018 products.

Change-Id: I3daeb35c6a349c65bdb723d7f12430634abbf8f2
Signed-off-by: zhouwl <zhouwl@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1537490
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Yunfei Guo <guoyf2@motorola.com>
2020-04-20 00:47:25 -05:00
litong
36b7510d2c support pill region and gs-distance support
TP:
Pill region support added to improve edge double tap detection.
Add suppression command to support gs-distance setting.

Change-Id: I2300bd6ac9d5073f8183332d2b2b904e86d9f558
Reviewed-on: https://gerrit.mot.com/1535704
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-04-19 22:12:14 -05:00
wengjun1
1bbae1b925 dlkm: Improve himax_0flash_mmi
- Since there is a potential conflict between 83102 & 83102d
and 83112f, so temporarily remove support for them.

Change-Id: Ifb520ee039333053a58fd25b428b15e0795afacd
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1536636
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2020-04-17 07:58:36 -05:00
wengjun1
b3da9048e1 dlkm: Improve himax_0flash_mmi - continous
- Since defining the same IC name could potentially lead to compilation
failure, change the name of the relevant macro.
- Also change this name in common to ensure consistency.

Change-Id: If8f4b8ce790ae1f1a4ed8d610860670751f674b6
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1536526
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Reviewed-by: Dezhen Hou <houdz1@motorola.com>
Submit-Approved: Jira Key
2020-04-17 03:28:09 -05:00
wengjun1
2c88ce233a dlkm: Improve himax_0flash_mmi
- Since defining the same IC name could potentially lead to compilation
failure, change the name of the relevant macro.

Change-Id: Id2210be28172af09ff58756ee78b67f33a73153b
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1536375
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dezhen Hou <houdz1@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2020-04-17 00:36:50 -05:00
Curtis Porter
a013c18d7f motorola:qpnp-smbcharger-mmi Clean up commits
This commit is to clean up debug prints and make the heartbeat
delay only applicable when in factory mode.

Change-Id: I53e476954226656bdab0c952bd932dea6ae2f953
Signed-off-by: Curtis Porter <porterc@motorola.com>
Reviewed-on: https://gerrit.mot.com/1535979
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-04-16 23:14:27 -05:00
Curtis Porter
ec317100a6 motorola:qpnp-smbcharger-mmi Delay first boot heartbeat
Update charger driver to also delay heartbeat caused by
psy notifier call. Since this is the only other place
that heartbeat can first be called from. We only want to
apply this delay to the first time so we use a static
variable flag. Also add some extra debug just encase.

Change-Id: I771e1058e36906dba9d41df711fe2da25f821f4c
Signed-off-by: Curtis Porter <porterc@motorola.com>
Reviewed-on: https://gerrit.mot.com/1535557
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-04-16 23:11:08 -05:00
Curtis Porter
83095fc65b motorola:qpnp-smbcharger-mmi delay first heartbeat 10 seconds
Try to delay first heartbeat 10 second to account for factory transient
voltages. If there is a reverse boost that the heartbeat catches it will
suspend the usb which can triger the factory kill if the vbus voltage goes
below 2V. If the voltage then comes back and doesn't decay while shutting down
it will get stuck during shutdown.

Change-Id: I688d6ef211be2b56d0f398075011b7528d7f0e58
Signed-off-by: Curtis Porter <porterc@motorola.com>
Reviewed-on: https://gerrit.mot.com/1535022
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-04-16 23:10:56 -05:00
wengjun1
07251708de dlkm: himax touch driver improvement
- When the driver open HX_FIX_TOUCH_INFO, the driver does not
fix the expected value, so improve the logic of this part.
- Delete unnecessary logs.

Change-Id: I1b51a70a1e2aaebeb20e91de14a2c60268bbcd2c
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1536264
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dezhen Hou <houdz1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-04-16 22:00:03 -05:00
Ryan Lattrel
9b080c1359 sx933x: Add generic usb/flip recal options
Add option to set usb/flip recal via device.mk file instead
of calling out the product name.

Change-Id: I591933fbb6afb44ed65a9c15633b6aba96c382ca
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1535142
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-04-16 15:40:47 -05:00