Add a flush function that returns success. This is
needed to pass VTS testing.
Change-Id: I0550eb39694b4bf33ed7ba872107a135edf27a71
Reviewed-on: https://gerrit.mot.com/1759290
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
WHY: Chipone fps driver should be working on different Android version
WHAT:Add compability support in chipone driver
Change-Id: Ic3d3cf0fafd11b5dbd600170ca0044bc4c70b3a9
Reviewed-on: https://gerrit.mot.com/1758615
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: liujian <liujian24@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
WHY: Need support chipone fps on capri/caprip
WHAT:Add necessary for driver based on Android R
Change-Id: Ib826c6bfd1d3a328b6d56a175e46e18a98076d6e
Reviewed-on: https://gerrit.mot.com/1757677
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
orderly_poweroff is a function from kernel/reboot.c that does not work since
poweroff binary was removed from /sbin/.
Factory Kill still worked because qcom smb5 power supply driver disables
motorola factory kill and implements its own (with kernel_power_off). Since
they removed their own implementation it falls back to the broken one.
This commit replace orderly_poweroff by kernel_power_off the same way qcom
used to do.
Change-Id: Iee78e729add3e31b29c192adc7bcfbab46b1462e
Reviewed-on: https://gerrit.mot.com/1753065
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
On Smith, charging current is positive and discharging current is
negative. The flipped sign would always report discharging, so the
current would always report as tapered.
Change-Id: Ia2b93a1e943d20a52956e6068acae879d1934a8d
Reviewed-on: https://gerrit.mot.com/1731691
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Bernie Moreno <berniem@motorola.com>
v5 increases the taper rate of flip battery to 140mA and decreases that
of the main battery to 80mA. This will allow for reaching 100% around 20
minutes earlier than the charger stops.
Change-Id: Ia2f6a9997c41e1a1dca1c755982125b3635c4096
Reviewed-on: https://gerrit.mot.com/1731692
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Bernie Moreno <berniem@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
The driver currently only prints the first 8 Ra tables, this will allow
for printing all 15.
Change-Id: I3524dd73789d8fba274e6e96f1254bf400189335
Reviewed-on: https://gerrit.mot.com/1750383
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Bernie Moreno <berniem@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
kallsyms_lookup_name is not exported in kernel 5.4 and the driver should
work for qcom , samsung and MTK, so use a specially way to distinguish it.
Change-Id: Ic9d89a1af48b4e03481f2aaf38f3bf5dbdafc2cd
Reviewed-on: https://gerrit.mot.com/1689258
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
When importing the Modules.symvers in fix path, the GKI module will import an
incorrect one and cause module load fail in boot-gki kernel mode.
Change-Id: Ie17e494821dafcc1fad147202dae445b9250875b
Reviewed-on: https://gerrit.mot.com/1743517
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
Adding the battery number in log messages allows for determining which
charger produced the log output.
Change-Id: Ie3394185626fdc2181e2c2e3d734fd6c1725ce30
Reviewed-on: https://gerrit.mot.com/1731690
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Values were not being set properly after initializatoin, this change
will update them for proper logging
Change-Id: I09675258e2c7acf6d5724a5211dc0d593d27ef53
Reviewed-on: https://gerrit.mot.com/1731689
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
kernel_read and kernel_write are exported with specific ANDROID_GKI_VFS_EXPORT_ONLY
namespace, so the DLKM should import the namespace.
error log:
[ 35.634756] sec_mmi: module uses symbol (kernel_read) from namespace VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver, but does not import it.
[ 35.648698] sec_mmi: Unknown symbol kernel_read (err -22)
Change-Id: Ic333a4c66115c15aa0994c1d2210eea62db88d32
Reviewed-on: https://gerrit.mot.com/1749485
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
kernel_read and kernel_write are exported with specific ANDROID_GKI_VFS_EXPORT_ONLY
namespace, so the DLKM should import the namespace.
error log:
[ 12.547678] utags: module uses symbol (kernel_read) from namespace VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver, but does not import it.
[ 12.561432] utags: Unknown symbol kernel_read (err -22)
Change-Id: I14607da4198c41ddb989d63cc02e560ffc50be11
Reviewed-on: https://gerrit.mot.com/1749451
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
There was a build error due to wake API changes, so we took the
oportunity to refactor it to use the new API from linux/mmi_wake_lock.h
Change-Id: I19854604e339d1e986f434be4afd78fac584adda
Signed-off-by: Eduardo Ferreira <edufb@motorola.com>
Reviewed-on: https://gerrit.mot.com/1737197
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Driver was not resuming from suspend as it was using a panel event
that is not reliable. Use PANEL_EVENT_DISPLAY_ON instead.
NO_PROP_NEEDED: <only applies to bo>
Change-Id: I435686b53453e18fbcfd864ab355c8817779f27a
Reviewed-on: https://gerrit.mot.com/1737310
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Eduardo Ferreira Barbosa <edufb@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Cherry-picked from: (CR)
Updated mcp.c, mcp.h and platform.h to make driver
compatible to kernel 4.19.
Add the Trustonic TEE driver module to the kernel. This is needed
to run trusted applications in the Trustonic TEE.
Updated Kbuild with current files.
Kinibi version t-base-QC8996-Android-410a-V106.
Change-Id: Id237e0acb2b0e6fe37045796106e3d1e5cb4b1b0
Reviewed-on: https://gerrit.mot.com/1685214
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Joel Voss <jvoss@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
When importing the Modules.symvers in fix path, the GKI module will import an
incorrect one and cause module load fail in boot-gki kernel mode.
Change-Id: I758afd9f427d0fee6201f23903465f21120ff1b2
Reviewed-on: https://gerrit.mot.com/1743520
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Fix below forbidden warnings:
motorola/kernel/modules/drivers/input/touchscreen/ili9882_mmi/ili9882_qcom.c:443:4: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]
motorola/kernel/modules/drivers/input/touchscreen/ili9882_mmi/ili9882.c:569:6: warning: comparison of array 'cmd' equal to a null pointer is always false [-Wtautological-pointer-compare]
motorola/kernel/modules/drivers/input/touchscreen/ili9882_mmi/ili9882_node.c:201:12: warning: comparison of array 'file->fname' equal to a null pointer is always false [-Wtautological-pointer-compare]
motorola/kernel/modules/drivers/input/touchscreen/chipone_tddi_mmi/cts_sysfs.c:2056:15: warning: overlapping comparisons always evaluate to true [-Wtautological-overlap-compare]
Change-Id: I46b24a8078b9e7e28c5fbfa6a7d32731368c96a1
Reviewed-on: https://gerrit.mot.com/1740710
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
Some of the user's sliding may be mistaken for double-clicking event.
filtering out the min double-click interval tim to reducing the
probability of unexpected double-click.
Change-Id: I0b1a43d3ed7aac601865127076f5b2c51f6eb3d4
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1735804
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
(cherry picked from commit 60cdf2a116c3e7cc321eab8038065efc98e3a3fc)
Reviewed-on: https://gerrit.mot.com/1737936
mmi_info will depended on mmi_annotate module symbol,so it must
define the dependeny in makefile.
Here is the build error:
ERROR: "mmi_annotate" [../../motorola/kernel/modules/drivers/mmi_info/mmi_info.ko] undefined!
ERROR: "mmi_annotate_persist" [../../motorola/kernel/modules/drivers/mmi_info/mmi_info.ko] undefined!
Change-Id: Ie3e929a1cffa543876c7a34447f8d659ecea0d9f
Reviewed-on: https://gerrit.mot.com/1723102
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Add fast heartbeat adj to state changes in addition to initial
charge det. This will prevent prolonged over current when temp
zones change.
NO_PROP_NEEDED: Applies to Smith and Olson dual batt only.
Change-Id: Icb94a3da1ac4f70abf1f06d6d90ede7eea36da85
Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com>
Reviewed-on: https://gerrit.mot.com/1725464
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
When fail to open utag, the alloc buffer will not be free to cause
memory leak
Change-Id: I9f77a4528513ddfb512f3183f067988ffa9870a9
Reviewed-on: https://gerrit.mot.com/1733773
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
If store worker failed to store utag, report the failure to userspace so
that userspace can deal with it accordingly
Change-Id: I1ba9635b776fca1b27ab672a06df4a823e926684
Reviewed-on: https://gerrit.mot.com/1733628
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
TP:
Turn off the output log of the LSI touch FW raw data to prevent
overwriting the boot log.
Change-Id: Ia1e1ae06b51c9bf1f54855632658b3af04f77248
Reviewed-on: https://gerrit.mot.com/1734547
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
(1) TOP -> ANDROID_BUILD_TOP to solve the error that the header file
cannot be found.
(2) Put the dependent modules into separate files and specify the
dependencies.
Change-Id: Ifb02dde4782ffad1e65d8ee8220fb39f1f203392
Reviewed-on: https://gerrit.mot.com/1713698
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
Disabling stubs to get touchscreen_class pointers from synaptics_mmi
on olson
NO_PROP_NEEDED: This is the common branch
Change-Id: If1f68d851036bbe8e804404f0dcb6e6bbbce8154
Signed-off-by: Ashwin Pathmudi <jfxr63@motorola.com>
Reviewed-on: https://gerrit.mot.com/1720047
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Moon Do Seo <moon@motorola.com>
Reviewed-by: Mahesh Med(CR) <maheshmk@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Restrict compilation of snd_soc_tfa9874 only for products
that uses this driver: surf and Ocean
Change-Id: Ia742617777ef1478627b5c4441199e043455974e
Reviewed-on: https://gerrit.mot.com/1731673
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Nelson Guedes Paulo Junior <npaulo@motorola.com>
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Jira Key
TP:
Determine whether to probe the synaptics driver according to
the "mmi,panel_name".
Change-Id: Ia2552339b5351774107c59befe01505f57b9b5a9
Reviewed-on: https://gerrit.mot.com/1730440
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
(1) When all the modules are in a Kbuild file, there will be some errors
that the exported symbols are undefined. Therefore the files with
dependencies are split into independent Kbuilds, and the dependencies
between the modules and the location of Module.symvers are clearly
specified.
(2) The synaptics_i2c and syanptics_spi modules have the same symbol
table, so we should use BOARD_VENDOR_KERNEL_MODULES to determine
which module to compile.
Change-Id: I0e02d23562d0b52a20fdfd53d3db085cfffb811b
Reviewed-on: https://gerrit.mot.com/1718101
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
TP:
1. Modify synaptics compile error on V(CR).
2. get_pid_task is more safer than pid_task, and get_pis_task
in the whitelist of google Andorid 11.
Change-Id: I7e6836db375bb8e80b6753afd400bb7db179cc18
Reviewed-on: https://gerrit.mot.com/1718097
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
TP:
The panel notification is not used on v(CR),
so CONFIG_PANEL_NOTIFICATIONS should not be defined,
add CONFIG_DRM_PANEL_NOTIFICATIONS.
Change-Id: I76c6535480d92b8740e8f60c86f2506fbac9d3c1
Reviewed-on: https://gerrit.mot.com/1729503
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
Because there is no contains function on kernel 5.4, and we have no way
to modify the kernel code. So "mmi,panel_name" is used to determine
whether to probe this driver.
Change-Id: I956b6ce1d463cbe472b80599c954dd06bd633082
Reviewed-on: https://gerrit.mot.com/1728590
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Use common mmi_wake_lock macros instead directly using kernel API,
which is version specific. include the appropriate .h file.
Change-Id: I86f689d5ebc7a7128a3040d610a69caab99aad86
Signed-off-by: Kanagarathina Kalathi <kalath(CR)@motorola.com>
Reviewed-on: https://gerrit.mot.com/1729494
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
Use common mmi_wake_lock macros instead directly using kernel API,
which is version specific.
Change-Id: Ia4030824e83c0c2562150c1306803501fa80e1d9
Signed-off-by: Kanagarathina Kalathi <kalath(CR)@motorola.com>
Reviewed-on: https://gerrit.mot.com/1727596
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Vijayakumar Gn <vijaygn@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key