Commit graph

470 commits

Author SHA1 Message Date
huangys
dd9dd4ed04 extcon_madera: support lineout report
when the hp impedance is greater than 5000, we regcognize it as
lineout to instead the orginal headphone

Change-Id: I0a7843c4e8fb7db3f0d5b681210c24e15d56a59c
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1275817
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2018-11-29 21:14:04 -06:00
dengwei1
e40f911b5e channel input: update the reset ic sleep time to 100ms
update the reset ic sleep time to 100ms
as vendor defined on their common base

Change-Id: I0138620ce138fe26dfd4e3cd9d4e972602019522
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1276079
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2018-11-29 20:21:03 -06:00
zhouwl
e05f1c5aa2 ASoC: tfa987x: add volume control command
add mixer control for setting output volume, this method changes
TFADSP_FWK_Unmute, primary channel gain.

Change-Id: I70a29d017413e63cba92985f8e093f477774f850
Signed-off-by: zhouwl <zhouwl@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1272169
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Jonathan Eklund <jeklund@motorola.com>
Reviewed-by: Joseph Dwyer <josephdwyer@motorola.com>
2018-11-29 08:50:04 -06:00
Wen Xie
ac89b6f56d Channel row : audio: add TI smartpa algorithm
channel: support two tas2560 bin files
-tas2560_TI_row.bin for Channel ROW with smart pa;
-tas2560_TI_na.bin for Channel NA;

-add ti,spk_type_id to distinguish row and na bin files;
-close debug log.

Change-Id: I8ae7805db2e92c807b34f841dd1268db96ba6163
Signed-off-by: Wen Xie <xiewen3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1274052
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhengming Yao <yaozm1@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2018-11-28 20:44:56 -06:00
Kenny Kessler
a788daec12 power: qpnp-smbcharger-mmi: Disable Suspend Wakes
Add a module parameter to control whether we allow the suspend
wakeup alarm to be configured in the heartbeat.  This will allow
testing of the feature in case it is needed.

Change-Id: I3f3d0928289362e597c7cc3f20dbe529df4f62cd
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1275055
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-11-28 16:02:28 -06:00
gongsc1
b878a5f4e1 add sysfs of trig_wav_n for keys test
add trig_wav_n sysfs for trigger vibration
when release keys.

Change-Id: I25a07c270b04d32ce703dbecb43d5b9f4bbb5908
Reviewed-on: https://gerrit.mot.com/1272726
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-11-28 00:06:27 -06:00
xiaoy3
7e60834fb1 tzlog_dump:Fix the issue that hang in M logo after device crash
hardreset can not reset DDR issue, that lead to tzlog_dump_probe bad address

log : tzlog_dump probe failed
[    1.968067,6] tzlog_dump soc:tzlog_dump: tzlog_dump_size 30000
[    1.968078,6] tzlog_dump soc:tzlog_dump: tzlog_dump_addr eefa2000
[    1.968147,6] Unable to handle kernel paging request at virtual address ffffff808b1a60a8
[    1.968151,6] pgd = ffffffc0e7fa8000
[    1.968155,5] [ffffff808b1a60a8] *pgd=0000000000000000, *pud=0000000000000000
[    1.968189,6] ------------[ cut here ]------------
[    1.968193,6] Kernel BUG at ffffff828ce51310 [verbose debug info unavailable]
[    1.968197,6] Internal error: Oops: 96000005 [#1] PREEMPT SMP
[    1.968202,6] Modules linked in: tzlog_dump(O+) mmi_info(O) mmi_annotate(O) sensors_class(O) watchdogtest(O) utags(O) exfat(O) machine_ext_dlkm(O) machine_dlkm(O) wcd9335_dlkm(O) cpe_lsm_dlkm(O) wcd_cpe_dlkm(O) analog_cdc_dlkm(O) digital_cdc_dlkm(O) stub_dlkm(O) mbhc_dlkm(O) wsa881x_analog_dlkm(O) wsa881x_dlkm(O) wcd9xxx_dlkm(O) wcd_core_dlkm(O) hdmi_dlkm(O) swr_ctrl_dlkm(O) swr_dlkm(O) pinctrl_wcd_dlkm(O) native_dlkm(O) platform_dlkm(O) cirrus_playback(O) usf_dlkm(O) q6_dlkm(O) adsp_loader_dlkm(O) apr_dlkm(O) q6_notifier_dlkm(O)
[    1.968267,6] CPU: 6 PID: 448 Comm: modprobe Tainted: G           O    4.9.112-perf+ #1
[    1.968271,6] Hardware name: river (DT)
[    1.968275,6] task: ffffffc0e7bc8000 task.stack: ffffffc0e7e5c000
[    1.968284,6] PC is at tzlog_dump_probe+0x1f8/0x580 [tzlog_dump]
[    1.968290,6] LR is at tzlog_dump_probe+0x1e4/0x580 [tzlog_dump]
[    1.968294,6] pc : [<ffffff828ce51310>] lr : [<ffffff828ce512fc>] pstate: 20400145
[    1.968296,6] sp : ffffffc0e7e5fa20
[    1.968299,6] x29: ffffffc0e7e5fa30

Change-Id: I70a5f2e3cd67bad6ce16732e23a90125adc1b8a3
Signed-off-by: xiaoy3 <xiaoy3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1273103
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2018-11-23 04:13:24 -06:00
dengwei1
ac018ef1ff channel input: add ilitek touch proc raw data
add ilitek touch proc file
so keypart can get the raw data

Change-Id: Ib445eef0bf68e676ab7a01aa3ee5bc6dc049547f
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1271616
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2018-11-20 01:10:00 -06:00
a20023
153d10362d Fix Wmaybe-uninitialized warning
Set the value to variable state before it is used.

Change-Id: I240b754483a1d36fadb6759e5c223472d7909cf3
Reviewed-on: https://gerrit.mot.com/1271405
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Andrew Wheeler <awheeler@motorola.com>
Submit-Approved: Jira Key
2018-11-19 11:32:09 -06:00
Ryan Lattrel
1261aea618 sx933x: add cal on phone attach
When the phone is attached or detached from the
mod recalibrate the capsensors.  This uses the
power supply device provided by the muc uart
driver.

Change-Id: Ic7002da8301ea3a3d9e3740c1532a0876d95a903
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1269885
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-11-16 11:22:59 -06:00
Ryan Lattrel
da078cf7b0 mmi_muc_uart: add recovery bootmode
Add recovery boot mode enum to the bootmode
message.

Change-Id: I75a62b17e69358cac14560dd944f5a298bc04993
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1268597
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-11-15 09:53:32 -06:00
wunan3
8eec4e9c18 sar sensor remove calibration when display off
Change-Id: Ic70e126848b59ae86d864b226aaf7b4a377f1306
WHY:Not need to calibration when display off
HOW:Remove it.
Signed-off-by: wunan3 <wunan3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1268929
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2018-11-15 00:09:25 -06:00
dengwei1
d4e70c0c3a channel input: fix ilitek touch fw ver
this change fix that
can not get the fw version first time

Change-Id: I2c63f32d0c210c3b0bfc1cde15dbedb2cd66e422
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1269454
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2018-11-14 21:07:09 -06:00
Ryan Lattrel
86b35199c3 muc_uart: add firmware upload
Add function to upload the firmware to the
muc on a packetbus request to do so.

Change-Id: I53d7444735ae95a945e6194b2e81eb3cd100f18e
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1256019
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2018-11-13 17:35:13 -06:00
Ryan Lattrel
8ff2762f44 sx933x: Add usb detect cal to odin
Add re-calibration on usb attach/remove feature
to odin and fix it for the 4.14 kernel.

Change-Id: Ib5afce222155e268bd9cf58026effca9dae8cd07
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1267723
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-11-13 14:21:31 -06:00
Kenny Kessler
a71ae53ea8 power: qpnp-smbcharger-mmi: Add Factory Charging
Enabling charging from Factory Image.  This will allow boots
while in the factory to skip and charge the device if a Wall
Charger is present.

Change-Id: I3fd3d6f2773c38bebdc2d3c93aef7c847051425e
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1267774
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2018-11-13 11:04:03 -06:00
Konstantin Makariev
77939fac39 synaptics_mmi: support multiple instances
When there are multiple Synaptics touch ICs present, multiple
instances of driver need to run concurrently. This change is the
initial implementation of multiple driver's instances support.

Temporarily FW upgrade function is now lauched in probe only
for the first instance of driver and RMI device support ceased.

Change-Id: I59cc1521eee1679922fba77418fc111ff850f1cf
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1266638
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-11-09 17:56:42 -06:00
Konstantin Makariev
dcb042070c raydium_mmi: bound display concept
Touch now can be bound to display using device tree option. DRM
framework API provides display name to allow comparison. If touch
driver has bound display name specified, then probe will fail
whenever bound display name and name reported by DRM API do not
match.

Change-Id: I4b934efdbc38944faae36c49d093099d9ac50834
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1266671
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-11-09 17:56:25 -06:00
Kenny Kessler
cd70441d27 power: qpnp-smbcharger-mmi: Replace Battery Power Supply
Take control of the Power supply interface.
This will be done by creating a passthrough "battery" that
passes the properties from this driver to the qcom smb driver.
At first there wil be 2 properties that can be caught and replaced.
Status is needed to ensure the mmi algorithim hits FULL.
Capacity is needed in case of dual batteries where it will be
merged into a singular capacity.

Change-Id: Ib20bf6a574c0c74c01b0fc4a959f57706d3ab83f
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1266769
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-11-09 14:24:08 -06:00
Kenny Kessler
45be99336d power: qpnp-smbcharger-mmi: Fix Full Condition
Make sure to charge back if battery drops to 99%.
This was found beucase after charge FULL the Flip battery
still needed charge to balance voltage.  The Main battery
charged the Flip battery.  Then Main battery hits 99% but
because Flip was FULL it was blocked from restarting the
Charge controller.

Change-Id: I58d00acf963afeba1c3bf6bf7fbea98b293d4251
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1266305
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Curtis Porter <porterc@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-11-09 14:24:04 -06:00
Kenny Kessler
1831618342 power: qpnp-smbcharger-mmi: Flip Voltage Offset Change
The Flip Voltage will lag a bit more behind the Main Battery.
This is due to path impedance so adjust the Voltage offset to
consider a Taper condition.  For Flip only use twice the 50 mV
or 100 mV of Voltage offset.

Change-Id: I4e2be6ed57bd5e097b7d735af3b00d21fc1f9a4c
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1265427
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Curtis Porter <porterc@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-11-09 14:24:01 -06:00
yangjq
e1598e7929 aw869x: Reduce vibrator logs
Change pr_info to pr_debug to reduce those too many kernel logs.
Can still enable these logs by the following adb command:
echo "file aw869x.c +p" > /sys/kernel/debug/dynamic_debug/control

Change-Id: I3515457a5c9184022150688b76731363c24249c5
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1266935
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-11-09 09:10:11 -06:00
dengwei1
df7495ef11 channel: input fix touch issue
fix the touch issue
pick up the fix from odm

Change-Id: I76e80f2c3d46055bb592a72d2e05bee31d0e3296
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1266915
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2018-11-09 07:51:39 -06:00
haojl2
15e2fddd44 himax_mmi: fix point stack issue
This patch is released by Vendor.
Without this patch, stack point issue may happen.


Change-Id: I710a36021112dcdc9726e3171a8cbb552b7a4e3d
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1266527
Tested-by: Jira Key
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-11-08 07:21:20 -06:00
haojl2
59b557dcbb himax_mmi: fix enter esd revocery after resume
g_zero_event_count not clear after resume.
This will cause ESD recover triggered after resume device several times.

Change-Id: I79d4c0637763ee23544c0eff367a6eeec75cee19
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1266511
Tested-by: Jira Key
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-11-08 07:21:17 -06:00
haojl2
717c53ac09 input: ets_fps_mmi: Remove debuglog in user build
Only enable debug log in userdebug build.
If build user SW, remove those debug logs.

Change-Id: I2838ebc6bf34bf173bbf3f9367d15e8252247c73
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1266491
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-11-08 07:21:13 -06:00
caoyi1
008a5b639f ABOV sar sensor: report input event first boot time
-report input event the first time enable sensor
 -after boot up

Change-Id: I0d39630dc420a329fbac3c5dcda8833200b9bb0c
Signed-off-by: caoyi1 <caoyi1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1266384
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Lijun Chen <chenlj2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2018-11-08 01:14:39 -06:00
zhouwl
bcf3c95f50 ASoC: tfa987x: NXP volume control
Because this digital volume adjustment only has 21dB space,
it can't meet SOP-0289 requirements, remove this function,
let's use QCom codec digital gain for ramping tuning.

Change-Id: I90ecc9778bffe218704c71236223666e6af3d4cb
Signed-off-by: zhouwl <zhouwl@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1266429
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhihong Kang <kangzh@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2018-11-08 01:10:28 -06:00
liaohj
aa7f58c635 modules:taf987x:donnot send calib value for receiver.
- for receiver ,bypass smart pa, donnot send calib value to adsp ,

Change-Id: Iffce317be46c65921ab2d158e06f314637e9be9f
Signed-off-by: liaohj <liaohj@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1265703
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2018-11-07 04:13:04 -06:00
Weilong Wu
74b852a4c3 dlkm: optimize st21nfc driver
Change some logs and optimize the clkreq_gpio
operation for st21nfc driver.

Change-Id: I1b9b5cdfd711bb2b051d1997124e9211a3b50384
Signed-off-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1264033
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Balachandar Swami <balaswami@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2018-11-05 21:21:44 -06:00
Konstantin Makariev
e7dc63cfc0 sx933x: reduce kernel log foot print
Limit number of print messages in run time. If necessary, debug
messages can be truned on dynamically through kernel debug interface
echo "file sx933x.c +p" > /d/dynamic_debug/control

Change-Id: Ic317c4076540600f6838a0dae24ca3aaefcd5f6c
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1264922
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-11-05 16:10:55 -06:00
xuwt2
a9f24ec5ad haptics: awinic: add haptic context while flat-up
-1, add haptic context whild flat-up reduce the gain of vibration
-2, disable this feature when the bootmode is factory

Change-Id: I7c99cc9ffe257020176e51dd72f16da852315d36
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1263466
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
2018-11-05 02:52:08 -06:00
dengwei1
f07839f5a3 channel: input add ilitek touch fw proc file
input add ilitek touch fw proc file
to get the fw state.

Change-Id: I0b20c52930eca68ffabfe2100771f0d34437e48c
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1264419
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2018-11-05 01:09:07 -06:00
liugy11
de71b8b3c9 remove some logs of sx9331
remove some DEBUG level logs to INFO level
logs of sx9331

Change-Id: Icba07c38ee19d5b5125221aa0c5daf4cb274a116
Signed-off-by: liugy11 <liugy11@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1264209
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haichao Li <liuhc3@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2018-11-02 08:34:11 -05:00
wengjun1
e99e842bcf DLKM: Improve ili9881h touch driver
- Remove some unnecessary log.

Change-Id: Ie4c81d139f1fb56e04ebd5d01a7bf1b6dfaae6e6
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1257181
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2018-11-01 22:54:36 -05:00
xuwt2
1d6836e78e bq2597_mmi: replace PROP_STATUS with CHARGE_NOW_ERROR
the POWER_SUPPLY_PROP_STATUS only express charge status,
such as charging,discharging,not charging. and cannot be express
as Charge IC ERROR status.
use the POWER_SUPPLY_PROP_CHARGE_NOW_ERROE to express it

Change-Id: I319e41e903da33f1b052c3b856a0852c3b44c029
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1263621
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-11-01 22:16:14 -05:00
xuwt2
d537117733 mmi_pl_chg: replace PROP_STATUS with CHARGE_NOW_ERROR
In the bq2597x_mmi drive, the PROP_STATUS was replace with
CHARGE_NOW_ERROR, and the mmi_pl_chg_manager also replace it

Change-Id: Id9cdf2991f54717e2c4ed079b952b633d09efe46
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1263623
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-11-01 22:16:04 -05:00
huangys
8d70153b28 extcon-madera: remove headphone firstly on plug out
when the 4-pole headset unplug, APM will receive HEADSET remove event.
then HADPHONE insert and remove event. this cause unnecessary audo route
switch which lead music plyback stuck.

if we change order of madera_cable array, we may remove headphone firstly.
this can avoid this issue.

Change-Id: Icf1af827a3364384b5bc63a8d10dde3a88d38986
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1259458
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2018-11-01 06:05:05 -05:00
Konstantin Makariev
fa2e907f94 raydium_mmi: clean up reported events
Disable gesture associated with palm. Stop reporting button events.
Clean up suspend/resume to avoid sending empty frames.

Change-Id: I001cc6a0d894c42dd90e19e1a3b4810847dfbbc7
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1261534
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-10-31 10:25:47 -05:00
wunan3
9103601cf6 DLKM:optimise sar sensor remove function
-release related resource about sarsensor registered in probe
   -issue:DLKM // kernel panic when rmmod sx9311_sar module

Change-Id: I5d87494bdf4d1b29135abf6b345b3f7cbc28112f
Signed-off-by: wunan3 <wunan3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1261468
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2018-10-30 02:22:38 -05:00
Ryan Lattrel
0f97da9d0e muc_uart: wake on wake_irq and attach
Wake up the system from suspend with either the
wake_irq or the attach_irq.

Change-Id: Ia635fdbc24d0bcc138f7416cfa52740175ef126c
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1261634
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-10-29 16:59:48 -05:00
Ryan Lattrel
50883b3ebb muc_uart: update sleep timeout to 500ms
Change the sleep timeout period from 5s to 500ms.
Before the timeout occurs the driver blocks the transmission
of messages in the tx queue.

Change-Id: Ib35d28c6e0586b1216bbf5cdd769074b6f4629de
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1262209
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-10-29 16:59:46 -05:00
Ryan Lattrel
e6fb59eb84 muc_uart: dont throw out message on bad magic
Don't toss the entire message on a bad magic number.
If there is a bad value in front, look for a valid
magic number in the rest of the data, then throw out
the bytes before it.  This is to eliminate any
random bytes that might show up before a valid message.

Change-Id: I70c395de146d7368d0d2a6433be329b8d69b5729
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1258434
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-10-29 16:59:42 -05:00
Ravi Vembu
dab0198581 Revert "madera: Add ref clk for codec"
This reverts commit 987d71921e6d284257daff68be69375138ce3d56.
This is not needed anymore since the clk is always on 32K clk.

Change-Id: I7aedfd7d10d558ed1e780637f4b57dfdd3989faf
Mot-CRs-Fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1262244
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Jira Key
2018-10-29 16:10:37 -05:00
dengwei1
d688eb234b channel input update ilitek touch firmware block number.
update ilitek touch firmware block number
as vendor suggested

Change-Id: I1a30717b60714b36467589a80a1f2fc7f466ba70
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1261966
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2018-10-29 04:30:11 -05:00
haojl2
ff7e3e1513 input: ets_fps_mmi: Add navigation support.
Add vertical direction navigation.
This is needed if screen in landscape mode

Change-Id: I68e4fd262575e0f4741a9d3f3beaad99a9ee163c
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1248736
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-10-28 21:17:11 -05:00
Kenny Kessler
6aa80ba895 power: qpnp-smbcharger-mmi: Disable JEITA
Ensure the the SW JEITA is disabled in QCOM driver.

Also forcibly Disable the HW JEITA since the QCOM driver
will enable it when the SW JEITA is disabled.  The MMI
State Machine in this driver is superior.

Change-Id: Idfe42c08f720990a5edfd6cfb01491a89f5cf524
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1261048
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Curtis Porter <porterc@motorola.com>
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-10-26 11:16:08 -05:00
Kenny Kessler
bc05412b1f muc_uart: Add VBUS Flag
Check the VOLTAGE_NOW property and if it is above 2 V
send back to MUC that VBUS is present.  This is needed
mostly for Factory test but might come in hPerry later on.

Change-Id: I16688520611e6087fb04a7cf8006db71496ec519
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1259770
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Sridhar Vashist <svashist@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-10-25 10:38:28 -05:00
haojl2
f55a8f0f0b himax_mmi: reset IC if get ESD event
If ESD occor, touch IC crashed.
Reset IC by trigger HW reset pin

Change-Id: I16e834d8f45e460405468dfe9f4d50cfb40f07e8
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1260812
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-10-25 06:29:48 -05:00
Weilong Wu
20aa119f30 dlkm: change the st21nfc driver path
Move st21nfc driver to directory st21nfc.
Suggest to creat independent directory for each nfc vendor.

Change-Id: I416aca0662189f3b045b1d28ad80df53ce6beb7b
Signed-off-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1260591
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2018-10-24 22:03:27 -05:00