Commit graph

1,377 commits

Author SHA1 Message Date
litong
984e2d89fa Instead of vfs_read with kernel_read
TP:
Instead of vfs_read with kernel_read
8350 rebase Lahaina.LA.1.0.r1-00375-STD.PROD-1
kernel msm5.14 remove vfs_write EXPORT.

Change-Id: Ia6f45a744373eaf1a6facab0870a082e6d72b617
Reviewed-on: https://gerrit.mot.com/1732831
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2020-08-25 08:21:26 -05:00
litong20
93f8947d68 Revert "(CR): Instead of vfs_read with kernel_read"
This reverts commit e69d3b7ae79a67dc60a317e9d6dc82fab62b9ba2.

Change-Id: Ia52ae8759dd72b628864317e736414b82f40f033
Reviewed-on: https://gerrit.mot.com/1732808
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2020-08-25 08:18:09 -05:00
litong
241924cf77 Instead of vfs_read with kernel_read
TP:
Instead of vfs_read with kernel_read
8350 rebase Lahaina.LA.1.0.r1-00375-STD.PROD-1
kernel msm5.14 remove vfs_write EXPORT.

Change-Id: I93141a140c7c17eb68dc817f2fcf0f34e53fdf7b
Reviewed-on: https://gerrit.mot.com/1732677
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2020-08-25 05:06:56 -05:00
xiaoy3
920a5487a5 Instead of vfs_write with kernel_write
8350 rebase Lahaina.LA.1.0.r1-00375-STD.PROD-1
kernel msm5.14 remove vfs_write EXPORT.

Change-Id: I006fcf995f5340cc051eb571ad21d415b253a31b
Signed-off-by: xiaoy3 <xiaoy3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1728095
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: Qiang Nie <nieqiang@motorola.com>
(cherry picked from commit cd88701c9041cf40767db9f9f9cb72f9f4e710fb)
Reviewed-on: https://gerrit.mot.com/1732539
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Qiang Nie <nieqiang@motorola.com>
2020-08-25 02:34:31 -05:00
litong
3ba65e9bfc synaptics prob if it matches the value of "mmi,panel_name"
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
2020-08-24 04:09:56 -05:00
litong
610b9f510c Specify the dependency of the synaptics touchscreen modules.
(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
2020-08-24 03:34:24 -05:00
litong
1ff9cf183b Modify synaptics compile error on V(CR).
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
2020-08-24 03:34:11 -05:00
litong
3c538d907e Add CONFIG_DRM_PANEL_PANEL_NOTIFICATIONS on V(CR)
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
2020-08-24 03:33:27 -05:00
litong
4b881a0efd Determine whether to load by "mmi,panel_name"
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
2020-08-24 03:33:03 -05:00
kalathik
7e40fbb8e0 touch: nt36xxx: Resolve include build error
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
2020-08-21 04:53:02 -05:00
kalathik
d2caa8bdc6 Awinic: aw8624: Replace wakeup_source API with macro
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
2020-08-21 03:29:45 -05:00
kalathik
afe21a3a69 touch: nt36xxx: Replace wakeup_source API with macro
Use common mmi_wake_lock macros instead directly using kernel API,
which is version specific.

Change-Id: I69d8bcd784e7a55815e2b4857c6826a15b0967fb
Signed-off-by: Kanagarathina Kalathi <kalath(CR)@motorola.com>
Reviewed-on: https://gerrit.mot.com/1727559
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
2020-08-21 03:29:42 -05:00
kalathik
62c1d3a314 pmic: Replace wakeup_source API with macro
Use common mmi_wake_lock macros instead directly using kernel API,
which is version specific.

Change-Id: Icc1c1b25825a4b80c473c0be0f7630aa3e3da895
Signed-off-by: Kanagarathina Kalathi <kalath(CR)@motorola.com>
Reviewed-on: https://gerrit.mot.com/1727668
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
2020-08-21 03:29:39 -05:00
kalathik
0c7b6ca774 mmi_wake_lock: Resolve malloc build error
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
2020-08-21 00:03:54 -05:00
kalathik
e56d9dfe53 Awinic: aw8695: Replace wakeup_source API with macro
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
2020-08-20 22:36:12 -05:00
kalathik
f3db1e404a Awinic: aw8697x: Replace wakeup_source API with macro
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
2020-08-20 22:36:09 -05:00
kalathik
69efe597f5 Awinic: aw8697: Replace wakeup_source API with macro
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
2020-08-20 22:36:06 -05:00
kalathik
cf3151c1c4 touch: synaptics: Replace wakeup_source API with macro
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
2020-08-20 22:36:03 -05:00
kalathik
778d8abfb9 touch: focaltech: Replace wakeup_source API with macro
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
2020-08-20 22:35:34 -05:00
kalathik
00960bf64d touch: sec_ts: Replace wakeup_source API with macro
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
2020-08-20 22:35:17 -05:00
kalathik
e411bffd23 touch: ilitek: Replace wakeup_source API with macro
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
2020-08-20 22:34:10 -05:00
kalathik
428e028101 touch: fts: Replace wakeup_source API with macro
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
2020-08-20 22:33:45 -05:00
kalathik
883a4be12e misc: ets_fps: Replace wakeup_source API with macro
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
2020-08-20 22:33:33 -05:00
kalathik
175215b12c touch: synapticsi_dsx: Fix wakeup_source event API change
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
2020-08-20 22:32:44 -05:00
kalathik
9fb93a4743 wakeup_source: Choose wakeup_source API based on version
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
2020-08-20 22:30:37 -05:00
Gilberto Gambugge
c515a56926 aw8624: Fix build error due to wakeup API changes
On latest 4.14 kernel update, wakeup_source_register API has changed.
Handle kernel versions properly.

NO_PROP_NEEDED: <only applies to bo>

Change-Id: I2a32c95ef6194ccba6704e0f90e0a609610fd445
Reviewed-on: https://gerrit.mot.com/1725210
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-08-20 16:43:18 -05:00
Gilberto Gambugge
bffb70175c nt36xxx: Fix build error due to wakeup API changes
On latest 4.14 kernel update, wakeup_source_register API has changed.
Handle kernel versions properly.

NO_PROP_NEEDED: <only applies to bo>

Change-Id: I57a38470f79e29b406ec578b52f624f1bf39beae
Reviewed-on: https://gerrit.mot.com/1725211
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-08-20 16:43:17 -05:00
litong
ace7a4d3d7 Specify the dependency of sec_mmi on touchscreen_mmi
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
2020-08-20 05:32:21 -05:00
litong
a722fdb3f9 Slove the compile error of of_drm_find_panel function
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
2020-08-20 05:31:20 -05:00
Gilberto Gambugge
7786db3533 himax_v2_mmi: fix build failure
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
2020-08-20 00:16:17 -05:00
litong
5db8ba69b3 Modify samsung compilation errors for v(CR).
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
2020-08-19 21:44:09 -05:00
litong
779f28b622 Temporarily modify the value of device minor
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
2020-08-19 21:43:48 -05:00
litong
eb09216ede Add mmi_bl_bootmode function to get boot mode.
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
2020-08-19 21:41:31 -05:00
litong
681210f2b8 Add DRM PANEL notifications to touchscreen
TP:
Kernel 5.4 support DRM PANEL notification mechanism to report
blank/unblank event. So add DRM_PANEL notifications to touchscreen
MMI class suspend and resume.

Change-Id: I53861dd33a6a9d3d6a7b3112e667b06c102a2328
Reviewed-on: https://gerrit.mot.com/1708453
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: <litong20@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2020-08-19 21:41:16 -05:00
Gilberto Gambugge
f3325baae2 tas2562: fix build failure
Fixing the misleading indentation build failure

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Build error:
motorola/kernel/modules/sound/soc/codecs/tas2562-regmap.c:658:3: error: misleading indentation; statement is not part of the previous 'else' [-Werror,-Wmisleading-indentation]
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

NO_PROP_NEEDED: <only applies to bo>

Change-Id: Ifde783bd51eba163fe96e181b5a9dca62c0d0ff4
Reviewed-on: https://gerrit.mot.com/1722676
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-08-19 13:55:05 -05:00
wangyq13
853418d845 input: ilitek_0flash_mmi: add usb charger detection
ilitek_0flash_mmi:
Add usb charger detection function.
Enabled by kernel dtsi.
NO_PROP_NEEDED: <New IC for NPI>

Change-Id: I2c8349444032e28badee766236adaefb35f04b85
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1720309
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-08-19 04:34:22 -05:00
litong
fbe4fb48e4 Modify touchscreen class compilation errors on V(CR).
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
2020-08-19 02:31:21 -05:00
yanyh2
90049fc45a vl53l5: add stmvl53l5 init and deinit functions
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
2020-08-18 07:30:57 -05:00
yanyh2
7f7b934af4 vl53l5: initial version of vl53l5 sensor driver
Porting vl53l5 tof sensor driver to Moto platforms
from vendor st.

Change-Id: I57da832527369802d8f05d6e695ef31ef4e81ee6
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1694821
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-08-18 07:29:46 -05:00
yanyh2
ec1e89f49d usbnet: fix GKI compliance issue on sock access
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
2020-08-18 04:14:31 -05:00
daiss1
4889cd93b0 dubai: bring up goodix fingerprint for android R
Modify:
bring up goodix fingerprint for android R
mq@@r-shm2018.xml *NOT* needed on the branch(es) above just ignore R2D2.

Change-Id: I4e488dc03830f8dc00eac9b9e9cd745680db28fc
Signed-off-by: daiss1 <daiss1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1724630
Tested-by: Jira Key
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2020-08-17 21:40:12 -05:00
dengwei1
c8d928e984 guam: input add touch ili9882n factory support
input add touch ili9882n
factory support
NO_PROP_NEEDED

Change-Id: Icaa26768e3ca53d726855b97f2a689e8f2f10fde
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1722559
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-08-14 07:43:42 -05:00
dengwei1
6d473cd9b0 guam: input add touch ili9882n support
input touch ili9882n
support
NO_PROP_NEEDED

Change-Id: I121bebedd5ecc10ea517b8ac6b2282214e36a291
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1722171
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-08-14 04:03:23 -05:00
chenlj2
fdf039ac31 DLKM/Sar:remove CONFIG_CAPSENSE_CONTROL_VDD for borneo NA
-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
2020-08-13 00:52:27 -05:00
chenlj2
6cb005d0f4 DLKM:modify capsensor_enable_flag_t enum for abov
abov chip works abmormal in Qsensortest APK
branch:bo

Change-Id: I66a1bdef56162c46e4c5fa094394e15cd4f88d47
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1718306
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2020-08-12 03:06:12 -05:00
huangys
3206acefcc aw869xx: Fix build issue on V(CR)
- mask unused pm_ops to fix warning error
- add function do_gettimeofday which was removed in kernel 5.4

Change-Id: I33aae44467bc306fc2eed827e518d12c6ad0bad9
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1719561
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-08-11 21:35:17 -05:00
huangys
54a7b0f3cf aw869xx: Add awinic 869xx haptic driver
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
2020-08-11 21:34:38 -05:00
liuwang2
052253ef4b regulator: modify slg5bm43670 driver to support kernel 5.4
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
2020-08-11 20:39:36 -05:00
Yan Zhang
94bc6e4086 : fir: update for coefficient read
1. update for coefficient read.
2. add the emissivity calculation equation.
Change-Id: I87ee50484ca72830d150632b605f2c228671ce7c
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/1710799
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-08-11 00:57:18 -05:00
liuwang2
19985adeb3 cci: modify cci_intf driver to support kernel 5.4
[detail]
add kernel 5.4 path in Kbuild.

Change-Id: I16a01fee110770040e442031a0995ccfbae56fe7
Signed-off-by: liuwang2 <liuwang2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1679108
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Shanghui Zhang <zhangsh@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2020-08-10 21:27:40 -05:00