Commit graph

380 commits

Author SHA1 Message Date
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
xizx
08fe691b6a utags:change the proc utag dir node permission
dac avc error on "echo 1 > proc/hw/reload" in the init.oem.hw.sh
audit: type=1400 audit(3738101.426:12): avc:  denied  { dac_override } for  pid=495 comm="init.oem.hw.sh" uid=0 capability=1  scontext=u:r:init_hw:s0 tcontext=u:r:init_hw:s0 tclass=capability permissive=0

dac avc error on "echo 1 > proc/config/.reboot/ascii" in the init.oem.hw.sh
[   13.771240] init.oem.hw.sh: reset reboot counter
[   13.775002] type=1400 audit(1536562770.017:341): avc: denied { dac_override } for pid=1140 comm="init.oem.hw.sh" uid=0 capability=1 scontext=u:r:init_hw:s0 tcontext=u:r:init_hw:s0 tclass=capability permissive=0

Change-Id: I9392366183b32b260f0792ab3e7293ca55f9bcc1
Signed-off-by: xizx <xizx@motorola.com>
Reviewed-on: https://gerrit.mot.com/1239642
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-10 17:18:12 -05:00
Konstantin Makariev
4a8d7928a8 synaptics_mmi: panel API with probe status
Change-Id: I94c7cbc0de9f7c3d1bdbd4f82e873c29345b366d
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1239579
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-07 18:03:16 -05:00
Konstantin Makariev
ae1c786b2e raydium_mmi: support DRM signaling
This change adds support for DRM signaling of touch IC probe and
suspend/resume

Change-Id: I8a237216c492ed79b259314b064f9bb4281272e1
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1239530
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-07 18:03:08 -05:00
xuwt2
5fae1f06aa power: adjust 27w charge policy, optimize charge performance
-1, For the float voltage, add compensation voltage.
-2, add compensation current during the supper charging step.

Change-Id: I78079231e0b9fcb3079de2cc39406eb22ff8e2ce
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1239054
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-09-07 02:17:41 -05:00
Dharmeshkumar Patel
a840de95fa Restore "(CR): mmi_muc_uart: set gpio 35 and 59" This is to fix issue caused in daily #47"
This reverts commit c2c9659e5ff889f5a390fae5b0fdd6b4683336db.

Change-Id: I9f43e2c4f172dc3c2af8bf3e02326b53dcd2f455
Reviewed-on: https://gerrit.mot.com/1239005
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
2018-09-07 00:16:43 -05:00
Konstantin Makariev
7f8309a7f2 synaptics_mmi: use panel enable API
DRM not sending unblank notification when splash screen enabled.
This commit makes delays IC init until panel status reported as
enabled. This behavior is controlled by device tree option
synaptics,splash-screen-mode

Change-Id: I70dc846ee2914fdb592feddf27c3ad313f2955aa
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1229386
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-06 16:38:26 -05:00
Konstantin Makariev
9278264b01 raydium_mmi: make module successfully loadable
This commit makes necessary changes to allow successfully
insmod/rmmod raydium_mmi DLKM. Includes support for in-cell mode

Change-Id: I2e34c4dd87f38975b999e0cc65287b57270f1b5f
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1232896
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-06 16:38:21 -05:00
Vlad Karpovich
672d95c8cf ASoC: cs35l41: Change master clock rate if using SCLK
This is a port of following cs35l36 change:
From: Paul Handrigan <Paul.Handrigan@cirrus.com>
Date: Mon, 12 Feb 2018 13:51:32 -0600
Subject: [PATCH] ASoC: cs35l36: Change master clock rate if using SCLK
If the device is using SCLK for the master clock, it is
possible for the SCLK rate to change if the master changes
the format, sample rate, and number of channels. This patch
will calculate the from those parameters if using SCLK.

Mot-CRs-fixed: (CR): River: AoU bringup on Marley+Prince
Change-Id: I6815a075884ded0ebd352fed14259b575ade51ef
Signed-off-by: Vlad Karpovich <Vlad.Karpovich@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1220283
Tested-by: Jira Key
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-06 16:35:12 -05:00
Paul Handrigan
f432b989c4 ASoC: cs35l41: Add boost converter control
Add boost converter control to either enable it or
set it in bypass mode.

Mot-CRs-fixed: (CR): River: AoU bringup on Marley+Prince
Change-Id: I3736b1d68bdd21421e23f6a790f0eeae99f2e3c7
Signed-off-by: Paul Handrigan <Paul.Handrigan@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1238851
Tested-by: Jira Key
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-06 16:35:10 -05:00
Paul Handrigan
da0b8a2915 ASoC: cs35l41: Change OTP trim registers to volatile
Change the OTP trim registers to volatile so they the
driver will always read the registers from the device.

Mot-CRs-fixed: (CR): River: AoU bringup on Marley+Prince
Change-Id: If7eae9910483ac95030ddd98ceb35423c8babfaf
Signed-off-by: Paul Handrigan <Paul.Handrigan@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1238850
Tested-by: Jira Key
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-06 16:35:07 -05:00
Paul Handrigan
023a74d64a ASoC: cs35l41: Change devid register to be volatile
Change the devid register to be volatile since cannot be
read from cache.

Mot-CRs-fixed: (CR): River: AoU bringup on Marley+Prince
Change-Id: Id8c15245ef71df4f0e12afd9997babe92813aa1a
Signed-off-by: Paul Handrigan <Paul.Handrigan@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1238849
Tested-by: Jira Key
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-06 16:35:04 -05:00
Adam Brickman
cd72ed7a2a ASoC: cs35l41: Rev B0 register defaults
* Fix register defaults that changed with chip revision B0.

* regmap_register_patch() has a bug which will cause register writes
to be delivered to the chip, but NOT the regcache. This can cause the
regcache to become out of sync with the actual state of the registers.
Changed the usage of this function to regmap_multi_reg_write() to
avoid this problem.

SQA-860

Mot-CRs-fixed: (CR): River: AoU bringup on Marley+Prince
Change-Id: I512cffd656fdf942b7fcafc2a0473a7449cf2547
Signed-off-by: Adam Brickman <Adam.Brickman@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1238848
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
SLTApproved: Slta Waiver
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-06 16:35:01 -05:00
Li Xu
5ec000c5dc ASoC: cs35l41: Implement support for dynamic DMA
Implement support for dynamically allocating DMA buffer
in CSPL firmware for firmware.

SQA-1029

Mot-CRs-fixed: (CR): River: AoU bringup on Marley+Prince
Change-Id: I0ff90e85e96ff5029e276f00e82f0503913fb9f1
Signed-off-by: Li Xu <li.xu@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1238847
Tested-by: Jira Key
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-06 16:34:58 -05:00
Li Xu
0c614b6196 ASoC: cs35l41: Remove CSPL_COMMAND from header file
Remove CSPL_COMMAND from header file,
because CSPL_COMMAND should not be called from driver.

SQA-1029

Mot-CRs-fixed: (CR): River: AoU bringup on Marley+Prince
Change-Id: I5e2d386aac05cd6a3765c3849239513306a6d9a9
Signed-off-by: Li Xu <li.xu@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1238846
Tested-by: Jira Key
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-06 16:34:55 -05:00
Li Xu
1c0a68cd89 ASoC: cs35l41: Implemented managed low-power transition
Implemented managed low-power transition
to nicely change firmware state when powering down and up.

More details at:

https://docs.cirrus.com/display/PRNC/Managed+transition+to+low+power+mode

SQA-1029

Mot-CRs-fixed: (CR): River: AoU bringup on Marley+Prince
Change-Id: I84ed2e788abac6c2e3ffb676ac7194abb4693fc5
Signed-off-by: Li Xu <li.xu@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1238845
Tested-by: Jira Key
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-06 16:34:52 -05:00
Li Xu
225c258621 ASoC: cs35l41: Remove useless register write
Remove useless register write.
The register writes are ignored by firmware.

SQA-1029

Mot-CRs-fixed: (CR): River: AoU bringup on Marley+Prince
Change-Id: I9c18c3ec095140d3ec3c4535fc83c982f5f5d5c4
Signed-off-by: Li Xu <li.xu@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1238844
Tested-by: Jira Key
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-06 16:34:48 -05:00
vkarp
ea40ea0ace Revert "ASoC: cs35l41: Specify CSPL_CMD address"
This reverts commit dedc905d09d87794b2d5040e1ae8c82f75e1ab9b.
Mot-CRs-fixed: (CR): River: AoU bringup on Marley+Prince
Change-Id: Ia7a8ae1bd6d8dfc483ecbc19ed0e984c515fb7f9
Reviewed-on: https://gerrit.mot.com/1238843
Tested-by: Jira Key
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-06 16:34:44 -05:00
Kaio Karam Galvao
c4b60083bd Add CCI debug tool as DLKM
Port CCI debug tool code to a dynamic loadable
kernel module.

Change-Id: Ia77903c637456322a7f9531b05d93c47ab3a16a8
Reviewed-on: https://gerrit.mot.com/1236349
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Reviewed-by: Sumit Jamadar <xkbr38@motorola.com>
Submit-Approved: Jira Key
2018-09-06 11:39:14 -05:00
Dharmeshkumar Patel
ccde239e71 Revert "(CR): mmi_muc_uart: set gpio 35 and 59"
This is to fix issue caused in daily #47

This reverts commit cdd5543e7c24f7240aac278aad549789843eab44.

Change-Id: I3d35a3d8a2b1e909bd83128280d02180eb91390f
Reviewed-on: https://gerrit.mot.com/1238352
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Sanjay Dhar <sanjaydhar@motorola.com>
SME-Granted: Sanjay Dhar <sanjaydhar@motorola.com>
Submit-Approved: Sanjay Dhar <sanjaydhar@motorola.com>
2018-09-05 20:17:02 -05:00
Pratik Kamdar
1f5630eba7 ASoC: wm_adsp: Add support for old DTS config
Use old device tree configuration for DSP if wlf,wmfw-file tag
is present.

Change-Id: I1168edd2ea66eadcdef013fb01b40810bb1860fa
Signed-off-by: Prat(CR) Kamdar <djc637@motorola.com>
Reviewed-on: https://gerrit.mot.com/1238183
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-05 12:34:11 -05:00
wengjun1
afe045cddc DLKM: Improve focaltech touch driver
- Prevent potential risk that the touch has been updated
successful but display initial code isn't written fully which
will cause display can't work on ft8006u.

Change-Id: I0dd8232a79fb1ced88deb748f656a195d97908ac
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1232123
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2018-09-05 03:18:17 -05:00