Heartbeat work in charger driver will work every 100s when no charging.
It will cost some power.
But when discharging, we do not need to pay attention to charging
function, we just need soc changing.
And for our test in genevn, fg driver will send a notification when soc
changed. So we could increase the period of heartbeat wor
Change-Id: I9f9dcda52f42bbb53bcff61820e1df9ab07e4f15
Reviewed-on: https://gerrit.mot.com/2417652
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
ili9882_mmi:
Add last event time function, record the last touch event time,
used by phone back double tap.
Change-Id: I793f79111c8a154074fd99c343d14b09df7c036b
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2417920
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jing Hu <hujing3@lenovo.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Save chipid info into /proc/bootinfo
so that the phone's signed APDP can be produced accroding the known chipid info,
then request the phone to flash APDP directly.
Change-Id: Idfbdc8283708a6e45fb73b64021df977ec68da4b
Signed-off-by: zhongcai ma <mazc5@motorola.com>
Reviewed-on: https://gerrit.mot.com/2417057
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
focaltech_0flash_v2_mmi:
add productinfo node in touchscreen sys
to support touch chip id for TP primary node case
Change-Id: I10bc6f9b23310132f2e8230b5c5df68f8aa3b97e
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2417687
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
nova_0flash_mmi:
kernel 5.4 and kernel 5.10 msm drm are different, so need use different
marco to control msm_drm.ko dependency.
Change-Id: I079e3fd3649dadbcb8bb6f427b6475587995b644
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2412213
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jing Hu <hujing3@lenovo.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
need report pen status after pen is enable
solve kernel panic issue when phone startup sometimes
Change-Id: I8ea796fc71ccdb5853e10e600e2093c9ee3fa3ab
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2409191
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
To be compatible with the next generation wireless charger
Add to support ask Tx id&sn from wireless charger
Change-Id: I9d2fb107e51cce7c4e18bc1b997a15f877453c68
Signed-off-by: Chunyu Fan <fancy3@motorola.com>
Reviewed-on: https://gerrit.mot.com/2403120
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
To be compatible with the next generation wireless charger
Add to support ask Tx Capability from wireless charger
Change-Id: Ib137027bfd5cbe9bbd6a9f44a44cfe67bbf06bf2
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2392470
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
ili9882_mmi:
Set fw ready flag as true when firmware download is complete.
Then pen can set its flag to touch ic.
Change-Id: Ib7866c831e906d65ca1d227acdbaa975b6401918
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2406397
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Details:
Closed the useless dump reg logs of wl2864c
If we need these logs, open the debug level log
Change-Id: Id7f94fc69569c83f38bedf96fc1a07bd9bf8002b
Signed-off-by: Simon C <chenzm8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2405622
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <wangdp11@motorola.com>
Reviewed-by: <huqian4@motorola.com>
Reviewed-by: <hezheng1@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
This new protocol supports touch high resolution,for example 8X/10X/16X,
but it's not compatible with previous protocol,so need use macro to control.
Change-Id: Ib9e8590cd3cf05ba88b83f33fab552909c2d9a5e
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2399367
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
vbat_shutdown_triggler may run again an again before poweroff really
excuted, it may cause a kernel panic. add flag to ensure
shutdown only excutes once
Change-Id: I1070a9eaef078fa15e01845e53022977ac559b0a
Signed-off-by: xuxj12 <xuxj12@motorola.com>
Reviewed-on: https://gerrit.mot.com/2401294
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
Requeue the rx request in case of ether_open
or connection shutdown cases
make sure there is always requests available in the list
Change-Id: Ib3e5425b5fe3306df64594285e5717a1767fd275
Signed-off-by: William Liu <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/2399177
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
enable flip charge by echo 1 > chg_en, but chrg_stat flag need 200ms to
update in delay work. if a delay work is already runnning when
enable flip charge, it may disable flip charge immediatly cause factory
test flip charge current read err
Change-Id: Ib6fd330fb9f9bbd60157f6b16ec032f436056c33
Signed-off-by: xuxj12 <xuxj12@motorola.com>
Reviewed-on: https://gerrit.mot.com/2399491
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
ili9882_mmi:
Don't use kernel_read/kernel_write for 5.10 kernel.
Use apk for factory test, so delete these functions are OK.
Change-Id: Ifccbb1dd37feec063affa0183c71fcdd427a700b
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2396131
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <lvxj4@motorola.com>
Reviewed-by: Jing Hu <hujing3@lenovo.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Don't use kernel_read/kernel_write for 5.10.
Products use APK for factory test, apk writes result to csv file.
So it's ok to delete kernel_read/write.
Change-Id: Ib6671a3c7ca15468b99787f23359ddf2b58b525b
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2396128
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <lvxj4@motorola.com>
Reviewed-by: Jing Hu <hujing3@lenovo.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
main charger control charger led by stat pin,control by write register.
Change-Id: Ie026b1b11cf5c1491cd15fd6304490be1335e92b
Signed-off-by: longc102 <longc102@motorola.com>
Reviewed-on: https://gerrit.mot.com/2399163
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jing Hu <hujing3@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
This reverts commit 6295c4be3cd07939a46e542237d2ca5bc4e73aa3.
As this patch will cause socket connect fail after reconnect usb
in factory mode, so revert it before we get the final fixing on
SM8550 platform.
Mot-CRs-fixed: (CR)
Change-Id: Ied35f20d075778d4b5a097ff4996af29a1b8228b
Reviewed-on: https://gerrit.mot.com/2399151
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Support touch sensitivity in game mode for zeekr,default touch report rate
is 240HZ and high report rate is 360HZ.
Change-Id: Ifa7d82cc11774212e7c6b3cf9bee3517e417d031
Signed-off-by: wenge zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2396020
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
f_usbnet driver did not handle the skb allocation
Or enqueue failure cases, the phone rx from PC bulkout endpoint
will stop if all the rx requests in the queue are all failed
Reschedule the rx in another workqueue so it will not stuck for ever
Change-Id: Icf0835fe5fad5925dd256649fd6badc772c0620d
Signed-off-by: William Liu <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/2392727
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianhong Wang <wangjhn@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
Add a macro to control if cli_gesture created,only if CLI touch supports
double tap gesture,this node should be created to receive gesture type
notifications.
Change-Id: I2a877b4257c758c1129c1bb3353cfbe59f2a452d
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2391205
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Shicheng Gong <gongsc1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key