Commit graph

1,355 commits

Author SHA1 Message Date
litong
2e439ca820 Synaptics: Add hold-distance function, command is 0xdc.
The command is used to set the sliding distance to determine whether
it is a sliding event, the default value is 0xff.

Change-Id: I38baa51e9812bc86613b26e34c36ae4f42934eed
Reviewed-on: https://gerrit.mot.com/1551675
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-05-14 21:11:13 -05:00
litong
107ad28332 synaptics: Add suppression control function
TP:
Add suppression control function, the command is 0xdb.
The value means:
    Right side grip suppression off: 0x03
    Left side grip suppression off: 0x02
    Both side grip suppression off: 0x01
    Both side grip suppression on : 0x00

Change-Id: I3e3249bf36685afc611523e80e9cd1054cccf413
Reviewed-on: https://gerrit.mot.com/1551576
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-05-14 21:08:04 -05:00
litong
f0597e7a29 Report finger lift events after touch suspend.
Solve the problem that the events between the release of the finger
and the completion of the suspend is not released.

Change-Id: I1ccaa71ecd48b91c99f33a9655408dbf8cd1ce09
Reviewed-on: https://gerrit.mot.com/1553366
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-05-14 03:51:20 -05:00
haojl2
e8506977db synaptics_tcm_v2: Add wait_for_ready methord
If IC resume from power off status. IC should wait a while for IC bootup
So add wait_for_ready methord.

Change-Id: Ia05d2ca650540d087c100a058c3832179c4bd07c
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1553616
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-05-14 02:39:04 -05:00
haojl2
843da210a8 touchscreen_mmi: Add default pinctrl methord
If ts_mmi_on_state or ts_mmi_off_state pinctrl states is defined, and
vendor method not defined it's pinctrl callback function.
Add default pinctrl function for this situation.

Change-Id: I5873980ee6425b22af1af416228481af1abe360d
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1553615
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-05-14 02:38:58 -05:00
Ningkai Zhuang
82c12d6329 Solve NFC wake lock issue
NFC hold wake lock too much time that phone
may not suspend during screen turned off for
8 seconds

Change-Id: I7dde533767716af28c806f87a7dd04a38d238e3a
Signed-off-by: Ningkai Zhuang <zhuangnk1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1552151
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zishang Zhou <zhouzs1@motorola.com>
Reviewed-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-by: Xu Du <duxu1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-05-11 21:31:32 -05:00
litong
55d43ce7cd touchscreen_mmi: exports touch events handler
1. Exports touch events handler in order to obtain the touch events
reported by vendor.
2. Add debug options to control whether to print log.

Change-Id: I3bb89cfe5c7a5a55ca01b3a93488558db4358445
Reviewed-on: https://gerrit.mot.com/1550603
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Submit-Approved: Jira Key
2020-05-11 21:25:29 -05:00
litong
82fd318b82 Syna: Report down/up touch events to touchscreen class
Report down/up touch events generated by the synaptics touch driver to
touchscreen class, this is for unified processing in the touchclass.

Change-Id: If3a6a93b6047ad45def4d81c956e830e30ab238e
Reviewed-on: https://gerrit.mot.com/1550601
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-05-11 21:25:15 -05:00
Konstantin Makariev
2bed9f6ab4 touchscreen_mmi: qcom drm notifications support
Kernel 4.9 is still using MSM DRM notification mechanism to report
blank/unblank events. To support programs that still on kernel 4.9
adding MSM DRM notifications to touchscreen MMI class
suspend/resume.

Change-Id: I128b216c25ba3a70c2abbb37049cf4102135893c
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1549390
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-05-11 17:43:00 -05:00
Konstantin Makariev
421cc631f0 sec_mmi: fix compile error
Fix compilers error caused by unnecessry argument passed to printk

Change-Id: I9ca3226707ebdc5f994118cc798e4a5f2b7a52d2
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1549391
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-05-11 17:42:52 -05:00
Konstantin Makariev
0a6dbeff9f add panel_notifier.h to mmi kernel modules area
This include file is required by panel on/off notification mechanism
used in MMI products. It makes more sense to keep it locally to avoid
adding it to various kernels

Change-Id: Ib0bc5a7dfe08c3dbae5f7960d3298b0f65811396
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1549392
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-05-11 17:42:48 -05:00
litong
658222e621 Syna: Modify the ratio of the major and minor values
Modify the ratio of the major and minor values for FOD
For racer: ratio = 1948/ 128

Change-Id: I09db7e5adf7998fc468b4258d76d6846f0eb908e
Reviewed-on: https://gerrit.mot.com/1549735
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-05-10 22:23:05 -05:00
dengwei1
171fc53147 guam: input update touch himax driver
base on himax vendor, update the driver
and add usb detect notify
NO_PROP_NEEDED: only for guam

Change-Id: I105e27a5bc548df7a4fcc18c64687553bec31eba
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1551148
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-05-10 21:32:55 -05:00
wangyq13
69228e6b7b input: himax_v2_mmi: Sync touch suspend and resume thread
himax_v2_mmi:
1: Because system use drm notify to call touch suspend before display
driver pull down vsn/vsp, rst pin. So touch suspend thread wait until
touch resume thread end, avoid touch resume thread is interrupted by
touch suspend thread.
Set flag for resume start and end.
Suspend tread will check this flag, if resume is not end, then
don't pull down the vsn/vsp and reset pin, to avoid affect touch resume
thread, especially touch firmware upgrade.
2: Sometimes the reverse thing happen, suspend thread is interrupted by
resume thread. Such as the following process:
touch suspend->lcd resume+touch resume->lcd suspend. So when lcd resume
again, the last state of touch is resume, so touch will skip current
resume process, don't download touch firmware.
To fix this issue, force touch driver to execute the resume process.

Change-Id: I0ed48ec2bf8f65e2db281bef0c7f6cc63051ea64
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1549942
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yiwen Liu <liuyw2@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-05-08 23:45:41 -05:00
wangyq13
d4ac293489 input: himax_v2_mmi: set hx83012d only if defined
himax_v2_mmi:
Set hx83102d only if defined by product makefile, to avoid
affect other ICs.

Change-Id: I422df9d8f4318f46990cf81c03a6aa576ee3a97a
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1549941
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-05-08 22:43:13 -05:00
zhongling1
f942a926ca : Set up common vendor id for fps
Since framework need vendor id to filter double tap
set up vendor for fpc

Change-Id: Ie8faf63b5dcc4d5f3dc5992c3f16a273d39095af
Signed-off-by: zhongling1 <zhongling1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1550566
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-05-08 20:43:09 -05:00
Andy White
a2793d5541 fg: Trigger POR through sysfs instead of factory mode
Change-Id: Ib623d4ddd9c021c8cfc8692237d02871f47268df
Reviewed-on: https://gerrit.mot.com/1550009
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Ling Jin <lingjin@motorola.com>
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Submit-Approved: Jira Key
2020-05-08 16:25:06 -05:00
cuijy2
e51af2ddaa capsense sx933x recive headset state
when headset insert
use special reg config

NO_PROP_NEEDED: only racer need this change

Change-Id: Iaea4faf18b5fce845a05f7262b2e683e1e37c16b
Signed-off-by: cuijy2 <cuijy1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1539481
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guoyue Liu <liugy11@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Submit-Approved: Jira Key
2020-05-08 03:29:33 -05:00
zhouwl
bc6d75f62e ASoC: implement ICN control in TAS2562
implement ICN control in TAS2562 kernel driver.
ICN enable = Receiver Configuration

Change-Id: I1ea32675096d6da77ea57bdb2c178872bf1b8947
Signed-off-by: zhouwl <zhouwl@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1549428
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2020-05-06 22:36:17 -05:00
Drew Abbott
6c95d8d468 Fail out of probe gracefully
The probe will succeed if the fg is not actually attached. To prevent
probe from adding a failing heartbeat function, fail out of the probe
function if there are i2c errors when trying to get the fw version on
the chip.

NO_PROP_NEEDED: This only affects phones with a flip FG and does not
need to be cherry-picked into branches for phones without one

Change-Id: I86fda0a6dd0dff59d7159a1a77991052838db6f9
Signed-off-by: Drew Abbott <drewa@motorola.com>
Reviewed-on: https://gerrit.mot.com/1546571
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-05-05 16:25:17 -05:00
Ryan Lattrel
49346a25ab smbcharger-mmi: Report turbo charging for wireless
Report wireless turbo charging if wireless reports
that it is a fast charger

Change-Id: I0312700bb7cfb8a44b4486f272aa91e8ce298a75
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1548060
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-05-05 15:43:10 -05:00
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