When updating register value by mask, avoid write transfer when old
and ne values are identical.
Change-Id: Ie9a1a51684b106ee05b893805d2a3a468aa1b812
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1701667
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
External function insertion can be delayed due to ongoing firmware
update. However, detection work will still run remove handler if
function needs to be re-inserted. Check handle for NULL in remove
handler to avoid kernel panic.
Change-Id: I87282155d375548b140b8086cee59dde9a552884
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1714293
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
Because the proc entry tree of utags cannnot be removed when
the module is unloaded, and there is no whitelist ABI to unload
all utags tree, so make this module unloadable when probe success.
Change-Id: I4c49c733419521aa7f871a971701c06e7c5c048e
Reviewed-on: https://gerrit.mot.com/1708415
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
This reverts commit 8ccd0ad9716abe8c567fd05700e3936ab1f8f5fc.
Revert Type : Compile
Reverted by : ECSCM (a16821)
Root Cause : To resolve compilation issue by this fix.
Change-Id: Ia7c30d3e164735744d8e8e834db919ecf4936c29
Reviewed-on: https://gerrit.mot.com/1711831
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Raja Phani K <a16821@motorola.com>
Submit-Approved: Raja Phani K <a16821@motorola.com>
Tested-by: Raja Phani K <a16821@motorola.com>
dm_ver = 4 profiles with changed properties:
- Dsg Current Threshold 40mA -> 80mA
- Chg Current Threshold 60mA -> 125mA
- Quit Current 25mA -> 50mA
- Taper Rate 25mA -> 100mA
Add chemid 2766 and 2767 into each profile and committed the raw chemid
files for archival
Add cc_gain to the Golden Profiles and removed the temporary function
Add external thermistor as temperature source to Golden Profile
NO_PROP_NEEDED specific to smith fuel gauges
Change-Id: I4b4a8f1b0ef1b25ea6662caf2fe1c654955a5cbf
Signed-off-by: Drew Abbott <drewa@motorola.com>
Reviewed-on: https://gerrit.mot.com/1710233
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Charger is over current at start of charge and between Temp and State
changes. Detect early overcurrent and scale down target threshold to
maintain currents within battery spec limits.
NO_PROP_NEEDED: Applies to smith and Olson dual battery archs.
Change-Id: Id2071f4a9f55066a0e6bdb42f51a051023731540
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/1711305
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
In order to keep compatability with current Moto products, GKI products
should use qcom dlkm files for GKI compile.
Including original qcom dlkm file will also easily sync with Qcom's changes.
Change-Id: I2373003e8149a2cfb9a2fbb4bf4784297d30d7e1
Reviewed-on: https://gerrit.mot.com/1709604
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
Mechanicals shortcomings require touch events from the bottom of the
screen to be suppressed to avoid unwanted side effects. Adding clip
area option controlled via device tree to support this.
Change-Id: I744197e8db6f595ea77e482f53f29e48e0497e2d
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1707675
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
This reverts commit f7086a2737502e42fa690fb7bf6b1685816cdeb7.
The previous commit will cause doha, rav, buron-r jenkins job failure, because
some drivers have many warning as error. so revert the new patch
Change-Id: Iec55a038cdf8a844f023128fc84294d05e64e861
Reviewed-on: https://gerrit.mot.com/1709428
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Raja Phani K <a16821@motorola.com>
Submit-Approved: Raja Phani K <a16821@motorola.com>
fix the compile error during GKI kernel 5.4:
FAILED: ninja: 'out/target/product/jordan/dlkm/lib/modules/gki/utags.ko', needed by 'out/target/product/jordan/vendor/lib/modules/5.4-gki/utags.ko', missing and no known rule to make it
When build user variant, Qcom will build all kernel and modules with both
GKI and QGKI kernel configs, so Moto kernel modules should use the qcom's
latest dlkm's AndroidKernelModule.mk
Change-Id: Id7ca3976e1084474c801822cac07057c4466ba9c
Reviewed-on: https://gerrit.mot.com/1706097
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
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
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
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
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
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
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
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>
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>
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>
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>
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
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
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
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
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>
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
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
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