When there is not panel connect to board , the active_panel is NULL
we need to protect it to avoid KE.
Change-Id: Idbb91740f5c5c043d80cf527113abf1e6f0337e3
Signed-off-by: wuwl10 <wuwl10@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2926504
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
reboot process will write 1 to /sys/block/zram0/reset to close backing
device fd
Change-Id: Id11caf26c3edff89a0bf64fc706799c1d54901ee
Reviewed-on: https://gerrit.mot.com/2816017
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
1. to resolve long time no up event,
if timeout 100ms, make an up event.
Change-Id: Ie41a07d0281d8a6ce1824a068efdec218403fdf8
Signed-off-by: zhangshaohu <ontim52@motorola.com>
Reviewed-on: https://gerrit.mot.com/2788111
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Sometimes thermal limit FCC small than qg iterm when soc >90%.
Qcom gauge will track to 100% but now battery is not full.
So qg iterm should setted small than FCC and large than chg_iterm.
Change-Id: I0dbeee2bfe79d0ddeaf5681ce7b77f0bb7eb7424
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2784309
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
the app_score in default oemdata(hybridswap) is initialized as 300
however, the userspace only configures 100, 200, 400, 600 groups,
there is no room fit for initial value, while go through all the
memcgroups, it is not possible to find a slot to fit in the default
value, the outbond index causes the panic
Change-Id: I45e59a2629c17ae9eaa326c749d6ed4b51e3b2e7
Signed-off-by: wangwang <wangwang@motorola.com>
Reviewed-on: https://gerrit.mot.com/2782610
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
Provides a kernel module to support the initialization of motorola's
hypervisor level protections for kernel code and read-only data.
- This protection requires exceptions for jump_label patch addresses,
which are stored in a bitwise trie. Tests for this data structure are
included under tests/jump_table_lookup.h
- Handles proper translation of virtual into physical address
translation for enforcing kernel protections in the hypervisor
- Handles the splitting of hugepages and interprocessor synchronization
for fine-grained memory region protections
Change-Id: I2e994d3b4eb55a3d7c4d4acaf4b23232679276f6
Reviewed-on: https://gerrit.mot.com/2755343
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Qing Chang <qing@motorola.com>
Reviewed-by: Binsheng Que <quebs2@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
Add macro to close debug function in user build
And fix GKI build issue in user build
Change-Id: I741cabc03e50d454f005025fd14e08764cdc5949
Signed-off-by: zhuangnk1 <zhuangnk1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2782369
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
Update UWB driver to version 7.4 to support 1.2v
platform
Change-Id: Iace483f72aeba6deaacd9cd91cb844aabbaa279f
Signed-off-by: zhuangnk1 <zhuangnk1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2778728
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
Some pump ic's register do not reset to defaul value after shutdown
for example cps2023, if acdrv mos set to manual mode and
Usb mos at off status. phone can not boot up by cable.
Reset register after power down for this case.
Change-Id: I2749c185f6504ccf7352238d686d7b77688b725c
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2779131
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
Fix compile issue on Kernel version 6.1.25 to use new remove
function protype of i2c device driver.
Change-Id: I9ba5254fd65da48be78a0bbd7362fcf2c92f2250
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2777335
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
Fix compile issue on Kernel version 6.1.25 to use new remove
function protype of i2c device driver.
Change-Id: I629bccb4b9c3fb0c11e972cbe823987e9ab8cac5
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2777334
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
The second supply cc is not compatible with the dual pull-up Huawei
line,resulting in rd_PD_Manager is unable to obatin the correct RP level
Change-Id: I939020e45f1ef5160646bfec2d3bb3b4d49ac019
Reviewed-on: https://gerrit.mot.com/2775856
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zonghua Liu <a17671@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Lei Chen <chenl18@motorola.com>
Submit-Approved: Jira Key
goodix_berlin:
If we use passive stylus, we need to report pressure.
For goodix, the value of pressure is the same as major.
Change-Id: I3e21075a7faf83beb4d519982377d080824ae002
Reviewed-on: https://gerrit.mot.com/2775276
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: <zhuwg1@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
On some lower version GCC compiler,fallthrough does not define and will
cause compile error:
error: use of undeclared identifier 'fallthrough'
Change-Id: Ie86ca8703d84a6d06faddc159380a7f4ed40a6a7
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2775802
Reviewed-by: Wei Deng <dengwei1@motorola.com>
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
After Linux kernel version 6.1.0, i2c_driver remove function has no return
instead of int. So change it for compatible
Change-Id: Ic175cd2201d11c68d681add621886a168ec54a90
Signed-off-by: zhuangnk1 <zhuangnk1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2775981
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Tao Sun <suntao2@motorola.com>
Reviewed-by: Jun Zhang <zhangj10@motorola.com>
Submit-Approved: Jira Key
loop each memory cgroup to set the oemdata configurations, however,
not every memory cgroup has been configured with app grade, the oemdata
may point to a null area.
Change-Id: I1fc9b96100de3b86140f311c5989a3b0aa740eb1
Signed-off-by: wangwang <wangwang@motorola.com>
Reviewed-on: https://gerrit.mot.com/2775892
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
The second supply cc is not compatible with the dual pull-up Huawei line,resulting in rd_PD_Manager is unable to obatin the correct RP level
Change-Id: Ib0c0ebc7ccc89b620d97d41087ec66454adf6a7c
Reviewed-on: https://gerrit.mot.com/2769875
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zonghua Liu <a17671@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
After qcom rebase qc/Divar.LA.2.1.1-00014-STD.PROD-1,
sgm4154x was always found even if there is no sgm4154x
hardware IC. Need return if read sgm4154x ID failed.
Change-Id: I08c39cb60de00addc32faee1ae945adb0cfc7053
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2768596
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
work with kernel 5.15 version
Change-Id: Iebe3ae748388b645e96923a9fce50b9821a9dc4f
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/2766500
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
Due to GKI upgrade, commit "qc/Divar.LA.2.1.1-00014-STD.PROD-1,
power: supply: remove faulty cooling logic,kemnade.info", it remove
the cooling device register function.
We should register the battery cooling device in the discrete driver.
This will ensure the thermal-engine can get the battery cooling device
id successfully.
Change-Id: I9f47afc6c1f49733d3066c4b5c0cbd85a2b810bc
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2766397
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
Confirmed with vendor, these codes could be published under the terms
of the GNU General Public License,so remove vendor's private and
confidential declarations.
Change-Id: I49f6ba6ffc7fdde3914f3b4d277a0879354cb654
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2762975
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yuting Chen <chenyt17@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
add new input handle &handler to support
Passive pen
modify input report function to support
Passive pen
add passive pen process
Change-Id: I18e489ab90a977492cd4936442b128ef1271d2a0
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2763070
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
CQA app tests vibration with short duration
Change to long duration
Change-Id: I893867bb315ba1157291c298de027acdc903593f
Signed-off-by: William Liu <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/2762451
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key