Commit graph

1,355 commits

Author SHA1 Message Date
litong
3b4b1c2e8f Solve resume and suspend confusion,causes touchscreen crash
When answering a call, the display screen keeps on and off,
which causing the touchscreen to enter the suspend process when the
resume process is not completed

Change-Id: I70ace85a8eb969f5b3005218d432ce4e3d29e8c4
Reviewed-on: https://gerrit.mot.com/1542928
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2020-04-26 06:29:11 -05:00
Chuanchun Zhu
5c531b9ed3 Revert "(CR): exfat: use kvzalloc instead kzalloc in exfat_fill_super()."
compile fail when  kernel version < 4.14, we need check and recommit later.

This reverts commit 71ab0b07650e2f41f45ff087abce284fd2176e9e.

Change-Id: Idaeea78203c84127713f9a49cb0ce264c5faMontanaa
Reviewed-on: https://gerrit.mot.com/1541523
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-04-23 22:01:15 -05:00
zhucc2
fd5e126865 exfat: use kvzalloc instead kzalloc in exfat_fill_super().
kzalloc maybe fail when memory fragmented, there is not enough contiguous
memory to used.
04-17 02:19:20.788   672 11313 D vold    : File system checking finished.
No errors found.
04-17 02:19:20.788   672 11313 D vold    :
04-17 02:19:20.788   672 11313 I vold    : Check OK
04-17 02:19:20.816   672 11313 E vold    : Mount failed; attempting
read-only: Out of memory
04-17 02:19:20.818   672 11313 E vold    : public:8,97 failed to mount
/dev/block/vold/public:8,97: Out of memory

Binder  : 672_7: page allocation failure: order:4, mode:0x60c0c0
(GFP_KERNEL|__GFP_COMP|__GFP_ZERO), nodemask=(null)

Change-Id: I7bb92c672bdf2b2f777871d5f12f793b34d36b7f
Reviewed-on: https://gerrit.mot.com/1539365
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Shi-Yong Li <a22381@motorola.com>
Reviewed-by: Dongliang Yue <yuedl1@motorola.com>
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2020-04-23 20:41:33 -05:00
chenlj2
d52429660e DLKM/sarsensor:add tcmd test interfaces for abov mmi
1. add fw_download_status sys interface;
2. add int_state sys interface.

port form:
https://gerrit.mot.com/#/c/1539901/

Change-Id: I809e33078d66fe04b1b3678a690e5e19c7bdddf0
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1540822
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-04-23 03:51:46 -05:00
a7301c
c2ac43a982 fixup! (CR): aw8697: Add error checking to RTP mode
Due to llvm is updated to 10.0.3, this would report
build error l(CR):
+++
 /mnt/rider/a7301c/R_8250/kernel/msm-4.19/../../motorola/kernel/modules/drivers/misc/awinic/aw8697/aw8697.c:1353:10:
warning: result of comparison of constant 0 with expression of type
'bool' (aka '_Bool') is always false [-Wtautological-constant-compare]
+++

Change-Id: I4bc8ebe7829d060d34a06d09dbb7eeb39891731c
Signed-off-by: a7301c <a7301c@motorola.com>
Signed-off-by: Perry White <awhite6@motorola.com>
Reviewed-on: https://gerrit.mot.com/1533709
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-on: https://gerrit.mot.com/1540157
2020-04-22 11:24:48 -05:00
a7301c
87223d1df0 fixup! (CR): goodix_gtx8_v1430_mmi: Port goodix v1.4.3.0 driver code
Due to llvm is updated to 10.0.3, this would report
build error l(CR):
+++
/mnt/rider/a7301c/R_8250/kernel/msm-4.19/../../motorola/kernel/modules/drivers/input/touchscreen/goodix_gtx8_v1430_mmi/goodix_ts_i2c.c:732:52:
warning: result of comparison of constant 256 with expression of
type 'u8' (aka 'unsigned char') is always true
[-Wtautological-constant-out-of-range-compare]
3446 error, forbidden warning: goodix_ts_i2c.c:732
+++

Change-Id: I57c0062a562295e8254827d0152b4f0a11519f2b
Signed-off-by: a7301c <a7301c@motorola.com>
Reviewed-on: https://gerrit.mot.com/1533708
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-on: https://gerrit.mot.com/1540156
2020-04-22 11:24:41 -05:00
a7301c
bcfd170343 fixup! (CR): create mmi_info module
Due to llvm is updated to 10.0.3, this would report
build error l(CR):
+++
/mnt/rider/a7301c/R_8250/kernel/msm-4.19/../../motorola/kernel/modules/drivers/mmi_info/mmi_info_main.c:43:3:
warning: misleading indentation; statement is not part of the
previous 'if' [-Wmisleading-indentation]
 error, forbidden warning: mmi_info_main.c:43
+++
Signed-off-by: a7301c <a7301c@motorola.com>

Change-Id: Icce684f637adeb374a2298d3f8add967d5bbddca
Reviewed-on: https://gerrit.mot.com/1533707
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: Yinjun Chen <a7301c@motorola.com>
Reviewed-on: https://gerrit.mot.com/1540155
2020-04-22 11:24:34 -05:00
a7301c
6fb73ee052 Pass absolute path of "TOP" to Kbuild.
In R, Only a few limite environment variables are passed
to ninjia, others will be cleared.
So, pass this "TOP" specically to kernel modules build.
And have to be absolute path.
Otherwise, the header can't be located.

Change-Id: I7820e3d8112611c1c16a1807ea57ab9949416918
Reviewed-on: https://gerrit.mot.com/1508821
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: Yinjun Chen <a7301c@motorola.com>
Reviewed-on: https://gerrit.mot.com/1540154
2020-04-22 11:24:25 -05:00
zhouwl
bd7a9af5f2 ASoC: aw882xx:correct a property variate in parse dt
this sysctrl property has been defined in Astro dtsi,
it will not cause any mistake, but need to correct.

NO_PROP_NEEDED: aw882xx doesn't use in bq-shm2018 products.

Change-Id: Ie1359731cd12636f83b0335c4d67be14c03d567c
Signed-off-by: zhouwl <zhouwl@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1539509
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2020-04-22 03:39:35 -05:00
wengjun1
dd6f6f0e7c dlkm: Himax: Apply for new interface for single tap
- Since now display has updated new interface for wakeup gesture,
apply the new interface to implement single tap for TDDI.

Change-Id: I0ee716b60cd1ef244d645a4a6735ad454288b98f
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1538941
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-04-21 04:32:20 -05:00
wengjun1
2f70e77a91 himax: Compatible with the way of gesture to report key
- Since we noticed that some projects need to report not only one type
of touch gesture and touch hal has been changed on bq branch, so if
we still report instance the single tap should not be work properly. So
add report function key to fit for the hal's change.

Change-Id: I463c7ceb046836305b9c947eec6f79d321df7d92
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1538913
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-04-21 03:56:04 -05:00
zhouwl
6204f33cd5 ASoC: aw882xx driver update
This is Awinic official release, the key change is i2c_read function,
use i2c_transfer to replace the old one, add thread_lock to protect
i2c operation safety, in order to resolve a potential no sound risk
after supporting different audio scenarios feature.

NO_PROP_NEEDED: aw882xx doesn't use in bq-shm2018 products.

Change-Id: I3daeb35c6a349c65bdb723d7f12430634abbf8f2
Signed-off-by: zhouwl <zhouwl@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1537490
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Yunfei Guo <guoyf2@motorola.com>
2020-04-20 00:47:25 -05:00
litong
36b7510d2c support pill region and gs-distance support
TP:
Pill region support added to improve edge double tap detection.
Add suppression command to support gs-distance setting.

Change-Id: I2300bd6ac9d5073f8183332d2b2b904e86d9f558
Reviewed-on: https://gerrit.mot.com/1535704
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-04-19 22:12:14 -05:00
wengjun1
1bbae1b925 dlkm: Improve himax_0flash_mmi
- Since there is a potential conflict between 83102 & 83102d
and 83112f, so temporarily remove support for them.

Change-Id: Ifb520ee039333053a58fd25b428b15e0795afacd
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1536636
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2020-04-17 07:58:36 -05:00
wengjun1
b3da9048e1 dlkm: Improve himax_0flash_mmi - continous
- Since defining the same IC name could potentially lead to compilation
failure, change the name of the relevant macro.
- Also change this name in common to ensure consistency.

Change-Id: If8f4b8ce790ae1f1a4ed8d610860670751f674b6
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1536526
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Reviewed-by: Dezhen Hou <houdz1@motorola.com>
Submit-Approved: Jira Key
2020-04-17 03:28:09 -05:00
wengjun1
2c88ce233a dlkm: Improve himax_0flash_mmi
- Since defining the same IC name could potentially lead to compilation
failure, change the name of the relevant macro.

Change-Id: Id2210be28172af09ff58756ee78b67f33a73153b
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1536375
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dezhen Hou <houdz1@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2020-04-17 00:36:50 -05:00
Curtis Porter
a013c18d7f motorola:qpnp-smbcharger-mmi Clean up commits
This commit is to clean up debug prints and make the heartbeat
delay only applicable when in factory mode.

Change-Id: I53e476954226656bdab0c952bd932dea6ae2f953
Signed-off-by: Curtis Porter <porterc@motorola.com>
Reviewed-on: https://gerrit.mot.com/1535979
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-04-16 23:14:27 -05:00
Curtis Porter
ec317100a6 motorola:qpnp-smbcharger-mmi Delay first boot heartbeat
Update charger driver to also delay heartbeat caused by
psy notifier call. Since this is the only other place
that heartbeat can first be called from. We only want to
apply this delay to the first time so we use a static
variable flag. Also add some extra debug just encase.

Change-Id: I771e1058e36906dba9d41df711fe2da25f821f4c
Signed-off-by: Curtis Porter <porterc@motorola.com>
Reviewed-on: https://gerrit.mot.com/1535557
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-04-16 23:11:08 -05:00
Curtis Porter
83095fc65b motorola:qpnp-smbcharger-mmi delay first heartbeat 10 seconds
Try to delay first heartbeat 10 second to account for factory transient
voltages. If there is a reverse boost that the heartbeat catches it will
suspend the usb which can triger the factory kill if the vbus voltage goes
below 2V. If the voltage then comes back and doesn't decay while shutting down
it will get stuck during shutdown.

Change-Id: I688d6ef211be2b56d0f398075011b7528d7f0e58
Signed-off-by: Curtis Porter <porterc@motorola.com>
Reviewed-on: https://gerrit.mot.com/1535022
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-04-16 23:10:56 -05:00
wengjun1
07251708de dlkm: himax touch driver improvement
- When the driver open HX_FIX_TOUCH_INFO, the driver does not
fix the expected value, so improve the logic of this part.
- Delete unnecessary logs.

Change-Id: I1b51a70a1e2aaebeb20e91de14a2c60268bbcd2c
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1536264
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dezhen Hou <houdz1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-04-16 22:00:03 -05:00
Ryan Lattrel
9b080c1359 sx933x: Add generic usb/flip recal options
Add option to set usb/flip recal via device.mk file instead
of calling out the product name.

Change-Id: I591933fbb6afb44ed65a9c15633b6aba96c382ca
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1535142
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-04-16 15:40:47 -05:00
wengjun1
f71b0a79fb dlkm: Support the touch hx83112f for nairo
- Add support for hx83112f based on himax_v2.
- This is bringup change for himax_v2 and fixed some existing bugs.

Change-Id: Ibd20af124e4259f02d7ad61098db57a1d32e7164
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1535709
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dezhen Hou <houdz1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-04-16 05:29:42 -05:00
jixj
b554de9724 watchdogtest: replace msm_trigger_wdog_bite()
use kallsyms_lookup_name("msm_trigger_wdog_bite") to get
"msm_trigger_wdog_bite" address instead of exporting from
kernel and no need port to kernel every platform

Change-Id: I314d552f480baed0fa418afcf7a80134c69867de
Reviewed-on: https://gerrit.mot.com/1534039
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-04-15 20:47:24 -05:00
litong
355300fea9 Add synaptics wakeup gesture handler
1. Add the Single-tap wakeup gesture handler.
2. Add the Zero-tap wakeup gesture handler.

Change-Id: Ida36290a0f59008c696c17fcd38b3a31082fde41
Reviewed-on: https://gerrit.mot.com/1503002
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-04-14 21:19:29 -05:00
litong
4c6b891415 Syna: Modify the suspend and resume process.
TP:
Add Panel_state to handle whether to enter deep sleep.
Directly call Synaptics' suspend and resume function.

Change-Id: Ia2dcb9b6f18213cc381ebe9984f3adbf6542d718
Reviewed-on: https://gerrit.mot.com/1533868
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-04-14 21:19:23 -05:00
litong
b5999b0d94 Modify the disable-irq process in touchscreen class.
TP:
  Because some vendor need the interrupts when changing the panel state,
  so we should disable-irq after the panel state is completed to
  adapt to more situations.

Change-Id: I78f6c6a4b989843dbab92761ddcd4ab324352ce8
Reviewed-on: https://gerrit.mot.com/1533861
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-04-14 21:19:15 -05:00
Drew Abbott
23346ee9b8 Allow for multiple batteries and multiple battery profiles
Remove references to battery serial and replace with checks for profile
name. Move psy name to device tree. Limit one profile per fuel gauge.
Add fg specific work queue.

NO_PROP_NEEDED: This change provides dual battery support, which is not
needed on previous products that use this driver.

Change-Id: I0827e22b9b289b8c4ba4c0e63fb6a180798d89f9
Signed-off-by: Drew Abbott <drewa@motorola.com>
Reviewed-on: https://gerrit.mot.com/1511235
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2020-04-13 12:59:10 -05:00
zhouwl
76c1100992 ASoC: monitor key registers in aw882xx
In Astro, aw882xx doesnt work correctly and causes speaker has
no sound, after checking resgiters dump,0x04 bit6 I2SEN, 
0x06 bit12 I2SRXEN is not right 
Driver never set these two bits after init done, I don't why
it happens, monitor these 2 registers, correct them if any
readback value is wrong.

Change-Id: I2837d706c7c4836879a483a9d12371664b2614f5
Signed-off-by: zhouwl <zhouwl@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1532728
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2020-04-12 21:23:02 -05:00
chenlj2
40d95f2381 DLKM/sarsensor:optimise code for sar sensor of abov
-solve issue that cat update_fw fail
-memory size is small ,modify 16 to 37

Change-Id: I0016227d3bfee90b2a7f92591925f8c30e446ebd
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1531184
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2020-04-09 06:35:39 -05:00
dengwei1
44eaba9e38 guam: input add touch chipone fw
input add touch chipone
fw
NO_PROP_NEEDED: only for guam/guamp

Change-Id: I8f31a802f0cc1b83c8afc30f7709d194c1d120c2
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1530903
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-04-09 01:41:26 -05:00
Konstantin Makariev
fda6327097 sec_mmi: mutual capacitance range interface
New interface to retrieve mutual capacitance range. Range reported as
pair of min,max values found in raw mutual capacitance test report.
This interface will only be available in factory mode and intended to
retrieve range while running in the same controlled environment as
calibration. LSI claims range (e.g. abs(max - min)) must be below 100
to consider calibration successful. In case when driver won't be able
to retrieve test results, pair of (1,-1) will be reported.

Change-Id: I3f884c733d1f5484ad7d9780bef9cd98eff09e43
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1528998
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-04-08 23:24:36 -05:00
shangbl1
db7831a740 update CCI tools
kernel 4.9 cci_intf.h keep kernel and
bionic the same, don't need cci_device

Change-Id: I60295e8027953f8308e047d34ed1491b7f353e3c
Signed-off-by: shangbl1 <shangbl1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1529155
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2020-04-07 02:43:18 -05:00
weimh1
83241cceff nairobi/sensor: set CONFIG_CAPSENSE_USB_CAL
1.enable usb_cal for nairobi
  2.optimize the script to minimize the length of Kbuild

Change-Id: If417dd38e6b7f95e8a8c25defd8d43c279af8385
Signed-off-by: weimh1 <weimh1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1527449
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Lijun Chen <chenlj2@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-04-07 01:32:20 -05:00
zhongling1
7cb19d1ac8 dlkm: ets_fps: Set up double tap feature
1. Add new macro for double tap if define
2. Disable slide nav
3. Enable swipe nav
4. Set up double tap at HAL

Change-Id: Ibab4d2670980ee76ef03fc82b4c23886cf19a871
Signed-off-by: zhongling1 <zhongling1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1522953
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2020-04-07 01:18:12 -05:00
dengwei1
33e0f840c1 guam: add touch chipone support
add touch chipone
support
NO_PROP_NEEDED

Change-Id: I9f30cb25d4cd53c1c15c7b499acc65d239d4c64c
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1525843
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-04-01 21:11:57 -05:00
VijayKumar Gn
bcf903f738 Re-Enable DRM Event Notification
Kernle 4.9 doesnt support Panel Notification
Current Touch driver removed DRM Event Notification
Re Enable the support to support legacy upgrade product

Change-Id: Icd74b3554c3075fe44bcdb1ed9244eecc99e3fb6
Signed-off-by: VijayKumar Gn <vijaygn@motorola.com>
Signed-off-by: Ashwin Pathmudi <jfxr63@motorola.com>
Reviewed-on: https://gerrit.mot.com/1523810
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-03-30 19:28:56 -05:00
litong
bc2d1b90b2 Solve the problem of charge mode setting when power off
1. Initialize the value of the charge-mode and refresh-rate when 
the touchscreen resume.


Change-Id: If09a10c6fad241e47b98aea8a5dd75aae78ede11
Reviewed-on: https://gerrit.mot.com/1522920
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-03-27 04:25:56 -05:00
yangjq
fa1bb52314 racer 5G: aw8695: Add new ringtone waveform
Add new waveform binary for new "Zero Hour" default
ringtone

Change-Id: I29e830e97a48160151dc7de908d7fc25fcf896f0
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1522633
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-03-26 23:30:41 -05:00
Weilong Wu
89d457fad9 dlkm: st21nfc: update driver
Check of IRQ signal before i2c reading action.
The feature will avoid reading action at unwanted times.

Change-Id: I93bf13109f58e2e950dcc84781e448581a8ae80d
Signed-off-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1520108
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ningkai Zhuang <zhuangnk1@lenovo.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-03-26 03:27:20 -05:00
xiewen3
326be4e3fc DLKM/sar: Add fw mode detection for A96T346HW.
guam sar bringup:
abov_sar_ptr is null pointer in abov_tk_fw_mode_enter function.

Change-Id: Id336171d17fe1ad5a376fd079f206d688d23afd4
Signed-off-by: xiewen3 <xiewen3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1521635
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-03-26 01:01:40 -05:00
jixj
176d2f2dc0 mmi_sigprint: add death signal debug feature driver
Move death signal debug feature driver from kernel to DLKM.
Ported from (CR)

Change-Id: Icbab4faaa58710a6f99433db7807cc175e5f38d8
Reviewed-on: https://gerrit.mot.com/1519314
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2020-03-25 20:54:06 -05:00
Wen Xie
321c070657 DLKM/sar: Add fw mode detection for A96T346HW.
guam sar bringup:
Add fw mode detection for A96T346HW.

Change-Id: I81a0f4802fda3b276b870a3fa758528871d31a4a
Signed-off-by: Wen Xie <xiewen3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1509854
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2020-03-25 03:56:55 -05:00
Konstantin Makariev
8454073236 fixup! (CR) sec_mmi: support holding grip detection
Function added in the original commit needs to have a stub when
touchscreen class driver is not used to avoid unknown symbol
DLKM loading error

Mot-CRs-fixed: (CR)

Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Change-Id: I1b9891c24a18ec97ac4b171ecfe928b6e6a608de
Reviewed-on: https://gerrit.mot.com/1520688
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-03-24 14:16:46 -05:00
kumarv
8d4593af7b SDM710: Reduce the spam charger related logs
When charger plugged in or not, Below logs are seen
flooded in the kernel logs accordingly.
One log for every 10 seconds would get printed even when
there is no change in the charger rate state.

Solution:
dump the logs when there is actual change in charger present state
and charge rate.

03-09 08:52:14.869     0     0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=Normal
03-09 08:52:35.527     0     0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=Normal
03-09 08:52:46.024     0     0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=Normal
03-09 08:52:56.460     0     0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=Normal
03-09 08:53:05.426     0     0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=None
03-09 08:53:05.532     0     0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=None
03-09 08:53:08.230     0     0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=Normal
03-09 08:53:08.578     0     0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=Normal
03-09 08:53:09.392     0     0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=Normal
03-09 08:53:09.890     0     0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=Normal
03-09 08:53:20.267     0     0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=Normal
03-09 08:53:30.528     0     0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=Normal
03-09 08:53:40.112     0     0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=Normal
03-09 08:53:50.360     0     0 E power_supply battery: smb_mmi_power_supply_changed: POWER_SUPPLY_CHARGE_RATE=Normal

NO_PROP_NEEDED for bq-shm2018.

SDM710 is under project bq-sh2018. Hence this change propagation not needed for branch bq-shm2018.

Change-Id: I840a8c242c8478fc6221763c67f9246dda607f4e
Signed-off-by: kumarv <kumarv@motorola.com>
Reviewed-on: https://gerrit.mot.com/1514199
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2020-03-24 01:57:39 -05:00
litong
a99b6a9213 Fixup! Check the value to be written
1. Check if the previous firmware supports this gs-distance feature
2. Solve the problem that buf is not initialized in gs-distance

Change-Id: I114d218bafdd1585251c4788b8b02f8de6d06d6c
Reviewed-on: https://gerrit.mot.com/1520031
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2020-03-24 01:14:33 -05:00
litong
b08bd2b676 Check the value to be written
TP:
If the value need to be written is the same as the previously saved 
value, no longer access I2C and return size directly..



Change-Id: I6a7942e4bba3c1a219d1052a3a0377895da10a40
Reviewed-on: https://gerrit.mot.com/1517835
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-03-23 04:46:20 -05:00
litong
bcabfcd7b2 Add synaptics major and minor
TP:
Add synaptics major and minor events reporting.

Change-Id: Iaff3ee25c7e96d81b5d5694481f55633d6112cdc
Reviewed-on: https://gerrit.mot.com/1501279
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2020-03-23 04:40:40 -05:00
Konstantin Makariev
32c34e9aff sec_mmi: support holding grip detection
Driver provides access to holding grip info reported by firmware via
sysfs entry. Driver notifies HAL about holding grip info changes.

Change-Id: Ifff66d0a06b904e43dc88432b930e51478c4fa59
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1517457
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-03-20 09:34:30 -05:00
Konstantin Makariev
3e7c7ab6a3 touchscreen_mmi: export class kobject
When driver exports sysfs entries to the class, they are created
under class' kobject. If driver needs to notify HAL about some
changes that happen asynchronously, it needs pointer to kobject
to call sysfs_notify. For that purpose pointer to kobject added
to class imports structure.

Change-Id: I05e72ee3a30cccce089ec571837b25df2fd07346
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1517618
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2020-03-20 09:33:58 -05:00
Ryan Lattrel
3a6490db06 qpnp-smbcharger-mmi: Fix getting stuck in adaptive mode
If you go into adaptive mode, you cannot get out.  Go to
STEP_NONE and let the state machine sort it out if adaptive
mode is exited.

Change-Id: I9a21f96a92438be1ad909d2a81eca197879c5b34
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1508042
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2020-03-18 17:26:14 -05:00