Commit graph

1,748 commits

Author SHA1 Message Date
litong20
74ec6c7a60 Fix the build error on denver project.
Error:
nt36xxx_fw_update.c:23: Panel notifier undefined!!!
[-W#warnings]\n' error, forbidden warning: touchscreen_mmi.h:145

Change-Id: Ibdae0b030dce55f57cdf3da04c09c8f0f9999dbf
Reviewed-on: https://gerrit.mot.com/1983455
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-06-17 21:56:21 -05:00
yanyh2
c5311dbe8d add charger state sync interface
Do charger state sync when boot completed in case missing
some charger state change.

Change-Id: Iec128382d5edb98cda47752d07e606a6b66316be
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1982792
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2021-06-17 07:42:11 -05:00
yanyh2
5aa73a35c9 Revert "(CR): send charge rate uevent when power supply changes"
As the reverted patch may cause panic for race resource batt_uenvp
when it accesses batt_uenvp which was just freed in heartbeat work.

Mot-CRs-fixed: (CR)

This reverts commit 715a9d18d8fa6b7acfc9540f5e3df2c4332baf28.

Change-Id: I07f3bf2cba6f30b345988231d0ee8ea18da27e4f
Reviewed-on: https://gerrit.mot.com/1982785
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2021-06-17 07:42:00 -05:00
litong20
75b0a4d487 Need to update fw on resume for zero-flash touch IC.
The kernel does not have permission to access the /data/vendor
partition, so send the update firmware notify to touchUpg service
on resume for zero-flash touch IC.

avc: denied { search } for name="param" dev="dm-6" ino=275
scontext=u:r:kernel:s0 tcontext=u:object_r:param_data_file:s0
tclass=dir permissive=0

Change-Id: I5d5c9f39bab25a8d3377e0475e79a0411d93b56b
Reviewed-on: https://gerrit.mot.com/1979786
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Submit-Approved: Jira Key
2021-06-17 02:30:53 -05:00
litong20
4ddfc550ae novatek: Support parameter upgrade method
Support to upgrade TP firmware through the
Parameter APK.

Change-Id: I370e175db38ab7f5de3aa4cc5aabae7ea2f219c6
Reviewed-on: https://gerrit.mot.com/1979783
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Submit-Approved: Jira Key
2021-06-17 02:30:42 -05:00
zhuangnk1
5f718ceebc st21nfc:support build in kernel-5.10
Support st21nfc ko build in kernel-5.10
for rogue bring up

Change-Id: Ib55455435f68170db931cf779e3d8fe2ae25a63c
Signed-off-by: zhuangnk1 <zhuangnk1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1966273
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zishang Zhou <zhouzs1@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-06-16 21:32:36 -05:00
xuwei9
1c1bf99fc9 qc3p:Set AICL thres at qc3p pmic charging
At hvdcp more than 15w project.
AICL threshold will set to higher than 5V
which result pmic charging current unstable.

Change-Id: If1a0e9174dbaf5df656442bbdd1247b231636c48
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1980875
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-06-16 00:34:45 -05:00
chailu1
08626d5e9a dlkm: add enable CP api
add enable CP api for ESR.
disable all CP before ESR and switch to PMIC
enable all CP after ESR

Porting from (CR)

Change-Id: Ie2eafab9002b85982b359124c007dc939642fe14
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1978514
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Submit-Approved: Jira Key
2021-06-15 04:23:27 -05:00
Yan Zhang
b1f8698429 add power ctrl for fpc driver
Control gpio switch and regulator of fingerprint according to
the configuration of device node.
1. Use gpio switch if fp-gpio-ven is defined and valid.
2 .Use regulator control if rgltr-ctrl-support is defined and relevant
    vdd, voltage range is valid.

Change-Id: Ia5e71c08306835e4d93552dbc037beb78fca39db
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/1971796
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-06-15 02:06:11 -05:00
Yan Zhang
a38b3424f3 add power ctrl for goodix kernel driver
Control gpio switch and regulator of fingerprint according to
the configuration of device node.
1. Use gpio switch if fp-gpio-ven is defined and valid.
2 .Use regulator control if "rgltr-ctrl-support" is defined and relevant
    "fp,vdd" and voltage range is valid.


Change-Id: I40acd3abdba285a41f258d51b62f92a59c6796c7
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/1971397
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-06-15 02:05:55 -05:00
wangshuo18
83117789d0 aw8695: move camera start entry before the vibrator timer
-In the current logic,the camera process is after setting the vibrator timer.
The camera will take some time,which cause the vibration duration to be shorter.
Especially when we use launch_lens to move lens step-by-step.
-So move camera process before setting vibrator timer.

Change-Id: Ib8115444015f6160c25177e9065aa0f6a2fcede3
Signed-off-by: wangshuo18 <wangshuo18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1976296
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Xingyun Fu <fuxy7@motorola.com>
Reviewed-by: Qiang Guo <guoq8@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-06-14 20:50:02 -05:00
wengjun1
f572e51181 dlkm: Touch gc7372 bringup
- Add support for 2nd source galaxy core gc7372.
- Add support for touch class for moto.
- Need to be improverd since this is initial code.

Change-Id: Ib75619df4f97be6a4ec2c5f3df8714cbac341fc1
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1974591
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2021-06-11 02:27:03 -05:00
dengwei1
73150b3cd8 pstar: vibrator add moto fw
vibrator
add moto fw

Change-Id: I7671e8b9fc8eee5e65c5af6287d44ecc7c4d4e5d
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1977359
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2021-06-11 01:37:33 -05:00
chenglong1
f7dec3bb51 Fix artificial vibrating pattern caused AF always on.
When vibrating with pattern [0,200,0,50], the vibrating will be started with
200ms duration first, when 200ms timeout, vibrator will be stopped with
duration 50ms which will not be considered as long vibrating, then AF will
not be turned off after that. This change is for fixing above issue, though
we haven't got evidence pointing to above metioned vibrating pattern is user
really encounted issue.

Change-Id: Iadc8ff7b9e00a11dc1d3e89b822e6cb8adb76116
Signed-off-by: chenglong1 <chenglong1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1973075
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Zhilong Wang <wangzl30@motorola.com>
Reviewed-by: Darong Huang <huangdra@motorola.com>
Reviewed-by: Jian Zhang <zhangjo@motorola.com>
Reviewed-by: Shuo Wang <wangsh18@motorola.com>
Reviewed-by: Zhuoran Xu <xuzr3@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-06-09 01:28:13 -05:00
chailu1
1558cd9184 charge: Add thermal interface
charge/thermal
add thermal control interface for charge

Change-Id: I748f77bd6b08fa8b240ee97e1586704b6338fb66
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1972226
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-06-08 21:55:41 -05:00
xuwei9
91fe461a72 qc3p:clear sm work when vbus off
Clear SM work when vbus off
at qc3p charging

Change-Id: Icf5fd619c70ac49869661af846db6bee9e45a529
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1973745
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-06-08 21:45:48 -05:00
litong20
38f8cc8aae Add sense off process to enter the idle process.
Add sense off process berfore sense on to avoid
the problem that tp firmware cannot exit the
gesture mode normally.

Change-Id: Ibb7a8572c168f8c4427c868fd8075ea086138243
Reviewed-on: https://gerrit.mot.com/1973335
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-06-08 04:13:17 -05:00
chailu1
a358f8bae4 CP: add qc3p charge policy
qc3p and  charge pump
add qc3p charge policy

Change-Id: I3af6c3214a88b5ad327f10df1f6afa639d7bfc5b
Reviewed-on: https://gerrit.mot.com/1967489
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-06-08 03:29:20 -05:00
chailu1
b657c809a6 CP: Reorganize charge pump
move common code from pps charge policy file
to mmi charge core file

Change-Id: I975b21e1d2c30c1ffd5b3939db1dbbefb295ffe6
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1967488
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ying Xu <xuying9@motorola.com>
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-06-08 03:23:50 -05:00
yanyh2
2286350930 Print ADSP battery manager log if charging changes
1. Print bm log when qti charger init complete
2. Print bm log when battery status changes
3. Print bm log when charger status changes

Change-Id: Iadbb43908094c1dbe7e91e32dc1c94c1f23d4ca1
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1971298
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-06-08 02:24:00 -05:00
yanyh2
d9aca754c7 Create bm_adsp_ulog module
1. Provide debugfs interface to collect battery manager ADSP log  in AP side.
2. Provide debugfs interfaces to configure log level and category for log mask.
3. Provide exported APIs for other Moto battery charger DLKM to get battery
charger ADSP log and output to Kernel log or IPC logging.

Change-Id: I93cb18542414b21084a09218366d6d675beeb807
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1971297
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-06-08 02:23:38 -05:00
xuwei9
45de9245da qc3p:config 33W charging current
Config 33W charging current
per project requirement.

Change-Id: I01e2cd078ad2739a764a9a726512437666195cfe
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1972960
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-06-08 00:48:41 -05:00
cuijy1
f23823a376 sx937x:fix wrong POWER_SUPPLY_ONLINE define
fix wrong POWER_SUPPLY_ONLINE define in Kbuild
change to CONFIG_SX937X_POWER_SUPPLY_ONLINE

Change-Id: If716625a7ad9446debc6ad5439674a08fd34a12c
Signed-off-by: cuijy1 <cuijy2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1972006
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hong Zhang <zhangh12@motorola.com>
Reviewed-by: Ningkai Zhuang <zhuangnk1@lenovo.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2021-06-07 21:49:13 -05:00
wengjun1
b8bc7593ff Cyprus: dlkm: ili9882 driver improvement
- Since the uncertainty of the loading time of the display
module when using gki, so change the logic of read panel
name  in touch module.

Change-Id: I82d519bb96a8c82b1eff7044949ab270263a648c
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1956524
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-06-06 21:39:11 -05:00
wangyq13
6a11390b68 input: focaltech_v2_mmi: add ft3519 upgrade function
focaltech_v2_mmi:
Add ft3519 firmware upgrade function.

Change-Id: I3a5935a38f36b202c4770d8ae7ca432379187bac
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1970307
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: gaoyx9 <gaoyx9@motorola.com>
2021-06-04 05:05:14 -05:00
litong20
0af265a862 Solve the build error: MODULE_IMPORT_NS missing
TP
MODULE_IMPORT_NS declaration specifier missing, defaulting
to 'int'

Change-Id: Ibe478fff1f66e478f6ec198c0554f2433ddfdcde
Reviewed-on: https://gerrit.mot.com/1969007
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-06-03 05:24:23 -05:00
zhangh12
57dceea1db pstar: sar: support multi parameters for different panels
the panel name can be captured from the bootargs, then define the correspoding
regs in dts of sensor.

Change-Id: Ia25da8afad4fd6c710a3f8d62333350278cdfb78
Signed-off-by: zhangh12 <zhangh12@motorola.com>
Reviewed-on: https://gerrit.mot.com/1967050
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Jiyue Cui <cuijy2@lenovo.com>
Reviewed-by: Yuchang Guo <guoyc1@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-06-03 02:22:24 -05:00
wangshuo18
f8fe0eaf11 aw8695: optimize vibrator&camera resonance issue
-move camera start interface into aw8695_haptic_play_go to cover all
vibratoring cases
-add camera func called in aw8695_haptic_get_f0,to handle resonance
during phone boot case

Change-Id: I17e39debfabca1a812ac2728f10714eff08bdf9d
Signed-off-by: wangshuo18 <wangshuo18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1967255
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-by: Zilong Zhang <zhangzl7@lenovo.com>
Reviewed-by: Wang Liu <liuwang2@lenovo.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2021-06-03 02:03:45 -05:00
litong20
a5632a94c1 Stmicro: Support parameter upgrade method
TP:
Support to upgrade TP firmware through the
Parameter APK.

Change-Id: I62fa7f7af03f6e850231a36e1d8a0f3911c92ee9
Reviewed-on: https://gerrit.mot.com/1966402
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-06-03 00:33:29 -05:00
litong20
51573bcad9 Add flash mode sysfs node in touchscreen mmi
TP:
Add flash mode sysfs node in touchscreen mmi
if flash_mode == 1, read firmware from /data/vendor/param/touch
else follow the previous process.

Change-Id: I17add2b289534533f6c87e4c321847f682cc02b1
Reviewed-on: https://gerrit.mot.com/1853339
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-06-03 00:33:07 -05:00
wangyq13
01ff483bf3 dlkm: lm3697: free resouces when init failed
- free resouces when init failed
- remove other ic type codes, only keep lm3697

Change-Id: Idfcbaba3f960906f947f22b8b30b30c0204c2dcd
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1967063
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Shanshan Dai <daiss1@motorola.com>
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-06-02 01:14:17 -05:00
mahj8
772c26d269 DLKM: bring up corfup PD 30W charging
bring up PD 30W charging
for corfup

Change-Id: I491a99c52accd397e69f88b864c5904f74ed9bff
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1943072
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-06-01 01:01:43 -05:00
mahj8
0828713dfe charging: pick base parellel charger from mmi_parallel_charger
pick base parellel charger from mmi_parallel_charger
for mmi_parallel_charger_iio

Change-Id: I3580ea06b0bf607574a7f5b36229ac3a2cf3d84a
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1932574
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-05-31 22:33:04 -05:00
yanyh2
6bdd0e5bb6 send charge rate uevent when power supply changes
Send charge rate uevent if power supply changes in case the
charge rate change uevent is missing by BatteryServices before
it starts up.

Change-Id: I4343454c54e30df1cbbc512d473b9061b10cbd84
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1964225
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-05-31 00:53:50 -05:00
xuwei9
784d268d31 bq25980:update charge VOUT parameter
Update Vout parameter to
chip default value

Change-Id: Id12a731f90debc141359aa4e3864b5e89b5bf3f1
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1964651
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-05-30 21:34:36 -05:00
Ryan Lattrel
55e2add665 bq27426: Fix kbuild to use ANDROID_BUILD_TOP
Use ANDROID_BUILD_TOP instead of TOP. TOP does not appear
to work anymore.

Change-Id: I9ca1f85ced505488c205078febf6d954aa7e9bc3
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1928666
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-05-28 14:54:15 -05:00
xizx
f198b62bae mmi_info: support build in kernel-5.10
build error:
     CC [M]  /home/xizx/work/moto/8450/pine_20210507_08_userdebug/motorola/kernel/modules/drivers/mmi_info/mmi_info_main.o
   /home/xizx/work/moto/8450/pine_20210507_08_userdebug/motorola/kernel/modules/drivers/mmi_info/mmi_unit_info.c:185:15: error: incompatible pointer types passing 'const struct file_operations *' to paramet
                   0444, NULL, &unitinfo_operations);

Change-Id: I0dc40ac30cf8b37161d55ffc0a993f6c51979e98
Reviewed-on: https://gerrit.mot.com/1949925
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xianshan Wang <wangxs8@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2021-05-28 05:28:11 -05:00
xizx
f9b4963d4d mmi_annotate: support build in kernel-5.10
build error:
make[2]: Entering directory '/home/xizx/work/moto/8450/pine_20210507_08_userdebug/out/msm-waipio-waipio-gki/common'
  CC [M]  /home/xizx/work/moto/8450/pine_20210507_08_userdebug/motorola/kernel/modules/drivers/mmi_annotate/mmi_annotate.o
/home/xizx/work/moto/8450/pine_20210507_08_userdebug/motorola/kernel/modules/drivers/mmi_annotate/mmi_annotate.c:229:15: error: incompatible pointer types passing 'const struct file_operations *' to parameter of type 'const struct proc_ops *' [-Werror,-Wincompatible-pointer-types]
                0444, NULL, &mmi_annotate_operations);
                            ^~~~~~~~~~~~~~~~~~~~~~~~
/home/xizx/work/moto/8450/pine_20210507_08_userdebug/kernel_platform/common/include/linux/proc_fs.h:109:122: note: passing argument to parameter 'proc_ops' here
struct proc_dir_entry *proc_create(const char *name, umode_t mode, struct proc_dir_entry *parent, const struct proc_ops *proc_ops);
                                                                                                                         ^
1 error generated.

Change-Id: I6bc25e9e74cae7582862b83b29796538271e9406
Reviewed-on: https://gerrit.mot.com/1949924
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xianshan Wang <wangxs8@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2021-05-28 05:28:06 -05:00
xizx
3bc16eaf4a utags: support build in kernel-5.10
fix build error:
  /home/xizx/work/moto/8450/pine_20210507_08_userdebug/kernel_platform/common/include/linux/fs.h:699:10: note: forward declaration of 'struct block_device'
                  struct block_device     *i_bdev;
                         ^
  /home/xizx/work/moto/8450/pine_20210507_08_userdebug/kernel_platform/common/../la/motorola/kernel/modules/drivers/misc/utag/utags_x.c:606:16: error: incompatible pointer types passing 'const struct f
                          dnode->dir, fops, node);
                                                                        ^
  6 errors generated.
  make[3]: *** [/home/xizx/work/moto/8450/pine_20210507_08_userdebug/kernel_platform/common/scripts/Makefile.build:277: ../la/motorola/kernel/modules/drivers/misc/utag/utags_x.o] Error 1
  make[2]: *** [/home/xizx/work/moto/8450/pine_20210507_08_userdebug/kernel_platform/common/Makefile:1898: ../la/motorola/kernel/modules/drivers/misc/utag] Error 2
  make[2]: Leaving directory '/home/xizx/work/moto/8450/pine_20210507_08_userdebug/out/msm-waipio-waipio-gki/common'

Change-Id: I5f0beae3b2bb9892ee38213f7cbf51b8d2d2561c
Signed-off-by: xizx <xizx@motorola.com>
Reviewed-on: https://gerrit.mot.com/1949923
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xianshan Wang <wangxs8@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2021-05-28 05:28:00 -05:00
Konstantin Makariev
7a6de0ddde bos0614_mmi: fix alignment issue
Structure alignment and missing data initialization allowed for
improperly populated value.

Change-Id: Iab8c395452db159415cf3052e7a7590770d8ae5f
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1962683
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-05-27 14:37:47 -05:00
litong20
60840057ae Enable PANEL_NOTIFICATIONS for berlna touchscreen
When using drm panel notifications, there is a problem with
the display and touch loading sequence, which may cause TP to fail to 
find the active panel and thus fail to receive the display notification
So use panel notificaitons to avoid the issue.

Change-Id: I7269436bd8117db74467050d4cb839353efdf1a0
Reviewed-on: https://gerrit.mot.com/1962331
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-05-27 05:57:30 -05:00
litong
8243242481 Revert "(CR): fix user version build error"
Not defined CONFGI_PANEL_NOTIFICATIONS, so the module does not depend on
the msm_drm.ko, so there is no need to add the kernel symvers.

This reverts commit 976d0428b82bdf3b44b2affdc67a0e18f40a72e3.

Change-Id: If84d0e09157d13c6731df33ac032e7bee53d0e0b
Reviewed-on: https://gerrit.mot.com/1960482
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-05-27 01:45:23 -05:00
litong20
9061c0b31d Add NVT_SET_TOUCH_STATE to avoid compilation errors
TP:
The touch_set_state function will only be used when the
NVT_SET_TOUCH_STATE configuration is enabled. So add the
configuration to avoid compilation errors.

Change-Id: I832362899339c3465f475c13bb654a73216d8e9c
Reviewed-on: https://gerrit.mot.com/1960799
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-05-27 01:29:25 -05:00
litong20
8899397ed7 Deleate fts_system_reset in wait_for_ready
TP:
There may be a problem of function recursive calling.

[ 72.152265] Kernel panic - not syncing: kernel stack overflow
[ 72.152270] CPU: 2 PID: 515 Comm: modprobe Tainted: G S O 5.4.61-moto-00155-gb5a835fac66e #1
[ 72.152273] Hardware name: Berlin (DT)
[ 72.152277] Call trace:
[ 72.152283] dump_backtrace.cfi_jt+0x0/0x4
[ 72.152289] show_stack+0x18/0x24
[ 72.152296] dump_stack+0xb8/0x114
[ 72.152302] panic+0x188/0x3f0
[ 72.152306] nmi_panic+0x98/0xb8
[ 72.152311] handle_bad_stack+0x11c/0x130
[ 72.152317] __bad_stack+0xc8/0xcc
[ 72.152322] update_group_capacity+0x4/0x290
[ 72.152326] find_busiest_group+0xe0/0x834
[ 72.152331] load_balance+0x2b0/0xe7c
[ 72.152336] newidle_balance+0x2f4/0x5d4
[ 72.152341] pick_next_task_fair+0x40/0x664
[ 72.152347] __schedule+0x290/0x8ac
[ 72.152351] schedule+0x8c/0xc0
[ 72.152356] schedule_timeout+0x90/0x120
[ 72.152361] wait_for_common+0xd0/0x16c
[ 72.152366] wait_for_completion_timeout+0x14/0x20
[ 72.152372] geni_i2c_xfer+0x3d8/0x12fc
[ 72.152379] __i2c_transfer+0x2a4/0x8d8
[ 72.152383] i2c_transfer+0xd4/0x1a4
[ 72.152412] fts_writeReadU8UX+0x1ac/0x290 [stmicro_mmi]
[ 72.152433] pollForEvent+0xc0/0x378 [stmicro_mmi]
[ 72.152454] fts_system_reset+0x104/0x268 [stmicro_mmi]
[ 72.152475] fts_system_reset+0x11c/0x268 [stmicro_mmi]

Change-Id: I0f09ef7edd856b21afe71866fc260208184807c0
Reviewed-on: https://gerrit.mot.com/1960709
Reviewed-by: Jichao Zou <zoujc@motorola.com>
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
2021-05-26 04:34:35 -05:00
yanyh2
5015d763e9 Add 30W turbo charger type
Add 30W turbo charger type support to identify
the charger type with power more than 25W.

Change-Id: I4365fa695b859c8d6916336fc34c832ca1c1aa82
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1960683
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
2021-05-26 03:39:01 -05:00
zoujc
6ddaa92a82 touch mmi:declare dependency.
touch mmi driver depend the display driver,
in gki build, display is a module, so declare
the dependency.

Change-Id: Ie18e87fb06a16f467de8cefa9fd28af7bb8c47a1
Signed-off-by: zoujc <zoujc@motorola.com>
Reviewed-on: https://gerrit.mot.com/1958702
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-05-24 20:48:54 -05:00
wangyq13
0213be45da dlkm: leds_aw99703: free gpio if init failed
dlkm/leds_aw99703:
Free gpio if init failed, otherwise other modules can't request
this gpio again.

Change-Id: I0cfcde5156651c298d24b6debde468593efe48d6
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1958088
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ying Xu <xuying9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-05-24 04:28:55 -05:00
wangyq13
0a30569e82 dlkm: leds_lm3697: add initial version lm3697 driver
dlkm/leds_lm3697:
Add initial version lm3697 driver.

Change-Id: Ibc125e6980e46d8c1c2bbe8d93a06e236a64e456
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1954968
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ying Xu <xuying9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-05-24 04:28:47 -05:00
litong20
0f6b37ff56 Fix berlna user version build error.
TP:
When link binary object, touch_set_state is undefined,
No kernel symbal table was imported.

Change-Id: Ibd1cde478b08308d14fdba210ae3a61cd9887ff5
Reviewed-on: https://gerrit.mot.com/1957708
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-05-24 00:37:50 -05:00
litong20
39087fae46 Support novatek single tap in berlna
TP:
Support novatek single tap function in berlin NA.

Change-Id: I8f1d8d82b919b20fcba4812a74f247399a097ddf
Reviewed-on: https://gerrit.mot.com/1955575
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2021-05-24 00:37:06 -05:00