Commit graph

1,309 commits

Author SHA1 Message Date
Rafael Ortolan
edd16e2517 power: Fix build error due to wakeup API changes
On latest 4.14 kernel update, wakeup_source_register API has changed.
Handle kernel versions properly.

NO_PROP_NEEDED: <only applies to bo>

Change-Id: I9e0bef689106e0707afc8265ef0332719347991f
Reviewed-on: https://gerrit.mot.com/1709017
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-07-29 16:03:01 -05:00
Rafael Ortolan
2eb5d0bf34 aw8695: Fix build error due to wakeup API changes
On latest 4.14 kernel update, wakeup_source_register API has changed.
Handle kernel versions properly.

NO_PROP_NEEDED: <only applies to bo>

Change-Id: I2495957dd4cfec0313252af52ad5c50d8f6d1741
Reviewed-on: https://gerrit.mot.com/1709016
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-07-29 16:02:47 -05:00
Rafael Ortolan
5231c892e4 ets_fps: Fix build error due to wakeup API changes
On latest 4.14 kernel update, wakeup_source_register API has changed.
Handle kernel versions properly.

NO_PROP_NEEDED: <only applies to bo>

Change-Id: I335af2e4849c1969eb2d365d4ef6bc4fc098a362
Reviewed-on: https://gerrit.mot.com/1709015
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-07-29 16:02:29 -05:00
Rafael Ortolan
bebea1711f focaltech_0_flash: Fix build error due to wakeup API changes
On latest 4.14 kernel update, wakeup_source_register API has changed.
Handle kernel version properly.

NO_PROP_NEEDED: <only applies to bo>

Change-Id: Id89adc61f1e0ee00375dab812c636f02a2c06840
Reviewed-on: https://gerrit.mot.com/1709014
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-07-29 16:02:19 -05:00
Rafael Ortolan
6a4a6ed8db focaltech_0_flash: Fix build error due to wakeup API changes
On latest 4.14 kernel update, wakeup_source_register API has changed.
Update the code accordingly.

NO_PROP_NEEDED: <only applies to bo>

Change-Id: Ib29c5fee35ca97f2758435428e26b831fce64e6e
Reviewed-on: https://gerrit.mot.com/1707929
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-07-29 10:18:50 -05:00
Rafael Ortolan
bf27ccda54 ets_fps: Fix build error due to wakeup API changes
On latest 4.14 kernel update, wakeup_source_register API has changed.
Update the code accordingly.

NO_PROP_NEEDED: <only applies to bo>

Change-Id: I1ad821d2fc41f1258144421643ce8d353138d1fa
Reviewed-on: https://gerrit.mot.com/1707928
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-07-29 10:18:42 -05:00
Rafael Ortolan
1cbd43088c aw8695: Fix build error due to wakeup API changes
On latest 4.14 kernel update, wakeup_source_register API has changed.
Update the code accordingly.

NO_PROP_NEEDED: <only applies to bo>

Change-Id: If28a0811fccb1cb62a9c23718081c70ddc34214d
Reviewed-on: https://gerrit.mot.com/1707930
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-07-29 10:18:20 -05:00
Rafael Ortolan
ce3a86fc5b power: Fix build error due to wakeup API changes
On latest 4.14 kernel update, wakeup_source_register API has changed.
Update the code accordingly.

NO_PROP_NEEDED: <only applies to bo>

Change-Id: I54f79c0f1daf6c539104b97c86bc8f7dfe62ac22
Reviewed-on: https://gerrit.mot.com/1707931
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-07-29 10:17:56 -05:00
litong
12ff792ac6 Initial goodix_berlin touchscreen driver code
TP:
Initial goodix_berlin touchscreen driver code V1.0.1.

NO_PROP_NEEDED: <the driver code is for V(CR) project>

Change-Id: I872624045aea763c0483abb561dd7e3765544cd8
Reviewed-on: https://gerrit.mot.com/1702702
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2020-07-29 05:35:47 -05:00
litong
a436a73ce0 touchscreen_mmi: fix undefined symbol error on kernel 5.4
TP:
There is a compilation error on kernel 5.4:
	ERROR: sensors_classdev_unregister undefined!
	ERROR: sensors_classdev_register undefined!

So specific the depended module sensors symbol file.

NO_PROP_NEEDED: <only for v(CR) project>

Change-Id: I4d0acbc01e8c91c6d0226e26e1cd408d55b8df9c
Reviewed-on: https://gerrit.mot.com/1708522
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2020-07-29 05:34:38 -05:00
xizx
7ab54d7db0 mmi_sys_temp: use ANDROID_BUILD_TOP in Kbuild
fix the compile error during GKI kernel 5.4:
/home/xizx/work/moto/8350/8350_mainline_0725/kernel/msm-5.4/../../motorola/kernel/modules/drivers/misc/mmi_sys_temp/mmi_sys_temp.c:21:10: fatal error: 'linux/mmi_sys_temp.h' file not found

Change-Id: I67ff6dd7f3dcbc2e5fd58ab7f10524b2ce282792
Reviewed-on: https://gerrit.mot.com/1706403
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2020-07-29 03:38:58 -05:00
yuedl1
48b1ef558f exfat:fixed fs_error access null pointer
when exfat unmounted, but fs_error maybe callbacked by block layer
still.so just check whether the sb and sb_fs_info was released.

Change-Id: I30f55a2f3a20cbaecccbcf12d143590a02d1bf19
Signed-off-by: yuedl1 <yuedl1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1708296
Tested-by: Jira Key
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2020-07-29 01:44:44 -05:00
Bernie Moreno-BERNIEM
96a93628cd power: scale down initial chrg curr
Check for charge fcc higher than total combined batt fcc specs
and scale down to prevent initial over current condition when
charger first start and when temp or state changes occur.

NO_PROP_NEEDED:  Applies to smith and also olson 

Change-Id: I68de21a244256787a29467a765431ffad9b4fadf
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/1708110
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-07-28 21:44:38 -05:00
xizx
f316870a53 sensor_class: use ANDROID_BUILD_TOP in Kbuild
fix the compile error during GKI kernel 5.4:
/home/xizx/work/moto/8350/8350_mainline_0724-new/kernel/msm-5.4/../../motorola/kernel/modules/drivers/sensors/sensors_class.c:22:10: fatal error: 'linux/sensors.h' file not found

Change-Id: I11386a05de3f46e27382334dacbadaedec3f5500
Reviewed-on: https://gerrit.mot.com/1706404
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2020-07-28 04:15:03 -05:00
xizx
10565c3a46 mmi_info: use ANDROID_BUILD_TOP in Kbuild
fix the compile error during GKI kernel 5.4:
/home/xizx/work/moto/8350/8350_mainline_0724-new/kernel/msm-5.4/../../motorola/kernel/modules/drivers/mmi_info/mmi_ram_info.c:17:10: fatal error: 'linux/mmi_annotate.h' file not found
/home/xizx/work/moto/8350/8350_mainline_0724-new/kernel/msm-5.4/../../motorola/kernel/modules/drivers/mmi_info/mmi_storage_info.c:19:10: fatal error: 'linux/mmi_annotate.h' file not found
/home/xizx/work/moto/8350/8350_mainline_0724-new/kernel/msm-5.4/../../motorola/kernel/modules/drivers/mmi_info/mmi_boot_info.c:31:10: fatal error: 'soc/qcom/mmi_boot_info.h' file not found

Change-Id: I1a8c6b103e6cb1c77df6a428154d47dfc74a734a
Reviewed-on: https://gerrit.mot.com/1707443
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2020-07-28 04:14:55 -05:00
xizx
be58275032 mmi_annotate: vmap the physical ram in kernel 5.4
The dma_remap() is not supported again in GKI kernel 5.4, so use vmap
to remap the reserved memory.

build error:
  make[1]: Entering directory `/home/xizx/work/moto/8350/8350_mainline_0626_kernel/out/target/product/jordan/obj/kernel/msm-5.4'
    CC [M]  ../../motorola/kernel/modules/drivers/mmi_annotate/mmi_annotate.o
  /home/xizx/work/moto/8350/8350_mainline_0626_kernel/kernel/msm-5.4/../../motorola/kernel/modules/drivers/mmi_annotate/mmi_annotate.c:143:17: error: implicit declaration of function 'dma_remap'

Change-Id: I47a32fdcd98d92428223ec481a90c51875baaac6
Reviewed-on: https://gerrit.mot.com/1651707
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2020-07-28 02:14:14 -05:00
xizx
4a6f1e0f28 utags.ko: solve the unused remove_proc_subtree symbol definition
fix the compile error during GKI kernel 5.4:
ERROR: "remove_proc_subtree" [../../motorola/kernel/modules/drivers/misc/utag/utags.ko] undefined!

Change-Id: I861abd86c558b8b8fc46f77794d83e66d27b1bf5
Reviewed-on: https://gerrit.mot.com/1706098
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2020-07-28 02:14:09 -05:00
chengql2
f8fec22ac5 Egis.FPS Call early panel power-on when finger detected
motorola/kernel/modules/drivers/input/misc/ets_fps_mmi/:
Call display panel early power-on when finger is detected.

To avoid unexpected calling on panel's early power-on, e.g. unexpected
touching on FPS, move this calling from case of interrupt received to
case of finger detected.

NO_PROP_NEEDED: This feature is only enabled on bo for now. If this
feature wants to be enabled on bq-shm2018, the cherry-pick should then
be done in the development stage of related products.

Change-Id: I8a24835a3b2c8acfdb3a4ed744501b9a7b67b8c4
Signed-off-by: chengql2 <chengql2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1706588
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2020-07-27 23:44:21 -05:00
dengwei1
4af74c605f guamp: input add touch ilitek support
input add touch ilitek
support
NO_PROP_NEEDED

Change-Id: Ia682796dccf0783560042061eabb43b53fd6f038
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1706419
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-07-27 01:39:47 -05:00
Gilberto Gambugge
09322d9ab9 nt36xx: Fix bld error due to wakeup_api_changes
The goto statement needs to be enclosed by NVT_SENSOR_EN.
For devices where this is not defined, we have the following
build error:

+++++++++++++++++++++++++++++++++++++++++++
motorola/kernel/modules/drivers/input/touchscreen/nova_0flash_mmi/nt36xxx.c:2239:1: warning: label 'err_wakeup_source_register_failed' defined but not used [-Wunused-label]
error, forbidden warning: nt36xxx.c:2239
+++++++++++++++++++++++++++++++++++++++++++

NO_PROP_NEEDED: <only applies to bo branch>

Change-Id: Icecdcec4f169c30250c03a23006891ffb25c53bc
Reviewed-on: https://gerrit.mot.com/1705821
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Sergio Vilela <sv008@motorola.com>
2020-07-24 14:25:00 -05:00
Gilberto Gambugge
dc5c7eb474 focaltech_0_flash: fix bld error due to wakeup API changes
On latest 4.19 kernel update, wakeup_source_init API was removed.
So replacing it as follows:

- wakeup_source_init => wakeup_source_register

Also, ensure wake_source_register is compatible with all kernels.

NO_PROP_NEEDED: <only applies to bo>

Change-Id: Ic08fa612c3aa8adec0e2f485c9aa85e3a8eacdf1
Reviewed-on: https://gerrit.mot.com/1699262
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Sergio Vilela <sv008@motorola.com>
2020-07-24 10:06:17 -05:00
Gilberto Gambugge
048b4ec727 touch: nt36xxx: fix build error due to wakeup API changes
On latest 4.19 kernel update, wakeup_source_init API was removed.
So, replacing it as follows:

- wakeup_source_init => wakeup_source_register

Also, ensure wake_source_register is compatible with all kernels.

NO_PROP_NEEDED: <only applies to bo>

Change-Id: I8f3b7a62c0b17456aba18400e00117507f9e1873
Reviewed-on: https://gerrit.mot.com/1699261
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Sergio Vilela <sv008@motorola.com>
2020-07-24 10:06:15 -05:00
Gilberto Gambugge
46cb523d95 ets_fps: fix build error due to changes in the wakeup API
On latest 4.19 kernel update, wakeup_source_init and wake_source_trash APIs
were removed. So, replacing them as follows:

- wakeup_source_init => wakeup_source_register
- wakeup_source_trash => wakeup_source_unregister

Also, ensure wake_source_register is compatible with all kernels.

NO_PROP_NEEDED: <only applies to bo>

Change-Id: I35d73705252d23aedc2eb6b9ad4dcede0e451f35
Reviewed-on: https://gerrit.mot.com/1699260
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Sergio Vilela <sv008@motorola.com>
2020-07-24 10:06:10 -05:00
Ningkai Zhuang
b5a4e03b9f fix ST NFC driver compile error
Some API changed with Kernel 5.4 version
fix ST NFC driver compile error on Kernel 5.4

Change-Id: I1be44a5405907e4d2abdf26c2723302b3063ec29
Signed-off-by: Ningkai Zhuang <zhuangnk1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1702766
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zishang Zhou <zhouzs1@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2020-07-24 03:51:35 -05:00
Bernie Moreno-BERNIEM
fbe4f1ca46 power: Charge curr over adjustment- check both batts
Check for charge current over-adjust to the low side ignores the
flip battery condition.  So add a check that the flip is not in over
current when deciding to bump the target charge_fcc to main target
This affects mainly h/w test case where main batt thermistor is set
to 25C but Flip batt thermistor is set to cold temp below 0C.

NO_PROP_NEEDED: dual charge control affects both Smith and Olson
This change applies to both products.

Change-Id: I2db7c568852d698951efb3a45e99db17e9b62de3
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/1704030
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-07-23 19:26:48 -05:00
Bernie Moreno-BERNIEM
4177435612 power: Schedule 1sec smbchrg heartbeat when in ocp
Start of charge in STEP_MAX case can overshoot charge current in
either flip or main batt. So shorten scheduled heartbeat wakeup
time to 750msec during overcurrent condition only.

NO_PROP_NEEDED: dual_charge_control affects both Smith and Olson
but this change will protect both products similarly.

Change-Id: Idb3356f9afbc9a2d402af1b759d3c04f65e7bf44
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/1700177
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-07-23 11:12:48 -05:00
dengwei1
b1e649dc13 guam: input update init drm callback timer
input update init drm callback
timer
NO_PROP_NEEDED

Change-Id: I6cee13786e425e6b7181a4afe9d1e40896974bee
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1702270
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-07-23 00:31:39 -05:00
dengwei1
69aa47a468 guam: input add touch ilitek support
input add touch ilitek
support
NO_PROP_NEEDED:only for guam/guamp/guamna

Change-Id: I7cd9be63ad90f6c67d8df810799308b5a9fa7b26
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1702165
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-07-22 20:59:51 -05:00
Konstantin Makariev
f0353502be synaptics_mmi_class: postpone loading functions
Postpone loading functions while firmware upgrade in progress. Otherwise
loading F54 fails and following function remove causes kernel to panic


Change-Id: I6f5f7ddf523fc33ccd2403f0963eba2a001df6c4
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1696371
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-07-22 09:52:49 -05:00
hujing3
f0d788752f focaltech_0flash_mmi: ft fw file not found
Cebu focaltech touch invalid, tp fw name match fail
Recover fwname logic which is deleted by (CR):1687856
NO_PROP_NEEDED: 1687856 not merged to shm2018

Change-Id: I13500d1a4caa57882d10320332d2c0e6b164ece4
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1700585
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-07-22 03:48:36 -05:00
hujing3
ebeda72879 focaltech_0flash_mmi:8006s_aa update irq config
Cebu: FT8006s_aa TP
Enable FOCALTECH_SUSPEND_IRQ_ENABLE for factory build only
NO_PROP_NEEDED: for sm2020 Cebu only

Change-Id: I6a15627a0ef720a96880f6877c8597b577718e67
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1700247
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-07-22 00:59:43 -05:00
Gilberto Gambugge
a8d6fe9a99 input: touchscreen: Check buffer size
Correct buffer size by adding sizeof() to avoid buffer
overflow.

Change-Id: Icc7e008a6849a456f46a36d2c5d69a5885e10f7c
Reviewed-on: https://gerrit.mot.com/1687856
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Sergio Vilela <sv008@motorola.com>
2020-07-21 15:44:42 -05:00
Gilberto Gambugge
05174aafec input: touchscreen: focaltech: fix pointer comparison
Fix pointer to null char constant comparison

+++++++++++++++++++++++++++++++++++++++
Build error:

motorola/kernel/modules/drivers/input/touchscreen/focaltech_0flash_mmi/focaltech_test/focaltech_test_ini.c:136:21: warning: comparing a pointer to a null character constant; did you mean to compare to NULL? [-Wpointer-compare]
error, forbidden warning: focaltech_test_ini.c:136
+++++++++++++++++++++++++++++++++++++++

Change-Id: Ie1c9bcb4497ba8c0aeff74c2aa9ebaa111bb806d
Reviewed-on: https://gerrit.mot.com/1687857
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Reviewed-by: Rafael Ortolan <rafones@motorola.com>
Submit-Approved: Sergio Vilela <sv008@motorola.com>
2020-07-21 15:44:36 -05:00
litong
4e4042d824 Kiev: Add usb detection based on touchscreen class
TP:
Add support for USB detection based on touchscreen class in ft8756.

NO_PROP_NEEDED: <only needed for kiev in bo branch>

Change-Id: I94198558444620977ee90914347ffdb3c3360a01
Reviewed-on: https://gerrit.mot.com/1654275
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-07-21 02:34:28 -05:00
litong
40eb7e6dd7 Initialize usb state when registering the usb notification
If power supply supplier registered brfore touchscreen,
ps_notify_callback will not receive PSY_EVENT_PROP_ADDED
event, and will cause miss to set TP into charger state.
So check PS state in probe.

NO_PROP_NEEDED: <only needed for bo branch>

Change-Id: Ib2c190fe06bc9167a5e0108304e34389aa16ff5b
Reviewed-on: https://gerrit.mot.com/1685838
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-07-21 02:34:07 -05:00
Ryan Lattrel
e5ce10d03d sx933x: reinitialize via i2c watchdog
Re-initialize via a watchdog failure instead of a general
i2c failure.  This will allow us to recover from failures that
happen during init, and re-init.  The current solution does not
account of the fact that init could fail, and if init fails
there l(CR) won't be an interrupt that will drive the i2c
read/write failure to cause a recovery.

This should also reduce false postives, such as if we failed
to read i2c while suspending/resuming.

Change-Id: If7579a90c6490d5f9c4fec4c0d3e7b74cb8bdcaa
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1690483
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-07-20 17:08:19 -05:00
Drew Abbott
eb969bb20b Add SOH function
The state of health will provide a way to determine if a battery needs
to be replaced or not

NO_PROP_NEEDED: soh is only for TI FGs on Smith

Change-Id: I6281480033435d60b2e21ac81f093f1e09b51fca
Signed-off-by: Drew Abbott <drewa@motorola.com>
Reviewed-on: https://gerrit.mot.com/1690869
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-07-20 13:07:16 -05:00
xuwt2
1bf5c78fff qpnp-smbcharger-mmi: Offer hvdcp_power_max setting by sysfs
To proivde a sysfs node to reset hvdcp_power_max setting,
and rerun HVDCP process after that

Change-Id: I497a22d3e6974f27396595f894d868b55f4a80f0
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1686918
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-07-20 02:25:34 -05:00
Ryan Lattrel
420066548b sx933x: reset and re-init the device on i2c failures
If we get an unexpected i2c failure, toggle the ldo
and re-init the registers after it is back online.

Change-Id: Ie17a208fb612264a6ddc8cb5fff16e3123b5719e
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1672836
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-07-17 14:31:52 -05:00
Bernie Moreno-BERNIEM
502eafd250 power: Remove FG reset for factory bootmode
Factory agrees to manually reset FG'es rather than automatically
in BL factory bootmode, in addition to factory_build. This will
allow CFC test to charge batteries in COM and reboot with minimal
charge capacity variation compared to re-init'ing FG at every boot.

NO_PROP_NEEDED: TI FG for smith product only

Change-Id: I6f0b2ceaeff5d4c20b01e154b48f9c54e22a9ef0
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/1689972
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-07-17 13:11:10 -05:00
hujing3
70c1f7b543 focaltech_0flash_mmi:8006s_aa enable irq when supspend
Cebu: FT8006s_aa TP
TP need irq enabled to reload FW per LDA request
NO_PROP_NEEDED: for sm2020 Cebu only

Change-Id: I8fb0609b6d24f9798fda858e49fb496368d7e595
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1689716
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2020-07-17 10:20:51 -05:00
Bernie Moreno-BERNIEM
6520a77a6e power: Remove FG reset check for factory sw build
Factory s/w currently forces FG resets at every power up, as well
as from sysfs cmd. The s/w build applied reset causes unstable soc
when batteries are charged prior and esp with high rate chargers
in backend COM test.

NO_PROP_NEEDED: TI FG specific to Smith product.

Change-Id: I7b8bc56efa113db465e8f4cc965ca7b064543ebe
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/1687439
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-07-16 23:48:37 -05:00
litong
c984540ea0 Add macro definition to control unused code in Kiev
1. kiev use panel notifications, so DRM and FB notifications are
not used.
2. Kiev use touchscreen class to control the resume and suspend
process, so conmment out unused notifications.

Change-Id: Ied0266b821d797ea38080c0f9a2027ce2be7ead6
Reviewed-on: https://gerrit.mot.com/1683922
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2020-07-16 03:26:35 -05:00
litong
8828c3c907 Kiev: ft8756:report touch events to touchscreen class
1. If there is a demand in the future, the touch screen class can add
some processing before reporting the touch events.
2. Output touch events for debugging

NO_PROP_NEEDED: <only for kiev in bo branch>

Change-Id: I1ad85bd86efc4799398530d30c6fe263e861e189
Reviewed-on: https://gerrit.mot.com/1683831
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2020-07-16 03:25:07 -05:00
wuwl10
05b981d8fa Double tap optimization
Set double click interval to 300ms  to
avoid false trigger.

NO_PROP_NEEDED: porting from bq-sh2019

Change-Id: Id4ab80b4c91c54fe37cb0af72bec267f1276e731
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1685735
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2020-07-16 01:58:50 -05:00
hujing3
522fa4233e focaltech_0flash_mmi: fix tp recovery issue for fts8006s_aa
Cebu: FT8006s_aa TP
TP recovery issue after ESD
NO_PROP_NEEDED: not sutiable for shm2018

Change-Id: I01bb84edea5416190f2f9bcef6dc0ab6e95fcf6b
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1685843
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-07-16 00:00:17 -05:00
Bernie Moreno-BERNIEM
ecd2ed388f power: TI FG dm_ver3
The golden profiles generated in TI tool does not account for Mot
custom chemistry setting. So we need to manually add dm element IDs
85, 84, 85, 108 to both FG gmfs files. Also increment dm ver to rev3.

NO_PROP_NEEDED: specific to only TI FG in smith.

Change-Id: Iba79bb27ddf7e3cd1007ca843d5a0092f275ca32
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/1685703
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-07-15 23:04:54 -05:00
Gilberto Gambugge
1fa9b4b582 aw8695:Ensure wakeup_source API is compatible for all kernels
Updated wakeup_source API's need to be used for kernel_versions > 4.19.
Ensure to retain old wakeup_source API's for kernel_versions < 4.19.

ref.: https://gerrit.mot.com/#/c/1681553/

NO_PROP_NEEDED: applicable only to kernel_versions > 4.19

Change-Id: If7dc7924e584da29215b69027230856b0dc6e8c8
Reviewed-on: https://gerrit.mot.com/1685190
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Sergio Vilela <sv008@motorola.com>
Submit-Approved: Sergio Vilela <sv008@motorola.com>
Tested-by: Sergio Vilela <sv008@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
2020-07-15 17:00:10 -05:00
Konstantin Makariev
433cbc1bde aw8697: optimize sequencer registers write
Write all sequencer registers in one I2C transaction. Set WAVSEQ1
to 1 in vibrate function when it was not explicitly set

Change-Id: I24e13813bd97b6afb4436f91e79090ea6cb51a78
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1680232
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-07-15 16:07:53 -05:00
Konstantin Makariev
0eb28d01c1 aw8697: i2c transaction logging
Added I2C transaction logging facility. This feature controlled
by macro AW8697_I2C_DEBUG unset by default.

Change-Id: If5d5605ed094616a8dd866483ef40187e42bb3d4
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1680362
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-07-15 16:07:41 -05:00