GitHub/MotorolaMobilityLLC/kernel-slsi.git
3 years agoasoc:add support for in-call music
yaozm1 [Thu, 21 Feb 2019 09:15:57 +0000 (17:15 +0800)]
asoc:add support for in-call music

This is a patch from samsung.
Part2 of the kernel change.

Change-Id: I00307845e62cc990a9869339c95dde36fef80b64
Signed-off-by: yaozm1 <yaozm1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1312481
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agoarm/dts:Add support for in-call music play
yaozm1 [Thu, 21 Feb 2019 09:09:49 +0000 (17:09 +0800)]
arm/dts:Add support for in-call music play

This is a patch from Samsung.
Part1 for kernel change.

Change-Id: I9a7c09f1255d7f5ef1fa1de590136ab21e2cea2a
Signed-off-by: yaozm1 <yaozm1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1312480
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years ago[9610][Robusta2] dtsi: camera: set internal vc offset
Wooyeon Kim [Mon, 18 Feb 2019 11:09:59 +0000 (20:09 +0900)]
[9610][Robusta2] dtsi: camera: set internal vc offset

 - buffer that related PDAF offset set to "1"

 PR JIRA ID: CPR-710

Change-Id: I85051838da238cd29d7fedcbc10611fbcfb4239f
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
3 years agoRevert "[COMMON] fimc-is2: add condition for flash S2MU106 initilize"
Wooyeon Kim [Tue, 19 Feb 2019 01:27:53 +0000 (10:27 +0900)]
Revert "[COMMON] fimc-is2: add condition for flash S2MU106 initilize"

This reverts commit 5e90c9d1b43945abac556eae216bfed8fccf57b5.

 PR JIRA ID: CPR-709

Change-Id: I630b6ad8482142a49068a7877be048685a609cd3
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
3 years ago[9610] fimc-is2: remove unpair release_lock at gm1sp cis
Dohyun Kim [Thu, 14 Feb 2019 08:12:49 +0000 (17:12 +0900)]
[9610] fimc-is2: remove unpair release_lock at gm1sp cis

PR JIRA ID: CPR-702

Change-Id: I9a7dde4d82c770e5fb0e91f9cd73e69cdf7bcb94
Signed-off-by: Dohyun Kim <dh5.kim@samsung.com>
3 years ago[9610] arm64: dtsi: Fix fimc_is_sensor2 use only dma2 ch
Dohyun Kim [Mon, 18 Feb 2019 05:55:51 +0000 (14:55 +0900)]
[9610] arm64: dtsi: Fix fimc_is_sensor2 use only dma2 ch

PR JIRA ID: CPR-708

Change-Id: I50ef46c56e331b03652f0d6e9c2e92e23d6abec8
Signed-off-by: Dohyun Kim <dh5.kim@samsung.com>
3 years agorebase samsung Feb17
lingsen1 [Wed, 20 Feb 2019 07:48:38 +0000 (15:48 +0800)]
rebase samsung Feb17

Change-Id: I2a5f51a96460020c0c22fe74f3b3da3496f34207
Reviewed-on: https://gerrit.mot.com/1311648
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Lu Lu <lulu2@lenovo.com>
Reviewed-by: Guolin Wang <wanggl3@lenovo.com>
3 years agotro(CR): defconfig: change platform configs for tro(CR)
sunyue5 [Wed, 20 Feb 2019 01:13:50 +0000 (09:13 +0800)]
tro(CR): defconfig: change platform configs for tro(CR)

Change-Id: Iee9f1525123a89265974cac7111d01e5dfe573df
Signed-off-by: sunyue5 <sunyue5@motorola.com>
Reviewed-on: https://gerrit.mot.com/1311315
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agokernel:thermal bat thermistor change
xuwei9 [Fri, 15 Feb 2019 13:25:10 +0000 (21:25 +0800)]
kernel:thermal bat thermistor change

use thermal temperature
as battery temp

Change-Id: I264cd804814cf46fbc4de4b257f64b12d625e0c4
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1310122
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agokane: arm/dts: camera: update camera dtsi to fix AF issue
wangdw10 [Fri, 15 Feb 2019 05:28:38 +0000 (13:28 +0800)]
kane: arm/dts: camera: update camera dtsi to fix AF issue

- use 1MHz I2C clock
- use 2.8V for actuator

CRs-fixed: (CR)

Change-Id: I9b4d0936a4526f4cc7dafd5a9ebfe03f53611120
Signed-off-by: wangdw10 <wangdw10@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1309954
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Submit-Approved: Jira Key

3 years agodtsi:turbo charger 3A current
xuwei9 [Fri, 15 Feb 2019 05:39:59 +0000 (13:39 +0800)]
dtsi:turbo charger 3A current

Turbo charger 3A
current setting

Change-Id: I5dbf45ce49d42dc7f2620b1cf19099fc0bf4763e
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1309257
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agosensor: According to datasheet modify Sar Sensor Power
Wen Xie [Fri, 15 Feb 2019 05:19:21 +0000 (13:19 +0800)]
sensor: According to datasheet modify Sar Sensor Power

According to SX9331 datasheet:
One channel's current consumption is 27uA(Active states),
use five channels,so current consumption is 135uA(Active).

On the upper level,we virtual sar sensor into three sensors,
so set sensor power to 45uA.

Change-Id: I1e1a0d6f31d81421bb375dd7fcfbec4cfe14e739
Signed-off-by: Wen Xie <xiewen3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1309253
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yuchang Guo <guoyc1@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agokane: input add ic_ver file for himax touch
dengwei1 [Thu, 14 Feb 2019 06:18:48 +0000 (14:18 +0800)]
kane: input add ic_ver file for himax touch

input add ic_ver file for himax touch
to support hwprop

Change-Id: I8f5e1a8f885aaf1150c59d93cbe37c0845722b4d
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1308672
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agomodify backlight chip configration for black screen
tanhua1 [Wed, 13 Feb 2019 11:57:37 +0000 (19:57 +0800)]
modify backlight chip configration for black screen

Modify Backlight driver PWM hysteresis from 4LSBs to 3LSBs.
Fix the backlight can not be turned on after resume.

Change-Id: I8cfbc450f9920085ccdd79c42fa949a0369ea99d
Signed-off-by: xingbin <xingbin@huaqin.com>
Reviewed-on: https://gerrit.mot.com/1308605
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agodtsi: tro(CR) 2A DCP support
xuwei9 [Wed, 13 Feb 2019 08:26:52 +0000 (16:26 +0800)]
dtsi: tro(CR) 2A DCP support

Tro(CR) support 2A DCP
charging current

Change-Id: Ia2c2a1f45c1b7426d28aaa04ff5574f3cbf908b7
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1308171
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agochub: Report chub issue to dropbox
Wen Xie [Tue, 12 Feb 2019 08:44:27 +0000 (16:44 +0800)]
chub: Report chub issue to dropbox

Report chub issue to dropbox, please note that when bug2go receive it,
dump files may not exist for dumpping action is executed by sensors hal.

Change-Id: I3597eb51ba1b86789a2e4da2c17d34115032859c
Signed-off-by: Wen Xie <xiewen3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1307564
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yuchang Guo <guoyc1@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agof_mtp:Remove the unneccessary QCOM changes
a17671 [Tue, 12 Feb 2019 06:28:45 +0000 (14:28 +0800)]
f_mtp:Remove the unneccessary QCOM changes

QCOM mtp only allow one mtp instance at a time
While Samsung needs to have both mtp and ptp instances
Remove the unneccessary QCOM code

Change-Id: I820b5dd84a3a651aa3c0b10da9fc2076b6097d68
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/1307514
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Jun Zhang <zhangj10@motorola.com>
Submit-Approved: Jira Key

3 years agodts: fix CtsAccessibilityGestureDectector issue.
tanhua1 [Mon, 11 Feb 2019 06:39:47 +0000 (14:39 +0800)]
dts: fix CtsAccessibilityGestureDectector issue.

fix CTS case: android.accessibilityservice.cts.
AccessibilityGestureDetectorTest#testRecognizeGesturePath

Change-Id: Id6ea0ffb7f20a6ac7bff03443d6d6f47e05fb862
Signed-off-by: tanhua1 <tanhua1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1307158
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agoarm/dts: Add channel-id mapping table.
Marcos Costa [Tue, 22 Jan 2019 07:48:56 +0000 (05:48 -0200)]
arm/dts: Add channel-id mapping table.

'carrier-channel-ids.dtsi' copied from bp-shm2018
branch on 01/22/2019.

Change-Id: I5a98c994bfde07129ab730e878126c13d574c569
Reviewed-on: https://gerrit.mot.com/1298242
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Dingwei Luo <luodw1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agof_fs.c:Pick up QCOM fixes for adb stability issue
a17671 [Sun, 3 Feb 2019 06:25:20 +0000 (14:25 +0800)]
f_fs.c:Pick up QCOM fixes for adb stability issue

USB: gagget: f_fs: Return error if TX req is queued during device offline

    when USB cable is disconnected during TX data transfers, endpoints will
    be disabled during function disable. If userspace client tries to queue
    requests on disabled endpoints, driver will wait till endpoints are
    enabled and then queues previous session requests. This results in kernel
    driver and userspace driver out of sync and due to this, stall will be
    seen. Hence fix this issue by returning error value if client tries to
    queue requests on TX endpoint during device offline.

    CRs-Fixed: 633497
    Change-Id: I3e43b8a704367aff7fe8dd88159315aef811c51c
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
USB: f_fs: Check error status before doing epfile I/O

    Set error status before disabling endpoint during function
    disable and also check error status before handling I/O. If error
    status is set, return error status to read/write calls made by
    userspace. Also set file's private data to NULL during epfile
    release.

    CRs-Fixed: 671880
    Change-Id: I14b5ee541dfc18a7802ef4a8033878a7729d9adb
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
USB: f_fs: Add memory barrier before atomic operations

    In few instances, it is observed that multiple adbd instances are
    running on device causing condition BUG_ON(ffs->gadget) to be true.
    ffs->opened and ffs->ref atomic variables are used here to make
    decision for checking ffs->gadget. These atomic variable operations
    requires expilict memory barrier to make sure that update to
    ffs->gadget is visible to other CPUs before updated atomic variable
    based value is seen. This change also adds explicit memory barriers
    before reading or modified any atomic varaiables.

    CRs-Fixed: 793733
    Change-Id: I3c846eb6bbb53663892e05d51ebac8439aac957a
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
Change-Id: I48389d8d922e30aeb1215207ba138e36799df250
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/1304658
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agof_mtp:Increase the MTP buffer request buffer size
a17671 [Sat, 2 Feb 2019 02:33:27 +0000 (10:33 +0800)]
f_mtp:Increase the MTP buffer request buffer size

Increase the MTP buffer request size
To improve the throughput rate

Change-Id: Ia022787f45c1951fc183d3b535bb8df59ea09619
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/1304532
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agodts:charger parameter update
xuwei9 [Sat, 2 Feb 2019 07:44:56 +0000 (15:44 +0800)]
dts:charger parameter update

charger paramter
update

Change-Id: I4b801b4653c5e2d1337619cd58b4521e4385141f
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1304589
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agokernel:update charger parameter
xuwei9 [Sat, 2 Feb 2019 07:47:35 +0000 (15:47 +0800)]
kernel:update charger parameter

update charger
parameter

Change-Id: I5423f2263a14eb086da07655b5f64c9a56aed55f
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1304590
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agokane: arm/dts: change I2C clock to 400KHz as AF issue
wangdw10 [Sat, 2 Feb 2019 02:46:28 +0000 (10:46 +0800)]
kane: arm/dts: change I2C clock to 400KHz as AF issue

this is a temp change

CRs-fixed: (CR)

Change-Id: I2148117f9efaa12d950f17cccece5868fa05fb5b
Signed-off-by: wangdw10 <wangdw10@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1304533
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Submit-Approved: Jira Key

3 years ago[COMMON] fimc-is2: implement Fast AF Triggering for decrease AF control delay
Wooyeon Kim [Wed, 30 Jan 2019 07:07:45 +0000 (16:07 +0900)]
[COMMON] fimc-is2: implement Fast AF Triggering for decrease AF control delay

 - copy afMode & afTrigger at only CONTINUOUS mode & trigger start
   when qbuf frame, copy queued frame

Change-Id: I5f5bffbfa659b6ddf027338937404b8add3a718c
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
3 years ago[9610][Robusta2] dtsi: camera: increase front default preview MIF level
Wooyeon Kim [Thu, 31 Jan 2019 09:00:22 +0000 (18:00 +0900)]
[9610][Robusta2] dtsi: camera: increase front default preview MIF level

 - L5 -> L3 increased for BDS 1/2, 24MP sensor mode scenario

 PR JIRA ID: CPR-655

Change-Id: I8e0c2fe6d4fb81554ac55bc02a77a9618ead033f
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
3 years agof_mtp:Fix ptp kernel panic in factory mode
a17671 [Fri, 1 Feb 2019 05:19:09 +0000 (13:19 +0800)]
f_mtp:Fix ptp kernel panic in factory mode

cdev could be null in the switching
PTP case, check the state before reading
To fix the panic issue

Change-Id: I30471023a72457854140ae867ed3977fba834dc0
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/1303922
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agoconfig: enable tee debug on debug build.
zhangh12 [Thu, 31 Jan 2019 10:13:52 +0000 (18:13 +0800)]
config: enable tee debug on debug build.

Change-Id: Ie36d8625f933d6ba0caeeae678e29867d881144d
Signed-off-by: zhangh12 <zhangh12@motorola.com>
Reviewed-on: https://gerrit.mot.com/1303580
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Submit-Approved: Jira Key

3 years agokernel:aw8695 rtp vibrate feature
xuwei9 [Thu, 31 Jan 2019 05:56:55 +0000 (13:56 +0800)]
kernel:aw8695 rtp vibrate feature

aw8695 rtp vibrate feature
wave id

Change-Id: Ibcba4333774d32dee00be56c336e072b829862f8
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1303448
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agotro(CR): defconfig: add camera support
wangdw10 [Thu, 31 Jan 2019 01:35:56 +0000 (09:35 +0800)]
tro(CR): defconfig: add camera support

enable camera for tro(CR) project

Change-Id: I33d4aa499e4e3e8806b4a4e53c00d252245b09eb
Signed-off-by: wangdw10 <wangdw10@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1303363
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Submit-Approved: Jira Key

3 years agotro(CR): arm/dts: add camera config for tro(CR)
wangdw10 [Thu, 31 Jan 2019 01:35:07 +0000 (09:35 +0800)]
tro(CR): arm/dts: add camera config for tro(CR)

use different dtsi file for kane and tro(CR)

Change-Id: I34788fbb0bbc1da6736b2d75233d49147ffbe536
Signed-off-by: wangdw10 <wangdw10@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1303362
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Submit-Approved: Jira Key

3 years agokane: arm/dts: camera: update camera I2C clock and AF voltage
wangdw10 [Wed, 30 Jan 2019 08:22:59 +0000 (16:22 +0800)]
kane: arm/dts: camera: update camera I2C clock and AF voltage

I2C: 1MHz, Voltage: 2.7V to fix AF fail issue

Moto CRs-fixed:(CR)

Change-Id: I42585a588899a1dcd6bda7b437542437e8279905
Signed-off-by: wangdw10 <wangdw10@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1303008
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hua Tan <tanhua1@motorola.com>
SME-Granted: Sen Ling <lingsen1@lenovo.com>
Submit-Approved: Lu Lu <lulu2@lenovo.com>

3 years agokane: arm/dts: use 400KHz I2C for rear camera
wangdw10 [Tue, 29 Jan 2019 07:00:38 +0000 (15:00 +0800)]
kane: arm/dts: use 400KHz I2C for rear camera

Moto CRs-fixed:(CR)

Change-Id: I9cc2567e55a7f5359f7b0ff6cbf10dd2124673fe
Signed-off-by: wangdw10 <wangdw10@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1303007
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hua Tan <tanhua1@motorola.com>
SME-Granted: Sen Ling <lingsen1@lenovo.com>
Reviewed-by: Sen Ling <lingsen1@lenovo.com>
Submit-Approved: Lu Lu <lulu2@lenovo.com>

3 years agoMadera-core:Add hard reset as part of resume
yaozm1 [Wed, 30 Jan 2019 03:07:31 +0000 (11:07 +0800)]
Madera-core:Add hard reset as part of resume

This is a patch from cirrus.
Do hard reset first instead of softreset

Change-Id: I2e39289a70f6ba1ee3f1e5f61cbb4611eb06a4d2
Signed-off-by: yaozm1 <yaozm1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1302929
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agoclean the kernel configs and include samsung user kernel config by default
huangzq2 [Tue, 29 Jan 2019 13:38:58 +0000 (21:38 +0800)]
clean the kernel configs and include samsung user kernel config by default

Change-Id: Iacca1f4961ccc0485f5b8721555f7fd922077c77
Signed-off-by: huangzq2 <huangzq2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1302631
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years ago[COMMON] fimc-is2: fix some wrong print of DW9839 actual position
Wooyeon Kim [Fri, 25 Jan 2019 07:20:38 +0000 (16:20 +0900)]
[COMMON] fimc-is2: fix some wrong print of DW9839 actual position

 - if ADC_MSB register is read wrong, wrong actual position is caculated

 PR JIRA ID: CPR-624

Change-Id: Ib9c0e94729cc08f005df1297a8a0b9f414c4faee
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
3 years ago[COMMON] fimc-is2: add condition for flash S2MU106 initilize
Wooyeon Kim [Thu, 24 Jan 2019 09:59:25 +0000 (18:59 +0900)]
[COMMON] fimc-is2: add condition for flash S2MU106 initilize

 - when flash init, if flash is turned on, do off

 PR JIRA ID: CPR-618

Change-Id: I58aa9d8e39dc526a172b9f4f0ae658b992c4d9f6
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
3 years ago[9610] arm64: dtsi: camera-pp: add io-coherency setting in GDC node
Wooyeon Kim [Mon, 17 Dec 2018 04:40:43 +0000 (13:40 +0900)]
[9610] arm64: dtsi: camera-pp: add io-coherency setting in GDC node

 - add dma-coherent in camerapp-gdc

PR JIRA ID : CPR-531

Change-Id: I6e0753de5ace6e49d29c54dcca608a3eb2158239
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
3 years agokernel:vibrator seq id change
xuwei9 [Mon, 28 Jan 2019 10:01:37 +0000 (18:01 +0800)]
kernel:vibrator seq id change

Change vib seq id according
to framework layer

Change-Id: Id14f6509203956d74ae1047bec154360a4478e27
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1302007
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agoasoc:Fix sound loss during conference call
yaozm1 [Mon, 28 Jan 2019 06:21:55 +0000 (14:21 +0800)]
asoc:Fix sound loss during conference call

It happens only for speaker mode.
It's triggered by ap sleep mode.

Change-Id: Ia1f2f6fbde0f74787dbb5f4f9fada444a3c4fce9
Signed-off-by: yaozm1 <yaozm1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1301871
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agosnesor: add calibration function for usb and handset
Wen Xie [Sat, 26 Jan 2019 07:16:05 +0000 (15:16 +0800)]
snesor: add calibration function for usb and handset

1.Add calibration function for usb and handset;
2.Adjust the debug log.

Change-Id: Ia5e4354bad05d59d0d501fcf3459bcffdbdb4be6
Signed-off-by: Wen Xie <xiewen3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1301910
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yuchang Guo <guoyc1@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agobalance anon/file reclaim
huangzq2 [Fri, 25 Jan 2019 09:46:58 +0000 (17:46 +0800)]
balance anon/file reclaim

Change-Id: I0ad49bb3e6b0b20fc2f23f8cf3a08e73f7cc2b00
Signed-off-by: huangzq2 <huangzq2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1301255
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Submit-Approved: Jira Key

3 years agoarm/dts:Pick from ODM's base
yao zhengming [Fri, 25 Jan 2019 04:05:56 +0000 (23:05 -0500)]
arm/dts:Pick from ODM's base

EKKANE-664:[Kane][audio]kernel:spk id gpio  config error

1,add pin configuration for gpm25,and disable pud

Change-Id: Ibd1ee4daf8562d175425158e8d6e2e601e24f395
Signed-off-by: zhangjiaquan <zhangjiaquan@huaqin.com>
Signed-off-by: yaozm1 <yaozm1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1301198
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agoadd print active wakelocks when suspend failed
luodw1 [Fri, 25 Jan 2019 08:38:55 +0000 (16:38 +0800)]
add print active wakelocks when suspend failed

Change-Id: I44b12cd76773c4923349b47b9d35d89dad0f4602
Signed-off-by: luodw1 <luodw1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1301196
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agoMadera:Pick cirrus' patch from ODM's base
yao zhengming [Thu, 24 Jan 2019 11:01:16 +0000 (06:01 -0500)]
Madera:Pick cirrus' patch from ODM's base

EKKANE-629:[Kane][audio]kernel:Add soft reset as part of resume

1,madera can not power down DCVDD ,so need soft reset when resume

Change-Id: I3d3291c25c6a846bcf3123fc8d1f0741a3963eb0
Signed-off-by: zhangjiaquan <zhangjiaquan@huaqin.com>
(cherry picked from commit 71c5fd1c8dfaf351ff9eec2aae7bd98926eb9741)
Signed-off-by: yaozm1 <yaozm1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1300905
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agoASOC:Pickup marley codec patch from ODM's base
yao zhengming [Tue, 22 Jan 2019 04:55:40 +0000 (23:55 -0500)]
ASOC:Pickup marley codec patch from ODM's base

EKKANE-629:[Kane][audio]kernel:hp and ep switch to mono mode

1,hp and ep switch to mono mode,because ep and hp switch ,the
stereo mode can not be setted again
2,solution: add the "HPOUT1 Mono Switch" to set mono and stereo
mode

Change-Id: I9bc05a373a3639e8194d8d330c20caf79d75f8ee
Signed-off-by: zhangjiaquan <zhangjiaquan@huaqin.com>
Signed-off-by: yaozm1 <yaozm1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1300904
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agoscsc: Add sysfs to enable/disable MAC randomisation
sunyue5 [Thu, 24 Jan 2019 08:57:58 +0000 (16:57 +0800)]
scsc: Add sysfs to enable/disable MAC randomisation

We need disable MAC randomisation for some test and debug
This change is to add a module parameter mac_randomisation_disabled
to enable/disable MAC randomisation.

Change-Id: I84a2f625ecb2f5c3a38b8041e909af1f8dfd8c18
Signed-off-by: sunyue5 <sunyue5@motorola.com>
Reviewed-on: https://gerrit.mot.com/1300264
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Submit-Approved: Jira Key

3 years ago[RAMEN9610-10736][9610] arm64: dtsi: GPIO optimization ver3
Soomin Kim [Thu, 10 Jan 2019 14:57:51 +0000 (23:57 +0900)]
[RAMEN9610-10736][9610] arm64: dtsi: GPIO optimization ver3

Change-Id: I4f6c19350b45cde65723a67fe328fcdd0e56705a
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
3 years ago[RAMEN9610-10736][9610] arm64: dtsi: GPIO optimization ver2
Soomin Kim [Thu, 10 Jan 2019 14:30:50 +0000 (23:30 +0900)]
[RAMEN9610-10736][9610] arm64: dtsi: GPIO optimization ver2

Change-Id: I8a85eaf005716b32f06af284c5b9cc3e1eb4f428
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
3 years ago[RAMEN9610-10736][9610] arm64: dtsi: Define sleep gpio initial value
Soomin Kim [Thu, 10 Jan 2019 14:10:36 +0000 (23:10 +0900)]
[RAMEN9610-10736][9610] arm64: dtsi: Define sleep gpio initial value

Change-Id: Ib71bc2a4940bac5e98e5c23f7294dc3e1085fcf7
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
3 years ago[RAMEN9610-10736][9610][ERD] arm64: configs: Enable sleep gpio
Soomin Kim [Thu, 10 Jan 2019 14:01:24 +0000 (23:01 +0900)]
[RAMEN9610-10736][9610][ERD] arm64: configs: Enable sleep gpio

Change-Id: Id680941ed7f41a2135618e958958983742bee8ba
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
3 years ago[RAMEN9610-10736][COMMON] soc: samsungs: Add a SLEEP_GPIO driver
Soomin Kim [Fri, 6 Jul 2018 01:55:26 +0000 (10:55 +0900)]
[RAMEN9610-10736][COMMON] soc: samsungs: Add a SLEEP_GPIO driver

This driver gets GPIOs have proper setting value of
CON_PDN, PUD_PDN SRFs. Also, if there is no these
SFRs, it controls CON, PUD value before entering
and after exiting suspend.

Change-Id: I1ac9ec3e2babe0dd0eef94fbd353f1d56fd6b799
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
Conflicts:
drivers/soc/samsung/Makefile

3 years agoEKKANE-596 :[kane][device] Modification Sar Sensor Power From 3mA to 0.5mA
yindong [Fri, 18 Jan 2019 06:02:10 +0000 (14:02 +0800)]
EKKANE-596 :[kane][device] Modification Sar Sensor Power From 3mA to 0.5mA

Modification Sar Sensor Power From 3mA to 0.5mA

Change-Id: Iff4dddf9f3a70d39d8ff6345eb50b3e16a4b5da3
Signed-off-by: yindong <yindong@huaqin.com>
3 years agoEKKANE-209:[factory]:[kane]:lk: enter factory mode when press volumeup+power key
zhixueyin [Fri, 18 Jan 2019 02:05:49 +0000 (10:05 +0800)]
EKKANE-209:[factory]:[kane]:lk: enter factory mode when press volumeup+power key

enter factory mode when press volumeup+power key

Change-Id: I957c5c534b856b6a0f06b25ec23c445c63955c09

3 years agoEKKANE-227:[Kane][audio][factory]kernel:hp and ep switch make no sound
zhangjiaquan [Thu, 17 Jan 2019 07:55:03 +0000 (02:55 -0500)]
EKKANE-227:[Kane][audio][factory]kernel:hp and ep switch make no sound

1,hp and ep switch make no sound

Change-Id: I52454c4488a0dc6e628ae633d9b026a28fde78f4
Signed-off-by: zhangjiaquan <zhangjiaquan@huaqin.com>
3 years agoEKKANE-570:[Kane]:[kernel](1/1)Optimize the log of 1st vendor himax TP point report.
hq_qiaoquanbin_tmp [Wed, 16 Jan 2019 09:44:04 +0000 (17:44 +0800)]
EKKANE-570:[Kane]:[kernel](1/1)Optimize the log of 1st vendor himax TP point report.

Optimize the log of 1st vendor himax TP point report.

bug:EKKANE-570

Change-Id: Ie445017afebc34c97ec37d663f7ed234cf3412d1
Signed-off-by: hq_qiaoquanbin_tmp <qiaoquanbin@huaqin.com>
3 years agoSensor: (1/1) fix issue - CapSensor PHx diff value is incorrect first time
litao2 [Wed, 16 Jan 2019 07:45:41 +0000 (15:45 +0800)]
Sensor: (1/1) fix issue - CapSensor PHx diff value is incorrect first time

After calibration complete, user must wait 1.5 secondsat least for first
variational PHx diff value. Otherwise PHx diff is 0.

Bug:EKKANE-295

Workaround:no

Change-Id: I88190d26db6f9559c5dcf49c8b2fe0515e8ef4ee
Signed-off-by: litao2 <litao2@huaqin.com>
3 years agoEKKANE-565:[Kane]:[kernel][factory](1/1)Fix selftest process in 1st himax vendor.
hq_qiaoquanbin_tmp [Tue, 15 Jan 2019 09:40:19 +0000 (17:40 +0800)]
EKKANE-565:[Kane]:[kernel][factory](1/1)Fix selftest process in 1st himax vendor.

Fix selftest process in 1st himax vendor.

bug:EKKANE-565

Change-Id: I71da11e670a9eb6afc34fcaceccdbbc817d14a7b
Signed-off-by: hq_qiaoquanbin_tmp <qiaoquanbin@huaqin.com>
3 years agoEKKANE-570:[Kane]:[kernel](1/1)Optimize the effect of 1st vendor himax TP point report.
hq_qiaoquanbin_tmp [Tue, 15 Jan 2019 07:18:21 +0000 (15:18 +0800)]
EKKANE-570:[Kane]:[kernel](1/1)Optimize the effect of 1st vendor himax TP point report.

Optimize the effect of 1st vendor himax TP point report.

bug:EKKANE-570

Change-Id: Ia4a0b97f0b94dae77acc02c61e52b8f7b2b09779
Signed-off-by: hq_qiaoquanbin_tmp <qiaoquanbin@huaqin.com>
3 years agoEKKANE-541:[Kane]:[kernel]motor int pin leakage
zhangyijie [Sat, 12 Jan 2019 19:09:28 +0000 (03:09 +0800)]
EKKANE-541:[Kane]:[kernel]motor int pin leakage

motor add pinctrl for solve int pin leakage

Change-Id: I81e6fa136db21cd0f418c9cb0bc6f92d82167aa2

3 years agoEKKANE-544:[Kane]:[kernel](1/1)Fix AC charger flag change TP parameter.
hq_qiaoquanbin_tmp [Mon, 14 Jan 2019 08:17:08 +0000 (16:17 +0800)]
EKKANE-544:[Kane]:[kernel](1/1)Fix AC charger flag change TP parameter.

Fix AC charger flag change TP parameter.

bug:EKKANE-544

Change-Id: I277ec73d6e6c9ed995aa0e0b3a89e3a0b69a9e48
Signed-off-by: hq_qiaoquanbin_tmp <qiaoquanbin@huaqin.com>
3 years agoSensor: (1/1) fix issue - CapSensor calibration value is incorrect first time
litao2 [Sat, 12 Jan 2019 06:47:43 +0000 (14:47 +0800)]
Sensor: (1/1) fix issue - CapSensor calibration value is incorrect first time

After writing calibration command to CMD register, user must wait 1.5 seconds
at least for calibration complete.

Bug:EKKANE-511

Workaround:no

Change-Id: I8af3a56bce69b3d5b74d4fefd41cdddb3331451f
Signed-off-by: litao2 <litao2@huaqin.com>
3 years agoRevert "[HACK][9610] fimc-is2: disable GM1SP gyro temporary"
Wooyeon Kim [Tue, 22 Jan 2019 05:50:27 +0000 (14:50 +0900)]
Revert "[HACK][9610] fimc-is2: disable GM1SP gyro temporary"

This reverts commit ded416757dba1122416c23d3c2b400e3622f221a.

 PR JIRA ID: CPR-608

Change-Id: I1d08ab69176d7f2ba80fb7da5e8f7aacd6794cd0
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
3 years ago[9610][Robusta2] dtsi: camera: increase some rear2/front level
Wooyeon Kim [Mon, 21 Jan 2019 07:06:28 +0000 (16:06 +0900)]
[9610][Robusta2] dtsi: camera: increase some rear2/front level

 PR JIRA ID: CPR-596

Change-Id: I8eb8143d3e75688156e3a24ad57e96035e133e37
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
3 years ago[HACK][9610] fimc-is2: disable GM1SP gyro temporary
samsung3 [Wed, 16 Jan 2019 12:21:35 +0000 (20:21 +0800)]
[HACK][9610] fimc-is2: disable GM1SP gyro temporary

 - w/gyro, stream on wait time is abnormal (about 100ms)
   so after setting fixed, it will revert

Change-Id: Icd6cc5b5e2231abfc4d6cb89881ba489b1da8d31
Signed-off-by: samsung3 <wooy88.kim@samsung.com>
3 years ago[9610][Robusta2] dtsi: camera: set rear default multi_ch to 1
Wooyeon Kim [Sat, 12 Jan 2019 07:39:47 +0000 (16:39 +0900)]
[9610][Robusta2] dtsi: camera: set rear default multi_ch to 1

 - set rear multi_ch default to "1" for PIP sceanrio
  (for not modified during streaming)

Change-Id: Ica62d13f22154bafaf1e2261856f8bc6a4d2c026
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
3 years agoDisable charging via sysfs
huangzq2 [Wed, 23 Jan 2019 00:42:13 +0000 (08:42 +0800)]
Disable charging via sysfs

Change-Id: I343895372db2576fb71534309c7d875538d1e24e
Signed-off-by: huangzq2 <huangzq2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1298890
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agoarm/dts: add tro(CR) init dts
zhaoxp3 [Tue, 22 Jan 2019 02:22:19 +0000 (10:22 +0800)]
arm/dts: add tro(CR) init dts

init device tree for tro(CR)
Change-Id: I8c89161bbf5e4c0022f5765c3e69fde3cc78f3cb
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1298023
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key

3 years agodefconfig: add config for tro(CR)
zhaoxp3 [Tue, 22 Jan 2019 02:18:33 +0000 (10:18 +0800)]
defconfig: add config for tro(CR)

add kernel config for tro(CR) product
Change-Id: Iaf13a1f0ac1abe47c5b05698d5ff9dac123cae16
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1298022
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key

3 years agoAdd the support of usb secure hardware checking
a17671 [Mon, 21 Jan 2019 09:31:14 +0000 (17:31 +0800)]
Add the support of usb secure hardware checking

Usb secure hardware checking does not exist on samsung platform
Add the support after security feature ready

Change-Id: I16b8ebd5ef57144c9c23adc897f562890b6e53b4
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/1297617
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agoarm64/dts: Update Capsensor parameters
Wen Xie [Fri, 18 Jan 2019 03:36:57 +0000 (11:36 +0800)]
arm64/dts: Update Capsensor parameters

SX933X: merge SAR sensor parameters,
this parameters only for moto.
52_51_dvt2_user_ver_pre_release.

Change-Id: I3d2a5292c8f2870103f0b8e22cb10d5afc8fb2ec
Signed-off-by: Wen Xie <xiewen3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1296646
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agoRevert Enable CFI on debug build
Zhangqing Huang [Thu, 17 Jan 2019 08:55:16 +0000 (02:55 -0600)]
Revert Enable CFI on debug build

This reverts commit 212c97dd8ded53c0029346387ef7001e41b9fc16.

Change-Id: I1564e753e0ec16b2fde0d47c7a8fa09d8c98ec67
Reviewed-on: https://gerrit.mot.com/1296049
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agoRevert "usbpd:Fix the usbpd interrupt storm issue"
a17671 [Thu, 17 Jan 2019 07:49:00 +0000 (15:49 +0800)]
Revert "usbpd:Fix the usbpd interrupt storm issue"

This reverts commit 636afbc58ed019b48aab5637d06d1c005a6d780a.
Samsung change the interrupt from level to falling edge
Revert the moto change to fix the usb pd storm
Mot-CRs-fixed:(CR)

Change-Id: I7bd5bd2ba2d2bf1e14655d48a4c8d0deb40991f4
Reviewed-on: https://gerrit.mot.com/1296008
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agoEnable CFI on debug build
huangzq2 [Wed, 16 Jan 2019 09:58:38 +0000 (17:58 +0800)]
Enable CFI on debug build

Change-Id: Ibb2f6cbb240caabdc9ece15bde2a4804acf567a3
Signed-off-by: huangzq2 <huangzq2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1295306
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agoASOC:Pick Patch from ODM's Base
Yao Zhengming [Tue, 15 Jan 2019 03:28:54 +0000 (22:28 -0500)]
ASOC:Pick Patch from ODM's Base

EKKANE-227:[Kane][audio]kernel:get the enum by read hard status

sometimes the enum show wrong

Change-Id: I1eea4a01c05e9d9e49508f54d3e5ac6281dbda3f
Signed-off-by: zhangjiaquan <zhangjiaquan@huaqin.com>
Signed-off-by: yaozm1 <yaozm1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1295695
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agoASOC:Patch from cirrus to fix sound loss issue
yaozm1 [Thu, 17 Jan 2019 02:16:48 +0000 (10:16 +0800)]
ASOC:Patch from cirrus to fix sound loss issue

extcon: madera: Don't clamp manually on cs47l35

There is no reason to manually clamp on cs47l35 the automatic clamping
is perfectly functional.

This fix the issue for sound loss during voice call when hs is
frequently inserted/removed.

Change-Id: I0fbd9113f7670d236f93b04034cfc385fdf736cc
Signed-off-by: yaozm1 <yaozm1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1295665
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agoarm/dts:Update Marley DTS Config
yaozm1 [Tue, 15 Jan 2019 05:44:59 +0000 (13:44 +0800)]
arm/dts:Update Marley DTS Config

Set marley dsp3 bin config to "none"
This will avoid driver's try to seek binary not existing

Change-Id: Ic0222672a3870f166f684a65f2936a1e4b3cc252
Signed-off-by: yaozm1 <yaozm1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1294208
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agokernel:avoid FG reset algorithm
xuwei9 [Mon, 14 Jan 2019 05:10:47 +0000 (13:10 +0800)]
kernel:avoid FG reset algorithm

Avoid FG reset
algorithm

Change-Id: I0a58b08d35a9db5335412a2137a71b4958760008
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1293527
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agoprintk: LOG_LINE_MAX to 2048 - PREFIX_MAX
zhaoxp3 [Fri, 11 Jan 2019 08:08:36 +0000 (16:08 +0800)]
printk: LOG_LINE_MAX to 2048 - PREFIX_MAX

To output command line completely in kernel log

Change-Id: I5ff1c905cf42f2b2847fa5c1971c9185d6cadb1d
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1292880
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key

3 years agokane: input update nvt touch fw 04
dengwei1 [Thu, 10 Jan 2019 07:38:54 +0000 (15:38 +0800)]
kane: input update nvt touch fw 04

input update nvt touch fw 04
as keypart

Change-Id: I249617f57e2cc47c16d0d84d37cfbe21b4d06850
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1292071
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agopower:add UTC time when entry and exit suspend
luodw1 [Wed, 9 Jan 2019 02:48:29 +0000 (10:48 +0800)]
power:add UTC time when entry and exit suspend

Change-Id: I1cb923cd01cec3c669dde0789a8c51a870d394fe
Signed-off-by: luodw1 <luodw1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1291266
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agokernel:fuelgauge change
xuwei9 [Wed, 9 Jan 2019 09:00:25 +0000 (17:00 +0800)]
kernel:fuelgauge change

Change-Id: I220cb485941b70c2e53e22fb2123ca82dcc17009

3 years agoxuwei9 fix build error
lingsen1 [Wed, 9 Jan 2019 11:30:45 +0000 (19:30 +0800)]
xuwei9 fix build error

Change-Id: I5282618ec66d0a7689d7529d16a16da3ffd22684

3 years agousb:f_midi:Correct the midi function name for binding
a17671 [Tue, 8 Jan 2019 01:35:45 +0000 (09:35 +0800)]
usb:f_midi:Correct the midi function name for binding

The f_midi function name has to be midi
Otherwise, the rc file will have problem of binding the function

Change-Id: I2b3e61f70fb9b260731eabd5fe6bf10da72c540a
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/1290747
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agokernel:battery temperature is zero during power on
xuwei9 [Mon, 7 Jan 2019 07:18:43 +0000 (15:18 +0800)]
kernel:battery temperature is zero during power on

battery temp is zero during
power on

Change-Id: If07b1b50e4ee49034ddc6f2064bb5f97271565d0
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1290370
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agokernel:update aws vibrator parameter
xuwei9 [Tue, 25 Dec 2018 03:20:56 +0000 (11:20 +0800)]
kernel:update aws vibrator parameter

update aws vibrator
parameter

Change-Id: Ibf68635fc4f223c0762edc03336351974be02505
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1286853
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agosecu:kernel:add OEM partition into avb mount fstab
wangwang [Fri, 4 Jan 2019 05:14:05 +0000 (13:14 +0800)]
secu:kernel:add OEM partition into avb mount fstab

oem is added into vbmeta as part of avb2.0 secure boot chain
kernel fstab must add oem node as the mount point

Change-Id: I290651f4b0527261dcf15d1910339105a0003220
Reviewed-on: https://gerrit.mot.com/1289718
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Dingwei Luo <luodw1@motorola.com>
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Submit-Approved: Jira Key

3 years agoASoC: wm_adsp: use new 'cirrus' node
Yoon (Seungyoon) Lee [Wed, 26 Dec 2018 06:19:58 +0000 (00:19 -0600)]
ASoC: wm_adsp: use new 'cirrus' node

We have Kane only in this new platform so far and this is good
chance to transit to use new 'cirrus' node instead of old 'wlf'
node since we don't have any old products dt in this branch yet.

Change-Id: I31f883043913f287da62f8a39ca6a828c2b5da3a
Signed-off-by: Yoon (Seungyoon) Lee <w22905@motorola.com>
Reviewed-on: https://gerrit.mot.com/1287049
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

3 years agoarm/dts: kane: use new 'cirrus' adsp nodes
Yoon (Seungyoon) Lee [Wed, 26 Dec 2018 06:24:12 +0000 (00:24 -0600)]
arm/dts: kane: use new 'cirrus' adsp nodes

use new 'cirrus' adsp nodes instead of old 'wlf' nodes to get
more flexibility and to remove redundancy from wm_adsp driver.

Change-Id: Ie4e282387cd247d9e8e334a6244558466948fdc3
Signed-off-by: Yoon (Seungyoon) Lee <w22905@motorola.com>
Reviewed-on: https://gerrit.mot.com/1287050
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

3 years agokernel:battery driver avoid i2c operation before suspend
xuwei9 [Thu, 3 Jan 2019 06:18:50 +0000 (14:18 +0800)]
kernel:battery driver avoid i2c operation before suspend

avoid i2c operation before
suspspend in case i2c error

Change-Id: I1e570242913797114d0479534cc36d8e575fb930
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1289230
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agoremove selinux and etc from dts.
zhangh12 [Thu, 27 Dec 2018 07:40:22 +0000 (15:40 +0800)]
remove selinux and etc from dts.

Change-Id: I3e754ea559fed89bf4de20f0bc04d89ae9bf9c0e
Signed-off-by: zhangh12 <zhangh12@motorola.com>
Reviewed-on: https://gerrit.mot.com/1287388
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agokernel:Add battery profile update flag
xuwei9 [Thu, 27 Dec 2018 05:32:32 +0000 (13:32 +0800)]
kernel:Add battery profile update flag

Add battery profile
update flag

Change-Id: I3ae1eca91ea30c6b09ce8f85d1186eb845be48bc
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1287459
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agousb:f_usbnet:Zero out CRC padding
Patrick Tjin [Wed, 26 Dec 2018 08:39:56 +0000 (16:39 +0800)]
usb:f_usbnet:Zero out CRC padding

Zero out CRC padding
To preventing leaking of unintialized data

Signed-off-by: Patrick Tjin <pattjin@google.com>
Signed-off-by: a17671 <a17671@motorola.com>
Change-Id: I7e902a9bdf2cbad0df4900101a9797176cb66a9c
Reviewed-on: https://gerrit.mot.com/1287118
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agousbnet:Solve the CFI warning message
a17671 [Wed, 26 Dec 2018 08:13:03 +0000 (16:13 +0800)]
usbnet:Solve the CFI warning message

After CFI feature integrated into the Android Kernel
Motorola USBLAN driver will generate warning/panic
Due to the mismatch of the return type

Change-Id: Ia9d1d78a03c542426d213fdb69274eca817e2ae2
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/1287119
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agoDisable CFI on debug build
huangzq2 [Wed, 26 Dec 2018 05:21:00 +0000 (13:21 +0800)]
Disable CFI on debug build

Change-Id: Ibadd61004a56d21342b43cbd270b06702e81d2f8
Signed-off-by: huangzq2 <huangzq2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1287029
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agolib: dss: remove task info in case of panic
Youngmin Nam [Mon, 24 Dec 2018 13:10:06 +0000 (22:10 +0900)]
lib: dss: remove task info in case of panic

To get more panic log, we remove task info
Mot-CRs-fixed: (CR)
Change-Id: I962d96242da9c20ba8b6e1625aeae42fa1a22b4f
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1286932
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key

3 years agoset CFI to permissive on debug build
huangzq2 [Tue, 25 Dec 2018 06:25:38 +0000 (14:25 +0800)]
set CFI to permissive on debug build

Change-Id: I47e2651d2196dd0580137789896bdca442d21fc5
Signed-off-by: huangzq2 <huangzq2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1286886
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agoCorrect Kane kernel configs
huangzq2 [Mon, 24 Dec 2018 06:50:21 +0000 (14:50 +0800)]
Correct Kane kernel configs

Change-Id: I6eb62386e1b8219ef2cdfed13f1d6729c5c39446
Signed-off-by: huangzq2 <huangzq2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1286664
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agoSync missed kernel configs from HQ
huangzq2 [Sat, 22 Dec 2018 06:08:28 +0000 (14:08 +0800)]
Sync missed kernel configs from HQ

Change-Id: I396a9db01bbe6862b5ace08259f38543087c1c1c
Signed-off-by: huangzq2 <huangzq2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1286538
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

3 years agoEnable f2fs + FBE
huangzq2 [Fri, 14 Dec 2018 10:11:39 +0000 (18:11 +0800)]
Enable f2fs + FBE

Change-Id: If44e99e4c181e4c3cdf2b515650a2cc86da4e20e
Signed-off-by: huangzq2 <huangzq2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1283579
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key