Commit graph

1638 commits

Author SHA1 Message Date
xuwt2
3e1fee02e6 optimize the charging logic in thermal mitigation process
-1, clear thermal mitigation flag in SM_QUITE and SM_ENTRY
-2, recovery charger power after quiting thermal mitigation

Change-Id: I1e77f3e443ece14c9b309057d50d433b657e2e66
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1430164
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1893578
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
2021-03-05 00:02:04 -06:00
xuwt2
9a88b76a90 Improve the PD charging performance in high temperature
-1, define a last chrg step flag.
-2, Disable charger pump IC at PM_STATE_ENTRY.
-3, Add second search cycle in mmi_find_chrg_step
-4, clear the batt_curr_roof and pd_constant_power_cnt
when switch the state machine work

Change-Id: I1156b8168c387ae2edf88052e9251302ef899ae1
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1429346
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1893575
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
2021-03-05 00:01:42 -06:00
xuwt2
f1c2a3ab26 mmi_paralel_charger: Enhance the compatibility of PD charger
-1, Set the initial PD current to 2A.
-2, filter out the wrong PD request power for selecting PD charger.
-3, clear the pps result history after error pd result handing
-4, detect the pd constant power state, and avoid to excessive
boost vbus

Change-Id: I158a68c2907af42c07cd408ce162b528b3e39f10
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1428520
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1893572
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
2021-03-05 00:01:08 -06:00
xuwt2
cf486f79c3 mmi_parallel_charger: enhance the stability of sm work
Under certain condition, the PD adapter would be instability,
and the sm work who responsible for the entire charging policy
might exited abnormally.
improve the synchronous processing.

Change-Id: I87bb51a4b69178f9eb40d6519328975203027c7e
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1427554
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1893556
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
2021-03-05 00:00:39 -06:00
xuwt2
1a24421fc8 mmi_pl_chrg: improve the chrg recovery handling
Redefine the charger device error type,
In some case, the output of PD adapter is not stable,
It would cause the UCP or OCP occurs on the bq2597x,
Add a recovery handling to response to this issue.

Change-Id: I9350df26252483b5c9010c9ef27d0364b59d57b2
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1427195
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1893555
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
2021-03-05 00:00:01 -06:00
xuwt2
a2f329a62a mmi_chrg_manager: optimize thermal mitigation logic
-1, optimize thremal logic
-2, force pmic charging when the battery capacity is high(upper 90%)

Change-Id: Ic8b6a58decf4903b757c1554efe587100b69236e
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1413367
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1893553
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
2021-03-04 23:59:29 -06:00
xuwt2
312d45b3df mmi_pl_chrg: create some sysfs node for setting mmi_params
factory_charge_upper
factory_image_mode
force_demo_mode
force_max_chrg_temp

Change-Id: I4e40acf9a628becMontana3ca70652659b0b0b459be1
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1408893
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1893551
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
2021-03-04 23:59:04 -06:00
xuwt2
3318b25022 mmi_parallel_charger: optimize temp zone structure
-1, set temp_c as signed constant
-2, add conditional judgment to prevent invalid temp zone

Change-Id: I7ed0fe09034c5669f1538954ebf871e1ed7cf0e7
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1408609
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1893549
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
2021-03-04 23:58:12 -06:00
xuwt2
bcb5ddfdc9 mmi_parallel_charger: Optimize 40w charging logc, 1.0
-1, change the 40w charger cooling policy
-2, change the 40w charger thermal mitigaion policy

Change-Id: I248e5b01c748e5791d28dec48eede859e571e931
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1404488
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1893548
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
2021-03-04 23:57:38 -06:00
xuwt2
df4d91f376 mmi_parallel_charger: Optimize 40w charging policy
-1, Add chrg ucp and ocp detection
-2, Add chrg_policy_error_recovery policy
-3, Add chrg_dev_init
-4, change charger thermal cooling policy,
remove THERMAL_COOLING chrg step, add thermal cooling process
into CC loop and CV loop, that to avoid miss chrg step in cooling

Change-Id: I57d66af338505c5ff9fd711de8b650afdb4a4027
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1389618
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1893545
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
2021-03-04 23:56:58 -06:00
xuwt2
a0200f3340 mmi_parallel_charger: Create Heartbeat work
Create Heartbeat work to listern battery && charger status
-1, check charger rate
-2, add mmi_power_supply_changed to report status
-3, register alarm to wake up heartbeat
-4, register pm suspend and resume

Change-Id: Ic4b4d95453fa9e4a2adeaaac48b0705e8726e3e4
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1385370
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1893544
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
2021-03-04 23:56:30 -06:00
xuwt2
e778e4a2b0 DLKM: mmi_parallel_charger
upload the code of mmi_parallel_charger
this is the original release

Change-Id: Iae012a72e3c2c177d48154b9215eda54ab6b70a6
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1378406
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1893536
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
2021-03-04 23:55:52 -06:00
dengwei1
a7346501f9 pstar: input touch support cqa test
input touch
support cqa test

Change-Id: Ief15a41b4b24f48efc52797e96ff5be46c3b0bf5
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1892850
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-03-04 20:15:03 -06:00
Ryan Lattrel
87762839fd bq25890: commit initial version
Commit a copy of the bq25890 driver from the core
kernel drivers.  We will need to make changes.

Change-Id: I5c5dfe19e19bec4f3c1ae4f24e6947213894604e
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1888564
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-03-03 19:12:41 -06:00
Ryan Lattrel
390382c948 bq27426: guard extra batt props
Guard unofficial battery properties by the kernel version,
as we cannot modify newer version of the kernel to comply
with the GKI.

Change-Id: I1446789cd91813eaeccaac733db7ac11fa50176b
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1888563
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-03-03 19:12:37 -06:00
yanyh2
b57b39efc2 correct the charger present based on charger type
USB charger absence will assert during USB enumeration on
bootup with USB connected, so it will trigger the factory
kill power off unexpectedly in factory mode.

To avoid this issue, consider the charger as present as long
as the charger type is not unknown at the same time.

Change-Id: I96a04cc96536a63936c69946c507198d933ef560
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1891779
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-03-03 10:24:54 -06:00
dengwei1
bce298ba3b pstar: input touch stm bring up
add dtsi config
for resolution

Change-Id: Ifce21e0d35484042be7037399b5eb45f68000008
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1889027
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-02-28 20:15:59 -06:00
wengjun1
0f5e810baf dlkm: bo: Improve touch driver for novatek
- After the firmware is reset due to some exceptions, restore
the state of charger, stylus, palm, edge rejection.
- Filtering repeated commands of edge rejection.

Change-Id: Ie7076e1908ef528787d20dfe8970d9568636f114
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1886971
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2021-02-28 20:03:25 -06:00
Konstantin Makariev
d50d08f1f6 bos0614_mmi: build kernel code
Bunch of changes required to build DLKM in MMI environment

Change-Id: Id906a1153eef64111f220f70aca1f48da0132276
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1876599
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-02-26 12:42:43 -06:00
Konstantin Makariev
11ec8915a7 bos0614_mmi: initial reference driver
Initial reference kernel driver code for BOS0614 piezo haptic IC

Change-Id: Ia7d7abca9eca2f077c830a7edada0f7450a8cebc
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1870423
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-02-26 12:42:39 -06:00
Ryan Lattrel
c52fc6fc91 mmi_charger: Option to start with no factory kill
Add an option to let us start with the factory kill disable
parameter enabled.  There is currently and issue where usb
will disconnect and reconnect causing factory mode to
power off even with a cable.

Change-Id: Ia5fa306201af3b84be8dd54261511ad9889e6ad7
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1886184
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-02-25 18:06:42 -06:00
Ryan Lattrel
f87fda06ad sx933x: handle reinitialize during suspend
If we happen to suspend during the sx933x_reinitialize
function, we may fail to write all i2c commands successfully
and may not fully recover.

Make sure the task has completed before suspend, and
restart it on resume.

Change-Id: I196d2f2de6fe905de86f82bc17da1d142b57de1a
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1884313
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2021-02-24 16:04:00 -06:00
dengwei1
6237912989 pstar: input touch st bring up
input touch st
bring up

Change-Id: I3bac2cc8dd9f64e236971c1b1916811b6f2ddc19
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1880889
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-02-24 02:37:26 -06:00
xuwei9
722606ef28 charger:revert parallel charger driver
Revert parallel charger driver
and cherry-pick by scm for git history

Change-Id: I2b4d9360daec7bd4130abd9ad47d5adf34251150
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1883352
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-02-21 21:46:23 -06:00
Jefferson Capovilla
aac205b57c Update Trustonic TEE driver module to version 410a-V107
Update the Trustonic TEE driver module with the version available in
kinibi drop 410a-V107. This version contains the official patch to
correctly select the silver CPU cores. A workaround was done in (CR),
entitled "Force Trustonic TEE schedule run in Silver cores" and is being
reverted in this change.

Kinibi version t-base-QC8996-Android-410a-V107-20200907_110712_11106-Oem

Change-Id: I7d974f17e133b04f0f11c5622ef3fc0f6b92e494
Reviewed-on: https://gerrit.mot.com/1878314
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Mark Reed <mreed@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-02-19 12:18:35 -06:00
maheshmk
4ed296f0de synaptics_i2c: Compilation errors
Added grouping for if condition
in switch case to avoid -Wmisleading-indentation warning from
GCC 4.8.3.

warning: misleading indentation; statement
    is not part of the previous 'if' [-Wmisleading-indentation] error,
    forbidden warning: synaptics_dsx_i2c.c:2896

Change-Id: Ib52c5ac2d507165468e826bc57ba0edb8ef0e96c
Signed-off-by: maheshmk <maheshmk@motorola.com>
Reviewed-on: https://gerrit.mot.com/1880925
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Srihari Sathyanarayana <sriharis@motorola.com>
Reviewed-by: Kanagarathina Kalathi <kalathik@motorola.com>
Reviewed-by: Vijayakumar Gn <vijaygn@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-02-18 22:11:52 -06:00
Konstantin Makariev
5c38a48921 Revert "(CR) synaptics_mmi_class: banks cli bringup"
This reverts commit e27b5c3a28177c7b9756b3b62aca8378252557a3.

Mot-CRs-fixed: (CR)

Change-Id: I11010cf049ea29c0967df11a79a7410cd99c81d5
Reviewed-on: https://gerrit.mot.com/1881606
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2021-02-18 13:02:26 -06:00
Konstantin Makariev
c84d151c7a sec_mmi: fix regulator get/put
Driver only has to manipulate with regulator reference counter when
it loads or unloads. Adding a new function that will take care of
this in probe and driver remove function. Leaving power function
operating with regulators' state only.

Change-Id: I3ef8b5a8b31ec336f1d1707069ab6330a5c5bb37
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1870282
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: litong <litong20@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-02-18 10:09:35 -06:00
Konstantin Makariev
29ec956828 synaptics_mmi_class: banks cli bringup
This change combines the following:
1) added MMI status check into probe
2) added module dependencies
3) fixed up panel notifications

Change-Id: I01a541957e3b1bdddd14b6caee4717031ff1a1fa
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1827963
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2021-02-18 10:09:29 -06:00
xuwei9
f938aae3d8 kernel:charger rate duplicate with parallel charger
Only define charger rate without
paralle charger not define

Change-Id: Ib25cf50ccf6f6e3cfa30fa60bad37df7552c6b18
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1881083
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-02-18 02:22:41 -06:00
xuwei9
31ca906b3e kernel:paralle charger driver
Paralle charger driver
for multi charger ic state

Change-Id: I562f6e0fa98c7aae70822e2bd0c31c3ff68d2fa2
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1881082
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-02-18 02:22:30 -06:00
xuwei9
1039f65a91 kernel:bq25980 charger driver
Bq25980 charger driver
bring up

Change-Id: I451b907d39168f83d43ce28af89c269918171586
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1881081
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-02-18 02:22:22 -06:00
Gilberto Gambugge
d68f7d60c1 raydium_mmi: fix build error
Change the return type to integer to avoid the following build error:

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Build error:
sh2018/kernel/msm-4.9/../../motorola/kernel/modules/drivers/input/
touchscreen/raydium_mmi/raydium_i2c_ts.c:3740:43: warning: result of
comparison of constant -1 with expression of type 'unsigned char' is
always false [-Wtautological-constant-out-of-range-compare]
error, forbidden warning: raydium_i2c_ts.c:3740
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++r

NO_PROP_NEEDED

Change-Id: I5ee36f3a873b32422b4bd31c92cec1da72b5ecd7
Signed-off-by: Gilberto Gambugge <gambugge@motorola.com>
Reviewed-on: https://gerrit.mot.com/1879446
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Rafael Ortolan <rafones@motorola.com>
Reviewed-by: Sergio Vilela <sv008@motorola.com>
Submit-Approved: Sergio Vilela <sv008@motorola.com>
Tested-by: Sergio Vilela <sv008@motorola.com>
2021-02-16 17:32:33 -06:00
Ryan Lattrel
5971e3abef uwb: sr100: add gpio-exp dep for banks
Add soft dependency on the pcal gpio expander for banks
so we don't have a race.

Change-Id: Ie65e0ed3b3c2e1be47e0d28b8ee5d3a65902b335
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1877024
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2021-02-11 13:22:41 -06:00
wangzl30
b2434d13cd regulator: Add wl2866d driver.
Add driver for wl2866d   which will be used as camera  external
Device tree please refer to:
https://gerrit.mot.com/#/c/1860524/

Change-Id: Ia2f9573d770d26944790bb7e96a3b74b40988934
Signed-off-by: wangzl30 <wangzl30@motorola.com>
Reviewed-on: https://gerrit.mot.com/1860530
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Darong Huang <huangdra@motorola.com>
Reviewed-by: Zhuoran Xu <xuzr3@motorola.com>
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Jian Zhang <zhangjo@motorola.com>
Reviewed-by: Xu Ji <jixu@motorola.com>
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2021-02-03 19:54:19 -06:00
hujing3
55de6dbf4d ili9882_mmi: CQA test node update for tianma panel
Capri: support multiple panels which need different test ini config
Config different touch node for all tianma panels
NO_PROP_NEEDED

Change-Id: I024f53c3b07691c09e073c22829464897d40b763
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1869629
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-02-03 01:59:23 -06:00
dengwei1
6f3e075f63 nio: input touch add edge suppression
add edge suppression function
for device rotate
NO_PROP_NEEDED

Change-Id: Id1e324765977086b70a6f6abe5bfe996d791bbc1
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1866826
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Submit-Approved: Jira Key
2021-02-02 23:48:52 -06:00
liuwang2
751d2db42f regulator: init all wl2864c register when probe driver
Set all register to initial value when probe driver
to avoid register value was modified.

Change-Id: Ib8037ec0f1a270731a3e418f8d323e7197bc5529
Signed-off-by: liuwang2 <liuwang2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1868314
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Zhilong Wang <wangzl30@motorola.com>
Reviewed-by: Jian Zhang <zhangjo@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2021-02-02 20:33:40 -06:00
chengql2
cb27749763 driver/GoodixFP Add the soft dependency of gpio-pcal6408
motorola/kernel/modules/drivers/input/misc/goodix_fod_mmi/gf_spi.c:
Add the soft dependency of gpio-pcal6408:
MODULE_SOFTDEP("pre: gpio-pcal6408");

Pioneer (alias: banks) wires a GPIO PIN from expander IC TCA6418 for
the reset PIN FP_RST_N of fingerprint sensor GF3626.
So, the fingerprint sensor driver has a dependency on the driver of
GPIO expander.

Change-Id: I3bae36c1b87bc0c3f50fd5a1b57511b90cc5771f
Signed-off-by: chengql2 <chengql2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1855475
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Shanshan Dai <daiss1@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2021-02-01 09:03:10 -06:00
liuwang2
a880ca7a17 Add register dump interface for WL2864C
Add register dump interface to monitor PMIC when camera exception observed.
2 different ways can observe the WL2864C register dump from kernel log:
- Call kernel regulator API: regulator_get_current_limit()
- ADB command:
  adb shell "cat /sys/class/regulator/regulator.90/status"

The regulator name regulator.90 shall be replaced acording to different products.
We may execute:
adb shell "cat /sys/class/regulator/regulator.*/name"
to observe the regulator name and find out the correct number for your debugging regulator.

Change-Id: Ic1e28ecea34a27083d68bb1bf1ce41d18bd9a0e1
Signed-off-by: liuwang2 <liuwang2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1866163
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Reviewed-by: Jian Zhang <zhangjo@motorola.com>
Submit-Approved: Jira Key
2021-01-31 20:19:07 -06:00
Wang Liu
72df8fe905 Revert "(CR): Add register dump interface for WL2864C.."
This reverts commit eeb0e1745c4cd588986ab03fa8058d0227ac5878.
Mot-CRs-Fixed: (CR)

Fixed user build fail.
regulator_get_error_flags not exit in google whitelist abi_gki_aarch64.xml.


Change-Id: I44bfbd401d16bdcfc7d19af0a5b293678db05eba
Reviewed-on: https://gerrit.mot.com/1865547
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-01-29 05:41:20 -06:00
yanyh2
a2fb5605bc Adjust the charger configure data
Update qti_glink charger driver to match the common
charger adjustment for the charger configure data
structure.

Change-Id: Ic0672b8b1f4a0eb8290accd2e5f02cf6078417e6
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1864228
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-01-29 01:59:55 -06:00
yanyh2
c7cd2e2a8a Adjust charger configure data
Split the charger configure data into charging configure and
charger running environment constraint for platform charger
driver for easy understanding.

Change-Id: I73eef124355d7c58e566f7bd88c7981ea888dc99
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1864222
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-01-29 01:59:40 -06:00
chenglong1
8051ddcc92 Add register dump interface for WL2864C..
Add register dump interface to monitor PMIC when camera exception observed.
2 different ways can observe the WL2864C register dump from kernel log:
- Call kernel regulator API: regulator_get_error_flags()
- ADB command:
  adb shell "cat /sys/class/regulator/regulator.90/status"

The regulator name regulator.90 shall be replaced acording to different products.
We may execute:
adb shell "cat /sys/class/regulator/regulator.*/name"
to observe the regulator name and find out the correct number for your debugging regulator.

Change-Id: Idc33fcbab7ae108d579d934d0f4139476da38967
Signed-off-by: chenglong1 <chenglong1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1863819
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Liu <liuwang2@lenovo.com>
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Jian Zhang <zhangjo@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2021-01-29 01:01:29 -06:00
Tiago Ganselli
608dfaeb3f Fix compile errors for ilitek_0flash_mmi module
Compiler complained about two if statements that will
always return false. Comment them out.

Change-Id: I6aafa17252238ac3cf6da48ba45ab428b0b7fe35
Signed-off-by: Tiago Ganselli <ganselli@motorola.com>
Reviewed-on: https://gerrit.mot.com/1859386
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Rafael Ortolan <rafones@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2021-01-25 08:40:05 -06:00
Tiago Ganselli
94ce512857 Fix deprecated function call on ilitek_0flash_mmi
Qcom ported a patch to kernel 4.19 which removes the unused
function wakeup_source_init.
Fix ilitek_0flash_mmi module to use wakeup source macros instead.

Change-Id: I737205699d192e357f96ff5a95f8fb06401547fd
Signed-off-by: Tiago Ganselli <ganselli@motorola.com>
Reviewed-on: https://gerrit.mot.com/1859417
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Rafael Ortolan <rafones@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2021-01-25 08:39:35 -06:00
liuwang2
28fb1cfc62 regulator: modify wl2864c iovdd current limit
wl2864c default iovdd current limit is 220mA.
OV02b iovdd current can reach to 235mA.
This may cause cci issue as all camera shared iovdd, include cci pullup voltage.

Change-Id: If7828cd0b294cf2d362ec9001d39fceaceb9b734
Signed-off-by: liuwang2 <liuwang2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1859122
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Zhuoran Xu <xuzr3@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2021-01-24 19:13:50 -06:00
wuwl10
315d853e13 fpc1020: fix null pointer panic issue
For multi fps sensor, if there was some unexprect
INT signal comming during sensor being remove,
IRQ handle will panic becase the sysfs kobj had
ben free. Disable the irq to avoid this.

Change-Id: I2144c6f803547c281830058b29438b9d71cd5933
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1853153
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2021-01-20 00:16:03 -06:00
a17671
c62f7d037b exfat:Fix panic of handlings of unhashed alias
Unhashed alias is allowed to exist
In the latest upstream kernel exfat driver
It does not have to generate panic in this case
Porting this handling to exfat-nofuse driver from url
https://git.kernel.org/pub/scm/linux/kernel/git/
stable/linux.git/tree/fs/exfat/namei.c?h=v5.10.8#n724

Panic stack trace:
kernel BUG at ../../motorola/kernel/modules/fs/exfat/exfat_super.c:874!
[  759.284483] pc : exfat_lookup+0x1dc/0x1e0 [exfat]
[  759.284496] lr : exfat_lookup+0x144/0x1e0 [exfat]
[  759.284502] sp : ffffff800ea2b9d0
[  759.284507] x29: ffffff800ea2ba20 x28: fffffff6f3cf8000
[  759.284515] x27: 0000000000000000 x26: 0000000000000000
[  759.284523] x25: 0000000056000000 x24: fffffff7b8742d88
[  759.284530] x23: 0000000000004000 x22: fffffff883b08390
[  759.284538] x21: fffffff7b874b228 x20: fffffff86d375000
[  759.284546] x19: fffffff883b08980 x18: 0000000007270df4
[  759.284553] x17: 0000000000000000 x16: ffffff9bebd5c9b8
[  759.284561] x15: fffffff6f976ba00 x14: 0000000000000041
[  759.284569] x13: ffffff9bede96590 x12: fffffff6f89f7b00
[  759.284576] x11: 2cf70e9f45774b00 x10: 0000000000000000
[  759.284584] x9 : 0000000000000000 x8 : 0000000000000000
[  759.284591] x7 : ffffff9bec02e394 x6 : 0000000000000000
[  759.284599] x5 : 0000000000000000 x4 : 0000000000000001
[  759.284606] x3 : 0000000000000000 x2 : ffffff9bebd5ca84
[  759.284614] x1 : 0000000000000001 x0 : fffffff883b08390
[  759.284622] Call trace:
[  759.284636]  exfat_lookup+0x1dc/0x1e0 [exfat]
[  759.284650]  __lookup_slow+0x9c/0x188
[  759.284658]  walk_component+0x1d0/0x868
[  759.284665]  path_lookupat+0xb8/0x210
[  759.284672]  filename_lookup+0x98/0x1c8
[  759.284679]  user_path_at_empty+0x54/0x68
[  759.284688]  vfs_statx+0x90/0x130
[  759.284695]  __arm64_sys_newfstatat+0x40/0x80
[  759.284704]  el0_svc_common+0xa0/0x170
[  759.284711]  el0_svc_handler+0x6c/0x88
[  759.284719]  el0_svc+0x8/0xc
[  759.284728] Code: 17ffffa7 92800176 17ffffec 940018f2 (d4210000)

Change-Id: I5fb26e2416f70733fe2010484740513dc9a8c5d0
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/1853335
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-01-19 19:32:36 -06:00
hujing3
b74140e7fc ili9882_mmi: support ili7806s IC
Capri need support multiple ilitek ICs: ili9882 & ili7806s
Add ili7806s touch driver support
NO_PROP_NEEDED

Change-Id: Ia7db199294de6869dea94d899a24d8e515355b16
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1854131
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2021-01-19 00:48:33 -06:00