Commit graph

401 commits

Author SHA1 Message Date
xuwt2
c0f0e1e1ca power: bq2597x: free irq and gpio resource when rmmod
-1,free irq resource when remove this module
-2,free gpio resoure when remove this module
-3,free regulator resource when remove this module

Change-Id: I38b2e86498eb3c5d4fb68cbed5d057b2637a599c
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1254130
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-12 03:58:22 -05:00
xuwt2
a6a71c1ebd mmi_pl_manager: support dynamic balance power with pps
-1, use circle array to record pps result for detecting some unstable
chargers.
-2, use the software algorithm to dynamic balance pps charger power.
once this charger can't balance power by itself

Change-Id: Ic30125ab6601b26d9da05617e9b0bbd81a02538f
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1254186
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-10-12 03:58:11 -05:00
gongsc1
9989da4a10 Add some sysfs for power and volume keys test
The keys of olson are haptic, so key test need to add
some vibration sysfs nodes for test.

Change-Id: I687b0c70d465eae26161c1592c2166b909b7c9cd
Reviewed-on: https://gerrit.mot.com/1246114
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-11 08:24:06 -05:00
xuwt2
50429d1e4c mmi_pl_chg_manager: support charging limit under factory sw
Factory SW support to disable battery charging once the capacity larger
than 75%, and re-enable charging when the capacity lower than 60%.
the mmi_pl_chg_manager is the manager of parallel charging,
when the main charging path was disable by factory sw policy,
and the slave charging path was also to be disable.

Change-Id: If3b5b978aa47900e11a3abc15ffcfefd1a5dec20
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1254012
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-10-11 04:18:38 -05:00
Ryan Lattrel
c888a8ef52 mmi_muc_uart: clean up logging
Increase the time to wait for an ack from the muc.
Number of credits appears to remain at 100 with
timeout increase, where before it would lose a
couple on each boot.

Add IPC logging to prevent the muc_uart driver from
spamming the console. Remove timing messages, as
they are no longer useful.

Change-Id: I03b485905482bb25feddd23207db96bbea240920
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1250793
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-10 11:20:01 -05:00
Jiyue Cui
6749966631 Revert "add DLKM capsense sx933x for lake"
something worng in sx933x_sar DLKM ko
need revert this befor fixed the error

This reverts commit fe4ce396d7c7029467e08e83c90fe58a61ff5314.

Change-Id: Iad3ff050a58ec04f7b61b2efe6e6d1851c3cda1c
Reviewed-on: https://gerrit.mot.com/1248677
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guoyue Liu <liugy11@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2018-10-10 05:23:32 -05:00
wengjun1
8af782013d DLKM: Improve ili9881h touch driver
- Release all touch points when suspend.

Change-Id: I84b4af0dab62e25ece17eeca9fda5d3ac06fae4c
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1253138
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2018-10-10 02:38:06 -05:00
Li Xu
ae431b8af0 ASoC: cs35l41: Add out of bound check for mixer
Program such as nanomix allows out of bound input
to mixer, which may crash kernel.

This issue is found by Google test (LENOVO-848).

Add out of bound check for mixer to prevent
kernel crash.

Mot-Crs-fixed:(CR)

Change-Id: I4c0437cfd2d2570a9c9489db500cffc513f27c43
Signed-off-by: Li Xu <li.xu@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1253050
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1253083
2018-10-10 00:47:29 -05:00
Li Xu
e5e452b839 ASoC: cs35l41: Make OTP memory precious
Make OTP memory precious.
OTP memory should not be read while DSP firmware is running,
according to Design Team (XIAM-55).
By changing to precious, OTP memory can only be read by
driver, but not by debug sys file system.

Mot-Crs-fixed:(CR)

Change-Id: Ie394373cb73bc443a1f1fc97e9b626c997d8a4fa
Signed-off-by: Li Xu <li.xu@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1253049
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1253079
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Reviewed-by: Yuesheng Huang <huangys@motorola.com>
2018-10-10 00:47:23 -05:00
Li Xu
c9b322018c ASoC: cs35l41: Make temperature result reg volatile
Make temperature result register volatile,
so updated results can be read by driver.

Mot-Crs-fixed:(CR)

Change-Id: Ife5f92fa76419af3d3908b4591b654952e3208d5
Signed-off-by: Li Xu <li.xu@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1253048
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1253078
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Reviewed-by: Yuesheng Huang <huangys@motorola.com>
2018-10-10 00:47:17 -05:00
Adam Brickman
7c64e606ae ASoC: cs35l41: Use same frame sync for ASP RX/TX
Distortion can occur if the RX and TX paths do not use the same
frame sync signal.  This forces the FS1 and FS2 signals to
use the same frame sync signal and also ensures common sample
rates between the RX and TX paths.

SQA-1135

Mot-Crs-fixed:(CR)

Change-Id: Id7f1dbbcca6247f0ad22b631fc6d499fc7e9827b
Signed-off-by: Adam Brickman <Adam.Brickman@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1253047
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1253077
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Reviewed-by: Yuesheng Huang <huangys@motorola.com>
2018-10-10 00:47:13 -05:00
David Rhodes
56f9ee3a80 ASoC: cs35l41: Make Stream Arbiter highest priority
Workaround for race conditions due to
shutdown sequence.

Mot-Crs-fixed:(CR)

Change-Id: I306ddd7a0fb39302132d134e67ee8b5b0a900e40
Signed-off-by: David Rhodes <david.rhodes@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1253046
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1253076
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Reviewed-by: Yuesheng Huang <huangys@motorola.com>
2018-10-10 00:45:59 -05:00
Li Xu
4223359397 ASoC: cs35l41: Add slot selection for DSP A mode
Add mixer control for selecting audio slot in DSP A
audio stream.

SQA-1109

Mot-Crs-fixed:(CR)

Change-Id: I523d2a5a17dd1950fb8476e5a98fbb5208d164b5
Signed-off-by: Li Xu <li.xu@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1253045
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1253075
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
2018-10-10 00:45:39 -05:00
Li Xu
cc135373aa ASoC: cs35l41: Rename TDM to DSP A mode
cs35l41 supports both DSP A and TDM 1.5 modes.
To distinguish between the 2 modes, rename TDM to DSP A mode,
which is currently used by driver.

SQA-1109

Mot-Crs-fixed:(CR)

Change-Id: I0636c067ec1845a1180e40891c08d9818f7f7b08
Signed-off-by: Li Xu <li.xu@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1253044
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1253074
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Reviewed-by: Yuesheng Huang <huangys@motorola.com>
2018-10-10 00:45:17 -05:00
huangys
9936a27a1f Revert "(CR): ASoC: cs35l41: check cspl cmd input value"
This reverts commit 5d73b1617d2335a1e27f5f66d13547978665e1ea.

Mot-Crs-fixed: (CR)

Change-Id: I3626c44b9bb75adeb67f62cd673c0f2765463c2f
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1253082
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2018-10-10 00:44:33 -05:00
dengwei1
46d7631628 channel: input add ilitek touch support
as ilitek vendor suggested, here we extend the g_flash_block_info to 6.
and this will compatible the other products.

Change-Id: Ic33de3d3f32b43a7ee9f5f80c1070d93bf7d44ab
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1253027
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-09 21:29:45 -05:00
Weilong Wu
3bf0f70f32 DLKM: fix drv2624 vibrate for too long issue.
Vibrator HAL will set activate as 1 after set the duration.
If we cancle the hrtimer, it will cause vibrator can't stop as the expected time
until vibrator HAL turn off the vibrator.

Change-Id: I2d5635c766ef0b30d14170c1dd82a25d6c2481aa
Signed-off-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1251886
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-10-09 04:25:20 -05:00
haojl2
0b2b44e095 himax_mmi: fix rmmod cause crash issue
1. Disable and free irq when rmmod.
2. Remove proc dir after all entries removed.

Change-Id: Ie06eac3537ca703acbb52393d4d9ce63ae1bd9d3
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1252558
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-10-09 02:54:37 -05:00
Kenny Kessler
d9939227e2 power: qpnp-smbcharger-mmi: Add Reverse Boost Fix
When Charger is removed the Switcher can reverse boost back
out the USB port.  Add a check for voltage on the USB port
so that this state can be cleared.

Change-Id: Ib20d8d91a08d1f40ce5ba3bc3ec41ffa8e930c85
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1250814
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Curtis Porter <porterc@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-10-04 14:16:58 -05:00
Ravi Vembu
7877ed440c extcon-madera: Export Headset Detection GPIOs
Needed for Factory Test. Exported GPIOs can be found under
/sys/class/extcon/extcon4/

Change-Id: Ibb22fa2ad66a36715908ae2ce6d19733122af4f1
Signed-off-by: Ravi Vembu <raviv@motorola.com>

Mot-CRs-Fixed: (CR)
Change-Id: Ibb22fa2ad66a36715908ae2ce6d19733122af4f1
Reviewed-on: https://gerrit.mot.com/1250211
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-03 13:27:24 -05:00
chenl18
0755fead74 FPC: fixed the issue for rmmod and insmod
Free irq and gpio when rmmod.

Change-Id: I791a342da0e1449021a37c6ab5ec5d786855e908
Signed-off-by: chenl18 <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1248316
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2018-09-28 21:47:04 -05:00
Wen Xie
c50762fa4c DLKM:optimise drv2624 remove function
-release related resource about vibtator registered in probe
-issue:DLKM // kernel panic when rmmod drv2624 module

Change-Id: Icbd222c3f7bff00dd87be366ca2cb00eb8546ad6
Signed-off-by: Wen Xie <xiewen3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1246599
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2018-09-28 00:33:07 -05:00
yanyh2
fe2395f620 fix bq25997x power supply access issue
After bq25997x is removed, mmi_pl_charger driver will still
access bq25997x power supply pointer, which will cause panic.

To avoid this situation, get the power supply before use it
at any time.

Change-Id: Ia1672fc458dce3c86647b8e31c57ac283b910fa2
Signed-off-by: yanyh2 <yanyh2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1247691
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-09-27 21:42:51 -05:00
chenlj2
d149d0b6d2 DLKM:optimise sar sensor remove function
-release related resource about sarsensor registered in probe
-issue:DLKM // kernel panic when rmmod sx932x_sar or abov_sar module

Change-Id: Ib8da9744eab96c253f224232e111488ca2c93445
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1247406
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2018-09-27 02:31:51 -05:00
yangjq
36d842cd14 aw869x: Add debug code for vibrating fail issue
As for the vibrating fail issue is difficult to reproduce, add debug
codes from awinic to find more if it's reproduced by user.

Change-Id: I588875a1baa201fb2088f0fdc0ac4dc27e0537a7
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1247441
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-09-26 23:37:20 -05:00
Richard Fitzgerald
0d5396122a ASoC: madera: Use autodisable muxes
SoC now supports autodisable muxes so we can use these instead
of the handcrafted version inherited from older kernels.

Mot-Crs-fixed: (CR)

Change-Id: Idbd97fbc9d99a2b18e8ca6b14f20bf20b29b4c05
Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Reviewed-on: https://gerrit.mot.com/1246554
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
(cherry picked from commit 6a4aa23a4a72bacab39fd23749937683ca6db2a9)
Reviewed-on: https://gerrit.mot.com/1246647
2018-09-26 05:39:11 -05:00
huangys
490ffc29b2 ASoC: cs35l41: check cspl cmd input value
fix the below panic caused by google security test

<6>[   50.569557,4] [<ffffff800f8020cc>] cs35l41_cspl_cmd_put+0x3c/0x50 [cirrus_cs35l41]
<6>[   50.569571,4] [<ffffff8013dc43d4>] snd_ctl_elem_write+0x160/0x1c0
<6>[   50.569584,4] [<ffffff8013dc5b64>] snd_ctl_ioctl+0x114/0xa78
<6>[   50.569600,4] [<ffffff8013278b9c>] do_vfs_ioctl+0xd0/0xdb4
<6>[   50.569613,4] [<ffffff8013279910>] SyS_ioctl+0x90/0xa4
<6>[   50.569628,4] [<ffffff8013084380>] el0_svc_naked+0x34/0x38
<0>[   50.569644,4] Code: b9404823 f9400c81 f9400c42 f9405c21 (b8635842)

Change-Id: Ia69a5a6a8df1d47ad1e00559bbcc8Montana2cba47eb
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1246646
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2018-09-26 05:39:07 -05:00
haojl2
3f8f4acdca himax_mmi: Fix tracking ID -1 missed issue.
pre_finger_mask is overwritten to 0 when all finger leave.
So input_mt_report_slot_state will not called in himax_finger_leave func
Use old_finger instead.

Change-Id: Ic2db89273ea8fd91e88d1ce0dd9774f6b276d051
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1246456
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-09-25 23:26:53 -05:00
wunan3
6713bcc1e8 sx9311/sx9325:New log requirement for SAR sensor
WHY:Need print value of CS3
HOW:Add debug channel number

Change-Id: Icedda92edaad8a826094d5d638b3b988c5b9b513
Signed-off-by: wunan3 <wunan3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1246425
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2018-09-25 21:57:33 -05:00
dengwei1
5147d1ce01 channel input: add nova touch support rmmod
add nova touch support rmmod
rmmod and insmod work well

Change-Id: I36b43461fd584bcee1e191db256ec89c1ffe6fba
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1245946
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2018-09-24 23:40:20 -05:00
Kenny Kessler
a5c3849026 mmi_muc_uart: Send DCIN Status
Get the DC Power Supply and then check the PSY
for POWER_SUPPLY_PROP_PRESENT.  This will signal
to the MUC that the AP is seeing DCIN.

Change-Id: I9048b6f935af68783c927bdc6c420e929857b50e
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1245816
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-09-24 14:23:19 -05:00
cuijy2
0779e5be68 add DLKM capsense sx933x for lake
put sensor_class.ko and sx933x_sar.ko to TARGET_OUT_VENDOR
default will put in system

Change-Id: If5e8d483f8f78137f4caa60d7e49a2dedb1800d3
Signed-off-by: cuijy2 <cuijy1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1245176
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guoyue Liu <liugy11@motorola.com>
Reviewed-by: Master Yoda
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2018-09-21 05:43:05 -05:00
xuwt2
9a7380886d power: mmi_pl_chg_manager: uninstall driver module
change the remove func of mmi_pl_chg_manager that fixed the panic
issue when uninstall mmi_pl_chg_manager driver

Change-Id: Ifbac5fadfef8e6e6dbdf4e11a892c27ac7b4cc71
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1245080
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Master Yoda
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-09-21 03:29:09 -05:00
haojl2
5f1f249798 nova_mmi: skip IC reset for NT36672A
NT36672A TP core is reset with LCD.
Do not need reset again.
Skip reset to shorten resume time.

Change-Id: Id30776988fb9f0fa339110b4c36aef50e8f43130
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1244309
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Master Yoda
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-09-20 05:07:13 -05:00
xuwt2
1b715bf4bc power: adjust 27w charge polisy, optimize charging curve
Add new flag enter_sw_loop to ensure enter switch charge loop after
quit bq2597x charging.
To prevent unstable switch between the parallel charging and pmic
charging.

Change-Id: I24e7ea365eb2a2f3b30eaeab351f0282c544adb8
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1244541
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Master Yoda
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-09-20 04:34:22 -05:00
wunan3
d588dee2ab sx9325:New implement on calibration
WHY:Initial value of 0x11 need to be changed and sleep for 1000ms
HOW:Change with new implementation

Change-Id: I6de5a138b78400c47cb1b99e9eca65ddc7448c1d
Signed-off-by: wunan3 <wunan3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1244373
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Master Yoda
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2018-09-20 03:07:19 -05:00
wunan3
c6e911bb69 abov_sar: support abov for channel
WHY:Current not support abov
HOW:To support abov

Change-Id: I5b7c7d934689fe79c6d8915973f987406aa8ab57
Signed-off-by: wunan3 <wunan3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1241856
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Master Yoda
Reviewed-by: Lijun Chen <chenlj2@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2018-09-20 03:04:40 -05:00
chenlj2
c71d9ccedf Sar sensor:modify GPL version
-solve Capsensor insmod fail issue
disagrees about version of symbol sensors_classdev_register
disagrees about version of symbol sensors_classdev_unregister

Change-Id: I1785ccb317a24e04fc23f3a091844f05f00c13dc
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1244372
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Master Yoda
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Yi Cao <caoyi1@motorola.com>
Reviewed-by: Nan Wu <wunan3@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2018-09-20 02:10:10 -05:00
haojl2
39fbdf7ede input: ets_fps_mmi: add some log to trace irq issue
Change-Id: I1170e19f4eda466d1f995632e213465fb7adfe04
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1242928
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Master Yoda
Reviewed-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-by: Nagesh Narayanachar <nnagesh@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-09-19 02:14:03 -05:00
Konstantin Makariev
d5a8697f1c utags: add one null byte in the end of payload
This is propagation of the patch submitted under (CR)
into DLKM utags driver

Change-Id: Ia0321e9560f0afddd19f31326008da0714304afa
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1243363
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Master Yoda
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-18 17:47:51 -05:00
Li Xu
f8c0af92e1 (CR) ASoC: cs35l41: Increase DSP mail box timeout
Increase DSP mail box timeout amount to allow
for slow I2C.

PROPAGATED_from: (CR)
Cirrus-JIRA-fixed: MMI-893

Change-Id: I0ece43a7216957a337d56a789e2626df4904de9d
Signed-off-by: Li Xu <li.xu@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1237516
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1241755
Reviewed-by: Master Yoda
Reviewed-by: Yunfeng Pan <panyf1@motorola.com>
Reviewed-by: Yuesheng Huang <huangys@motorola.com>
2018-09-15 23:08:52 -05:00
Yoon (Seungyoon) Lee
3b8f1b98f0 Revert "cs35l41: workaround for fixing speaker low volume issue"
We will integrate MBOX compatible Prince DSP Protection FW to v5.03.06 in
same JIRA to address the issue correctly, therefore we need MBOX controls.

(This reverts commit 87587195db832a6a1156e0c613fdd4a2718fad39.)

MOT-CR-Fixed: (CR)
Change-Id: I231464519a347126d965d1b844e76a97fa197480
Signed-off-by: Yoon (Seungyoon) Lee <w22905@motorola.com>
Reviewed-on: https://gerrit.mot.com/1241770
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Master Yoda
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Reviewed-by: Yunfeng Pan <panyf1@motorola.com>
Reviewed-by: Yuesheng Huang <huangys@motorola.com>
Submit-Approved: Jira Key
2018-09-15 23:08:15 -05:00
Ryan Lattrel
9b887b876c mmi_muc_uart: switch from tty to char dev
Switch from a tty interface to a char device
so that we can implement message based reads
instead of a stream.

Change-Id: I23e7cb9bedcb51d857c3159b64b81f30574c132d
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1238344
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Master Yoda
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-09-13 11:02:15 -05:00
zhouwl
1d1e2644b5 ASoC: tfa987x: add volume control command
TFA9871/74 doesnt provide a linear digital volume control, it has 2 levels,
the first is I2S Input Level(INPLEV) in Register 02H,it can be set 6dB or
0dB(default). The second is I2S gain attenuation(TDMSPKG) in Register 61H,
it's the gain of the Class-D output can be amplified btw +6dB and +21dB,
contains 16 steps.

Change-Id: I64f0426cac3829b0419c2e52358b043e749f2625
Signed-off-by: zhouwl <zhouwl@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1237458
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2018-09-12 21:40:58 -05:00
Konstantin Makariev
258117e237 synaptics_mmi: bare board support
With DRM signaling, on bare board level a dummy primary panel still
exist and thus probe and enable status reported. This patch is
adding panel name comparison to distinguish dummy and real panels.
Driver will not be doing HW init if it detects a dummy panel.

Change-Id: I347c53ed481a9b4c0d35668118d0ab9e56af5105
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1240533
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Master Yoda
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-12 15:03:24 -05:00
Konstantin Makariev
4a444f3fe4 raydium_mmi: panel name parameter added
DRM signaling API now requires an extra parameter

Change-Id: I8b6dad75260ef25679554231cf0f863a27f61e20
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1241248
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Master Yoda
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-12 15:03:19 -05:00
yangjq
242ee480c8 aw869x: Support different rtp files playing
Play different rtp files for different ringtone music.

Change-Id: Id3bf01b057fc404183351e6a1cb646675d023436
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1241110
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Master Yoda
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2018-09-12 08:21:32 -05:00
huangys
9830e98ff4 cs35l41: workaround for fixing speaker low volume issue
- once cirrus new 96k firmware is ready, revert this
- not sending mailbox command to firmware, instead of mute/unmute command

Mot-CRs-fixed: (CR) (CR)

Change-Id: I22b6d368499edd99da5238f0e7393eb8d5c79fcc
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1241093
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Master Yoda
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2018-09-12 07:20:54 -05:00
wunan3
86c7f835b1 sx9311/sx9325: New log structure for SAR sensor
Make the log info can be configable and printf the info which vendor needed

Change-Id: I1df779d7bd2092c441644fc868ceb7bc0e67dd60
Signed-off-by: wunan3 <wunan3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1241013
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Master Yoda
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2018-09-12 05:03:21 -05:00
Kenny Kessler
9ca6564ee7 input: misc: Add qpnp-power-on-mmi
MMI version of qpnp-power-on that uses KPDPWR Bark.

Works with qpnp-power-on so there is no need to disable
its config in the base kernel.

Change-Id: Ied2d04db1ec1687a5cf37be7ef908ad1382d14d9
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1240652
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dong-Hua Yan <a18317@motorola.com>
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-09-11 12:08:37 -05:00