Use common mmi_wake_lock macros instead directly using kernel API,
which is version specific. kmalloc parameter missed.
Change-Id: Ieb49c659e8612cd81ca1333e6a6a8c57bf7b7476
Signed-off-by: Kanagarathina Kalathi <kalath(CR)@motorola.com>
Reviewed-on: https://gerrit.mot.com/1729315
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Vijayakumar Gn <vijaygn@motorola.com>
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: I02c75ae9d3290460a5ca8b1bb8165e67c14d2240
Signed-off-by: Kanagarathina Kalathi <kalath(CR)@motorola.com>
Reviewed-on: https://gerrit.mot.com/1727617
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.
Change-Id: Ifcb053e4b28060c15ae24bff4474e9a05a273464
Signed-off-by: Kanagarathina Kalathi <kalath(CR)@motorola.com>
Reviewed-on: https://gerrit.mot.com/1727658
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
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.
Change-Id: Ic38a36a012c586873d53d8c491cdfd3df1cc85bd
Signed-off-by: Kanagarathina Kalathi <kalath(CR)@motorola.com>
Reviewed-on: https://gerrit.mot.com/1727643
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.
Change-Id: I1c69ec3f55a824b3d9b00ef2e37bf0d303facfe0
Signed-off-by: Kanagarathina Kalathi <kalath(CR)@motorola.com>
Reviewed-on: https://gerrit.mot.com/1727448
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.
Change-Id: I9242d38e97e4eec5b8ac66a18b42c8fbf9d80e62
Signed-off-by: Kanagarathina Kalathi <kalath(CR)@motorola.com>
Reviewed-on: https://gerrit.mot.com/1727525
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Vijayakumar Gn <vijaygn@motorola.com>
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.
Change-Id: Ie2876d102f7f9dd333e226b5319d66e7af998f51
Signed-off-by: Kanagarathina Kalathi <kalath(CR)@motorola.com>
Reviewed-on: https://gerrit.mot.com/1727444
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Vijayakumar Gn <vijaygn@motorola.com>
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.
Change-Id: I0f8263d8a4b9bd7e32b6821550ec6a7731fec7ac
Signed-off-by: Kanagarathina Kalathi <kalath(CR)@motorola.com>
Reviewed-on: https://gerrit.mot.com/1727578
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Vijayakumar Gn <vijaygn@motorola.com>
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.
Change-Id: Ib6c8d7bbe4ac9cf264dd0eb16da9a25471772308
Signed-off-by: Kanagarathina Kalathi <kalath(CR)@motorola.com>
Reviewed-on: https://gerrit.mot.com/1727568
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Vijayakumar Gn <vijaygn@motorola.com>
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.
Change-Id: I7d5d13f150e8f1474fab980109ee9baaa8baa647
Signed-off-by: Kanagarathina Kalathi <kalath(CR)@motorola.com>
Reviewed-on: https://gerrit.mot.com/1727590
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Vijayakumar Gn <vijaygn@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
On latest kernel wakeup_source_init API remove,
Need to use wakeup_source_register for the same.
This fix replaces wakeup_source_init to wakeup_source_register
wakeup_source_trash to wakeup_source_unregister
Change-Id: I6a5e1aa0bd567709d24efc2c08ef3956ac3f18b4
Signed-off-by: Kanagarathina Kalathi <kalath(CR)@motorola.com>
Reviewed-on: https://gerrit.mot.com/1721469
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Its required to choose the wakeup source API depends
on Linux kernel version.
Added new mmi_wake_lock.h file to select the API, depends
on kernel version.
Change-Id: I066e679e2f923f47b51b288ca0196e2c8dbd86d2
Signed-off-by: Kanagarathina Kalathi <kalath(CR)@motorola.com>
Reviewed-on: https://gerrit.mot.com/1727382
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Specify the dependency of sec_mmi.ko on touchscreen_class.ko to ensure
the order of compilation.
Change-Id: I2e2024b5fbedd641192126796e25813c624a9cd1
Reviewed-on: https://gerrit.mot.com/1728238
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
CONFIG_DRM_PANEL -> CONFIG_DRM_PANEL_NOTIFICATIONS
Because CONFIG_PANEL_NOTIFICATIONS is already defined in other project,,
the <drm/drm_panel.h> file is not included, but because DRM_PANEL is
defined by default, the code compilation fails. so Modify the
configuration CONFIG_DRM_PANEL to CONFIG_DRM_PANEL_NOTIFICATIONS.
Change-Id: I2c341a0db33501158d602888c86bdb60127d62d9
Reviewed-on: https://gerrit.mot.com/1728347
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
Declare zf_info_arr as a pointer and allocate it.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Build error:
motorola/kernel/modules/drivers/input/touchscreen/himax_v2_mmi/himax_ic_incell_core.c:2910:6: warning: comparison of array 'zf_info_arr' equal to a null pointer is always false [-Wtautological-pointer-compare]
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
NO_PROP_NEEDED: <only applies to bo>
Change-Id: Ibd68878ebab7652f96366e71a0077203ec840e1d
Reviewed-on: https://gerrit.mot.com/1722677
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Tested-by: Jira Key
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Submit-Approved: Jira Key
TP:
do_gettimeofday function is not in google whitelist. And all interfaces
returning a 'struct timeval' or 'struct timespec' have been replaced
because the tv_sec member overflows in year 2038 on 32-bit architectures.
Change-Id: I9659d84485f29b47d722bca8c0b3a2fe8d4974d2
Reviewed-on: https://gerrit.mot.com/1718149
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Because the input_get_new_minor and input_free_minor function are not in
google white list, so we can't use these functions in ower driver code.
We have submitted an application to google to add these two functions,
so add the temporary modification just for bring-up.
Change-Id: Id9a83206d775d8d45c5542b61696879de912dc1e
Reviewed-on: https://gerrit.mot.com/1724565
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
In order to reduce the dependence on other modules, mmi_bl_bootmode is
added for touchscreen.
Change-Id: Ic77772fd155baf3b0af234141257e3062597b02e
Reviewed-on: https://gerrit.mot.com/1725851
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
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 .h file cannot
be found.
2. touchscreen_class depended on sensors_class module symbol, so it must
define the dependency in makefile.
Change-Id: Ibdc7a761b1cdce2678375719f0fe34748639f8fc
Reviewed-on: https://gerrit.mot.com/1718150
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
Add init and deinit functions to prepare power and IO pins
for module init and exit.
Change-Id: Iaf8d26409f71998bb52b63873237198adef7a0cb
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1708657
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Submit-Approved: Jira Key
The API inet_ioctl() is not allowed to be used
in Android R for GKI compliance.
There should use sock_create_kern() instead
of dummy socket.
Change-Id: I37515cf8eece5be12a8cc2b91081f53bef5cd3ae
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1715791
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
-revert https://gerrit.mot.com/#/c/1718145/
-the power supply of Sar sensor need to be always on
Change-Id: I3106922212b0286146b7119f23b4b4c95b7ec62a
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1720921
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guoyue Liu <liugy11@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
Coparing with the last generation product, It add I2S interface
to support realtime stream vibration. It includes a sound component
driver for audio system.
Change-Id: I567dafd1ceedeecacd5e23a935c18a9bcf01920e
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1719560
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
There are some changes in linux kernel 5.4:
- struct regulator_config lack of ena_gpio member, now should use ena_gpiod.
- struct regulator_dev's member mutex, its type changed from struct mutex to
struct ww_mutex, so should use regulator_lock() rather than mutex_lock().
- rdev_get_id does not allow to use, remove it.
Change-Id: I10fdf7de2e5e9fe4d64177b120bea4be0bd109de
Signed-off-by: liuwang2 <liuwang2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1679026
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
It's used to save power.
It's only used on Borneo NA
Change-Id: I2aa60149f0a362dc29fc0eded5c509a9fd4ddc7c
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1718145
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jiacheng Ou <oujc1@motorola.com>
Reviewed-by: Guoyue Liu <liugy11@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
Vibration request (RTP excluded) comes in forms of duration or waveform
ID. Adding code to invalidate duration after playing haptic to
distinguish the case when duration has not been explicitly set. This
allows to play preset wave form (e.g. weark short haptic) in case when
vibration request is missing waveform ID or duration info.
Change-Id: I5bc548ff5a50c81ab3302976a9eb1f11028fa41b
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1707674
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
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