Commit graph

1,492 commits

Author SHA1 Message Date
mahj8
1dcbeeda62 module: add address and data api for tcmd
use normal interface instead of debugfs interface in tcmd
smblib_mmi_address
smblib_mmi_data

Change-Id: I8a6093f419b33000d403066bebbe82c3a194383f
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1813964
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-12-01 05:07:15 -06:00
wengjun1
d3a9845391 Chipone: Compatible with android R with 5.4.0
- Change rt_mutex api.
- Change input_get_new_minor.
 NO_PROP_NEEDED: needn't for shm2018

Change-Id: I07ee65f0d340d475936f6a81a7ced6c72753881f
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1795715
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-30 01:03:12 -06:00
wengjun1
75c2e82f9c dlkm: bo: Improve novatek 0flash driver
- Since now nova_check_dt only possible return 0 or -ENODEV,
so if the driver can't get the active_panel_name properly, that means
no display panels are initialized, so need to return  -ENODEV on probe
in this case, otherwise, it may affect the initialization of other touch ICs.
NO_PROP_NEEDED: needn't for shm2018

Change-Id: I6148ac8b10f552f180696221b1517c5fb60915e0
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1812635
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-29 21:18:41 -06:00
liaoxl
53d87d2508 FM: fix current leak on GPIO47
default state set as high will lead to ELNA module on, which will consume battery power.
turn it off as default settings to fix this issue.

Change-Id: I38421a6b7e8d62e17e851a6cfded48b4a030ab0f
Reviewed-on: https://gerrit.mot.com/1810804
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-25 19:26:06 -06:00
Yan Zhang
06f5b5afc1 add mmi_relay notify interface by conditional
goodix fps driver is used by capacitive fps sensor as well, however 
mmi_relay is required by FOD module only,  so add the mmi_relay module
under conditional.

Change-Id: Ib93a2a7f9f8c8254cd67b7882336e9b7751e9863
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/1808891
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-by: Lijun Chen <chenlj2@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-11-24 00:58:08 -06:00
mahj8
371ccae267 module: removed nonstandard props
removed nonstandard props for GKI and there props
don't use in sm4350

Change-Id: I3582efcbb8d3ec2a27a0a3862b47ccaf1dfb862a
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1809696
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-24 00:03:41 -06:00
jixj
669ca8d8d6 qpnp-power-on-mmi: fix build error on user build
"kernel_halt" is not in Google's GKI whitelist, add modules.symvers of
QGKI to fix build error on GKI build.
This module is no must in GKI, it doesn't matter that fails to load

Change-Id: I77c89c1236bcd2352b85b69e180687744e1f59b4
Reviewed-on: https://gerrit.mot.com/1807425
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-20 04:09:37 -06:00
mahj8
023c9a3b89 mmi: fix power supply change frequently
fix typing error
vbus voltage can't be increased and load
power supply change frequently

Change-Id: Ie70f7b2b85f2b969ad95e1f02ffa3a6eb764318f
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1806593
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-19 04:29:03 -06:00
weiweij
f20500f540 dlkm/qpnp-power-on-mmi: change vfs_write to kernel_write
For linux 5.4, vfs_write will not be used, and it is changed to kernel_write,
so, we add the version judgment for this.

Change-Id: Iec34f046e608ec42436a741784aeeb9a1f46f479
Signed-off-by: weiweij <weiweij@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1806106
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-19 03:49:23 -06:00
hujing3
52adf4eb13 ili9882_mmi: support panel gesture config
Capri ilitek touch:
some panel need enable partial gesture mode for ESD case
Add new panel config for gesture
NO_PROP_NEEDED

Change-Id: I4e0Montana83e9c36cb82f2eea6971797f67781d8f25
Reviewed-on: https://gerrit.mot.com/1789290
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-11-18 04:02:50 -06:00
chengql2
efda4a150a ets_fps_mmi: Register panel notifier for display on/off
motorola/kernel/modules/drivers/input/misc/ets_fps_mmi/ets_fps.*:
Add panel notifier and ioctl command GET_DISP_PANEL_STATUS

To get the display panel status, register panel notifier to monitor the
events of PANEL_EVENT_DISPLAY_ON and PANEL_EVENT_DISPLAY_OFF.
And, add an ioctl command GET_DISP_PANEL_STATUS to support HAL service
querying for the panel status.

Change-Id: Ife5b6bc48517234b12c780af44dffaf4a1ad96e5
Signed-off-by: chengql2 <chengql2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1794293
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Reviewed-by: Shanshan Dai <daiss1@motorola.com>
Submit-Approved: Jira Key
2020-11-17 23:58:45 -06:00
wangyq13
9e6672d390 input: focaltech_v2_mmi: Configure power supply
input/focaltech_v2_mmi:
Request the proper valotage and load values for AVDD.
NO_PROP_NEEDED: <New IC for NPI>

Change-Id: I0265da2f6a3e7f5eb19e807e3f5eddd2ad37212d
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1804490
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-17 19:55:23 -06:00
wengjun1
c149726ca2 dlkm: bo: Support multi panel-supplier for novatek
- kernel 5.4.0 will use active panel name by default.
- Optimize code flow related to new drm notifier.
NO_PROP_NEEDED: needn't for shm2018

Change-Id: I80216596d7619c21f2f80fa0dc45ed92734fef26
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1803218
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-16 19:42:29 -06:00
zhangly19
b16994d232 DLKM/Sar:add abov 7ch driver
-add abov 7ch driver
-add abov 7ch header file

Change-Id: I0a7e5214c25157ae4fff07d22fd301b2e395637e
Reviewed-on: https://gerrit.mot.com/1803336
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jiacheng Ou <oujc1@motorola.com>
Reviewed-by: Minghui Wei <weimh1@motorola.com>
Reviewed-by: Nan Wu <wunan3@motorola.com>
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2020-11-16 03:01:02 -06:00
wangyq13
64bab96fd4 input: focaltech_v2_mmi: add V2 version of i2c focal driver
Add V2 version of focaltech i2c driver.
Because first version focaltech_mmi is too old for new focaltech
i2c chip. And this is common codebase, old products also use this
bo branch, it change old focaltech_mmi codes, will impact old
products stability.
NO_PROP_NEEDED: <New IC for NPI>

Change-Id: I46368ebf7d4d87c79c4c7283f2e220f0295a1a51
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1802966
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-11-15 23:34:42 -06:00
litong
775e6ed9c0 Register mmi_relay notification for touchscreen
TP:
Register mmi_relay notify in  touchscreen class to receive
FOD status change events.

Change-Id: I8d5f346b329e9dc8a2585e62506260706a308188
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-on: https://gerrit.mot.com/1802938
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Sergio Vilela <sv008@motorola.com>
Submit-Approved: Sergio Vilela <sv008@motorola.com>
Tested-by: Sergio Vilela <sv008@motorola.com>
2020-11-14 19:57:24 -06:00
litong
63266f55f0 Register mmi_relay notification for FOD
Register the mmi_relay notify to send the FOD state change
events to touchscreen class.

Change-Id: I2c14322ce21ff69e3a921f38ee2784e8d23a7c65
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-on: https://gerrit.mot.com/1802937
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Sergio Vilela <sv008@motorola.com>
Submit-Approved: Sergio Vilela <sv008@motorola.com>
Tested-by: Sergio Vilela <sv008@motorola.com>
2020-11-14 19:55:04 -06:00
litong
5d385bce9d An common module used for all of module communication.
The module encapsule a group of notification,
used for decoupling between modules, for example,
the touchscreen driver are coupling fingerprint
and display driver in the bring-up phase,
the dependencies between modules need to fixed
to avoid proceeding blocked,
This module is middle layer, it change a direct
dependece into an indirect dependence.

Change-Id: I4469dd70300fce2dc5d9af48e96d65755974ef9f
Reviewed-on: https://gerrit.mot.com/1802936
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Sergio Vilela <sv008@motorola.com>
Submit-Approved: Sergio Vilela <sv008@motorola.com>
Tested-by: Sergio Vilela <sv008@motorola.com>
2020-11-14 19:54:35 -06:00
Tito Ricardo Bianchin Oliveira
fd7cbea2c9 Revert "(CR): An common module used for all of module communication."
Cause: This commit makes Racer5G touch doesn't work at all

This reverts commit 941922034188b37f5bf30c2d5d5423c980f0b0d1.

Change-Id: Ida57d10b31cc5880a1f3bfdf949e397b61158d5b
Reviewed-on: https://gerrit.mot.com/1802577
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Sergio Vilela <sv008@motorola.com>
Submit-Approved: Sergio Vilela <sv008@motorola.com>
Tested-by: Sergio Vilela <sv008@motorola.com>
2020-11-13 12:21:57 -06:00
Tito Ricardo Bianchin Oliveira
13c7ce2de0 Revert "(CR): Register mmi_relay notification for FOD"
Cause: This commit makes Racer5G touch doesn't work at all

This reverts commit 488e073dc33db9ba86fdfb47d1e010d7fa65f9fb.

Change-Id: I3c4f25b2290cd39267ecee3a1061ee5775f2a844
Reviewed-on: https://gerrit.mot.com/1802576
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Sergio Vilela <sv008@motorola.com>
Submit-Approved: Sergio Vilela <sv008@motorola.com>
Tested-by: Sergio Vilela <sv008@motorola.com>
2020-11-13 12:17:16 -06:00
Tito Ricardo Bianchin Oliveira
92414d8c77 Revert "(CR): Register mmi_relay notification for touchscreen"
Cause: This commit makes Racer5G touch doesn't work at all

This reverts commit 3b191bcb6d43bea5f28ace9c54500a385816a27b.

Change-Id: Ibfcd64cbedc82ab773336423cab3fa53274ecd48
Reviewed-on: https://gerrit.mot.com/1802575
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Sergio Vilela <sv008@motorola.com>
Submit-Approved: Sergio Vilela <sv008@motorola.com>
Tested-by: Sergio Vilela <sv008@motorola.com>
2020-11-13 12:16:41 -06:00
kalathik
813f2b39b7 mmi_relay: Add gki flag to avoid module load failure
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: I58d33bd17a2419dee8efa335314535c25eb325d1
Signed-off-by: Kanagarathina Kalathi <kalath(CR)@motorola.com>
Reviewed-on: https://gerrit.mot.com/1802317
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2020-11-13 09:42:16 -06:00
weimh1
4e93c431df driver/sar-sensor: sx937x bring up
1.update paramters
  2.adjust driver to match new params

Change-Id: I3affc71bce80ca8ce1558179df1f4305640df163
Signed-off-by: weimh1 <weimh1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1801960
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-13 02:36:31 -06:00
litong
b1ff78b885 Register mmi_relay notification for touchscreen
TP:
Register mmi_relay notify in  touchscreen class to receive
FOD status change events.

Change-Id: I540b012e12551b949800436a65b0b0a0d9676a38
Reviewed-on: https://gerrit.mot.com/1770280
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-11-12 01:39:12 -06:00
litong
4e40cec475 Register mmi_relay notification for FOD
Register the mmi_relay notify to send the FOD state change
events to touchscreen class.

Change-Id: I532196304deac0788807652a0c636d41397c5802
Reviewed-on: https://gerrit.mot.com/1798309
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-11-12 01:39:00 -06:00
litong
a22d4e065e An common module used for all of module communication.
The module encapsule a group of notification,
used for decoupling between modules, for example,
the touchscreen driver are coupling fingerprint
and display driver in the bring-up phase,
the dependencies between modules need to fixed
to avoid proceeding blocked,
This module is middle layer, it change a direct
dependece into an indirect dependence.

Change-Id: I905ab2e3e4de32be9a2d2a9346d3153bb3690241
Reviewed-on: https://gerrit.mot.com/1756389
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-11-12 01:38:48 -06:00
hujing3
f155ee5a66 ili9882_mmi: deep sleep update with gesture config
ili9882_mmi: need enter deep sleep when suspend
if gesture disable
NO_PROP_NEEDED

Change-Id: I9e1806b481e8eb7a803427b725745905336577ec
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1799686
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-11-11 21:15:25 -06:00
hujing3
82d59a39a0 nova_0flash_mmi: improve panel-supplier
Capri plus: panel-supplier name is not matched with panel name completely
improve panel-supplier logic for this case
NO_PROP_NEEDED

Change-Id: Ia43fdff4cae8dd17c97940a05b03981e02a1280c
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1800288
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Submit-Approved: Jira Key
2020-11-11 21:10:18 -06:00
hujing3
71d26dcd2a ili9882_mmi: tp suspend improve
ili9882_mmi: update tp suspend
to avoid calling ili_spi_pll_clk_wakeup when resume
NO_PROP_NEEDED

Change-Id: I9a548eb50ff3492f094ce2c71c238ec21d9d3280
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1798682
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-11-11 02:47:51 -06:00
wengjun1
a89263aeeb dlkm: bo: Support multi panel-supplier for novatek on 5.4.0
- Since kernel 5.4.0 with android R can't use chosen property of devicetree
to confirm which panel will be used, so get the right panel-supplier from
active panel name.
NO_PROP_NEEDED: needn't for shm2018

Change-Id: Iaddcf244e5db6dbb77e2d825b18e9645fe1807e3
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1798496
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jing Hu <hujing3@lenovo.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-11 00:38:28 -06:00
Ningkai Zhuang
d50ef8d192 UWB bring up for driver
Add UWB driver on kernel module
and UWB driver module support dlkm

Change-Id: I82302d83438afb104e818e31aa70091f5bb92a47
Reviewed-on: https://gerrit.mot.com/1774769
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zishang Zhou <zhouzs1@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2020-11-10 20:02:33 -06:00
hujing3
fcdea9385f ili9882_mmi: improve RESUME_BY_DDI support
ili9882_mmi: improve RESUME_BY_DDI support
for quick touch response.
NO_PROP_NEEDED

Change-Id: I1a54b94414b64de24d516acd51a5f49a1d3c566b
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1798531
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-11-10 03:20:48 -06:00
hujing3
19dd36166f nova_0flash_mmi: add LCM_FAST_LIGHTUP support
nova_0flash_mmi:
add LCM_FAST_LIGHTUP support
NO_PROP_NEEDED

Change-Id: Ib449bc337ab7690e5fb0de57ca8cbe5714db18f3
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1798386
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-11-10 03:20:34 -06:00
wengjun1
2d92c538ad Support tapTowake feature on android R for novatek
- Since moto display notifier has been changed to common
interface, for implement tap to wake need some changes to
match display.
NO_PROP_NEEDED: needn't for shm2018

Change-Id: I9642787a29e9326e9ac648138e2fe47800783ed0
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1793188
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-10 01:14:10 -06:00
hujing3
6622b482a3 chipone_tddi_mmi: ICNL9911C and ESD improve
chipone_tddi_mmi:
ICNL9911C & ESD improve
NO_PROP_NEEDED

Change-Id: I5b40ceda928bf2f49bb4920d7134771d122cba76
Reviewed-on: https://gerrit.mot.com/1797147
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-11-09 00:02:33 -06:00
zhucc2
c920f5bf83 exfat: fix build err on user build.
After SM4350 ES FC rebase, find some API are delete by Google in GKI.
we have to workround as below:
KBUILD_EXTRA_SYMBOLS += $(CURDIR)/../../kernel/
msm-$(MODULE_KERNEL_VERSION)/Module.symvers

ERROR: "truncate_setsize" [../../motorola/kernel/modules/fs/exfat/exfat.ko] undefined!
ERROR: "setattr_prepare" [../../motorola/kernel/modules/fs/exfat/exfat.ko] undefined!
ERROR: "clear_nlink" [../../motorola/kernel/modules/fs/exfat/exfat.ko] undefined!
ERROR: "set_nlink" [../../motorola/kernel/modules/fs/exfat/exfat.ko] undefined!
ERROR: "d_splice_alias" [../../motorola/kernel/modules/fs/exfat/exfat.ko] undefined!
ERROR: "igrab" [../../motorola/kernel/modules/fs/exfat/exfat.ko] undefined!

Change-Id: I9399a691ee70485a157e33243c7095c38ab37290
Reviewed-on: https://gerrit.mot.com/1796098
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-06 04:43:04 -06:00
hujing3
4cc775bdc5 chipone_tddi_mmi: support ICNL9911C
Cebu 3rd panel bringup
Support Chipone new touch IC ICNL9911C
NO_PROP_NEEDED

Change-Id: I4f8bbed3aac151928bdce009bc3b8a787dacc72f
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1794746
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-11-05 03:28:55 -06:00
Ningkai Zhuang
e77bc813ae NFC driver mmi and DLKM support
1 NFC driver will mmi.nfc to decide if need to probe
2 Add NXP SN1xx driver to DLKM
3 Fix ST driver building error on v(CR)

Change-Id: If7f6b1439c7214c4eaaef4ed1368a89988802c67
Signed-off-by: Ningkai Zhuang <zhuangnk1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1788053
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
2020-11-04 03:23:27 -06:00
weimh1
b61eb9bbf2 driver/sar-sensor: build error on user build
build error:
    ERROR: "sensors_classdev_unregister" [../../motorola/kernel/modules
    /drivers/misc/sx937x/sx937x_sar.ko] undefined!
    ERROR: "sensors_classdev_register" [../../motorola/kernel/modules
    /drivers/misc/sx937x/sx937x_sar.ko] undefined!

   sar-sensor based on sensors_class.ko,need add dependency to
   make sure sensors_calss build before sarsensor:
   LOCAL_ADDITIONAL_DEPENDENCIES := $(KERNEL_MODULES_OUT)/sensors_class.ko

Change-Id: Id4f7dbf73e67974fc40612327f473cdbdc9bc417
Signed-off-by: weimh1 <weimh1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1793323
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-04 03:12:59 -06:00
weimh1
5fa133d16c driver/sar-sensor: sx937x bring up
PH3 is used as IRQ,so we should not operate bit3
  or it will geneate too much irq.

Change-Id: I74b13cda139cc7ba8eeb87fe0bfab5d5f05debc3
Signed-off-by: weimh1 <weimh1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1791973
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-03 01:24:11 -06:00
litong
440ca970d5 Continue to probe touch even if no matching panel is found
TP:
1.Continue to probe touchscreen driver even if no matching panel is found
  to ensure the basic functions of the touchscreen.
2.There is no member "id" in drm_panel_notifier at present, so set id to 0
  to ensure touch driver can receive notifications from panel.

Change-Id: I2f8c946304be4511bc7ef3422937bfe8ea927a98
Reviewed-on: https://gerrit.mot.com/1745970
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2020-11-03 01:07:49 -06:00
mahj8
4fd95ed959 DLKM: build error on user build
build error:
ERROR: "power_supply_notifier" [../../motorola/kernel/modules/
drivers/power/mmi-smbcharger-iio/mmi-smbcharger-iio.ko] undefined!
ERROR: "power_supply_class" [../../motorola/kernel/modules/
drivers/power/mmi-smbcharger-iio/mmi-smbcharger-iio.ko] undefined!
ERROR: "class_for_each_device" [../../motorola/kernel/modules/
drivers/power/mmi-smbcharger-iio/mmi-smbcharger-iio.ko] undefined!
ERROR: "kernel_power_off" [../../motorola/kernel/modules/
drivers/power/mmi-smbcharger-iio/mmi-smbcharger-iio.ko] undefined!
ERROR: "alarm_try_to_cancel" [../../motorola/kernel/modules/
drivers/power/mmi-smbcharger-iio/mmi-smbcharger-iio.ko] undefined!

They are defined in boot.img, but they don't defined in google gki.
so we should fix it as below:
KBUILD_EXTRA_SYMBOLS += $(CURDIR)/../../kernel/
msm-$(MODULE_KERNEL_VERSION)/Module.symvers

Change-Id: Iabb4297c3c2a01a2ff57d0e11b61a973eb058184
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1791885
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Minghui Wei <weimh1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-03 00:32:36 -06:00
tnlizd
9f2d0a4994 [capsensor] add debug support for cap sensor
Capri: sx9338 sar sensor
load reference phase config from dts

Change-Id: I9aaeb587e87e74a9bb1bedbc31551ffd2c50c8bf
Signed-off-by: tnlizd <tnlizd@motorola.com>
Reviewed-on: https://gerrit.mot.com/1790916
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-11-02 21:29:17 -06:00
Yan Zhang
93e72f7758 Add 5ms delay for wl2864c ramp-up
TOF VDD uses wl2864c pmic, wl2864c needs more
ramp-up time, therefore add 5ms delay according to
hardware team.

Change-Id: I684a4bd434bc026c78ebc4fd80a1d8a274615c7f
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/1790614
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Lei Chen <chenl18@motorola.com>
2020-11-02 01:47:38 -06:00
weimh1
58d20fda48 driver/sar-sensor: build error on user build
build error:
    ERROR: "sensors_classdev_unregister" [../../motorola/kernel/modules/
    drivers/misc/sx937x/sx937x_sar.ko] undefined!
    ERROR: "sensors_classdev_register" [../../motorola/kernel/modules/
    drivers/misc/sx937x/sx937x_sar.ko] undefined!

  These two symbols defined on sensors_class.ko.But it will create gki 
  for user build,so we should fix it as below:
  KBUILD_EXTRA_SYMBOLS += $(CURDIR)/$(KBUILD_EXTMOD)/
  ../../sensors/gki/Module.symvers

  MODPOST = scripts/mod/modpost					\
        $(if $(CONFIG_MODVERSIONS),-m)				\
	$(if $(CONFIG_MODULE_SRCVERSION_ALL),-a)		\
	$(if $(KBUILD_EXTMOD),-i,-o) $(kernelsymfile)		\
	$(if $(KBUILD_EXTMOD),-I $(modulesymfile))		\
	$(if $(KBUILD_EXTMOD),$(addprefix -e ,$(KBUILD_EXTRA_SYMBOLS)))\
	$(if $(KBUILD_EXTMOD),-o $(modulesymfile))		\
	$(if $(CONFIG_SECTION_MISMATCH_WARN_ONLY),,-E)		\
	$(if $(KBUILD_MODPOST_WARN),-w)				\
	$(if $(filter nsdeps,$(MAKECMDGOALS)),-d)

Change-Id: Ib402dcca29637ec77d805200cc768b1b2cd2d961
Signed-off-by: weimh1 <weimh1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1790594
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-01 21:28:34 -06:00
wengjun1
bee54e058c dlkm: bo: Fixed compile error on android R
- Fixed compile error on android R with kernel 5.4.0 when
tap to wake is enabled.
NO_PROP_NEEDED: needn't for shm2018

Change-Id: I1cba236475a89834545b2cae699f5cc0640ae192
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1789144
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-11-01 20:02:53 -06:00
zhangh12
e222b9be7f [capsensor] add debug info for read_rawdata
venor provide a new driver for adding some debug messages
on read_rawdata().
cmd: adb shell "logcat -b kernel | grep SMTC_D"

Change-Id: I0e0ebc09d48b1d34d40d581f9a3cdf43dcd7cf97
Signed-off-by: zhangh12 <zhangh12@motorola.com>
Reviewed-on: https://gerrit.mot.com/1773854
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Jiyue Cui <cuijy2@lenovo.com>
2020-10-29 22:51:47 -05:00
wengjun1
650168f62c Ibiza: Touch ICNL9911C bringup
- Bringup for touch chipone icnl9911c.
- Add support for kernel 5.4.0 with android R.
NO_PROP_NEEDED: needn't for shm2018

Change-Id: I3e43dca0766637a0544f9e2c43913d752b359121
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1788257
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-10-29 20:39:01 -05:00
jixj
69539ee2e0 Revert "(CR): utags.ko: solve the unused remove_proc_subtree symbol definition"
This reverts commit ad7449af9ac7fd5418a6eb0462b74633b2f1dcca.

It is not needed anymore because remove_proc_subtree has been added to
GKI whitelist

Change-Id: Ic1cf38cfe215357b958de509f9bbf6e80116f564
Reviewed-on: https://gerrit.mot.com/1788234
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2020-10-29 03:09:09 -05:00
jixj
3396f59b2f Revert "(CR): utags.ko: force this module unloadable"
This reverts commit 298e2347dfc445415663afbfc2ff1e8e7053a905.

It is not needed anymore because remove_proc_subtree has been added to
GKI whitelist

Change-Id: Ieee190e012ab338b613c81358298a86443d6944b
Reviewed-on: https://gerrit.mot.com/1788233
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2020-10-29 03:09:04 -05:00