GitHub/MotorolaMobilityLLC/kernel-slsi.git
5 years ago[COMMON] fimc-is2: add delay time when retry sensor i2c read pie-9.0.0-release
Wooyeon Kim [Wed, 10 Apr 2019 12:50:48 +0000 (21:50 +0900)]
[COMMON] fimc-is2: add delay time when retry sensor i2c read

 - when retried sensor module power off to on
   add to get delay more

   3ms -> 5ms

CRs-fixed: (CR)

Change-Id: I7de6811c889e2efb2cf069a16654d3bf8ca0ac22
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
Reviewed-on: https://gerrit.mot.com/1334944
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: Lu Lu <lulu2@mt.com>

5 years ago[COMMON] fimc-is2: increase 5E9 some delay for power on
Wooyeon Kim [Wed, 10 Apr 2019 11:13:34 +0000 (20:13 +0900)]
[COMMON] fimc-is2: increase 5E9 some delay for power on

CRs-fixed: (CR)

Change-Id: I48b9d418ce2a0e8257537b45e5b166807b1daf74
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
Reviewed-on: https://gerrit.mot.com/1334941
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: Lu Lu <lulu2@mt.com>

5 years ago[COMMON] fimc-is2: increase 2X5SP some delay for power on
Wooyeon Kim [Wed, 10 Apr 2019 11:20:20 +0000 (20:20 +0900)]
[COMMON] fimc-is2: increase 2X5SP some delay for power on

CRs-fixed: (CR)

Change-Id: I8831834fe669b7b5fdf571385df7cf6138c9e101
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
Reviewed-on: https://gerrit.mot.com/1334911
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: Lu Lu <lulu2@mt.com>

5 years ago[COMMON] fimc-is2: modify code for 2x5 otp
Wooyeon Kim [Wed, 10 Apr 2019 05:27:06 +0000 (14:27 +0900)]
[COMMON] fimc-is2: modify code for 2x5 otp

CRs-fixed: (CR)

Change-Id: I3c2d10ed435ec05ee2f22647e2ee09222da8d247
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
Reviewed-on: https://gerrit.mot.com/1334844
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Submit-Approved: Lu Lu <lulu2@mt.com>

5 years agokernel:report cable attch event three thime
xuwei9 [Wed, 10 Apr 2019 10:29:33 +0000 (18:29 +0800)]
kernel:report cable attch event three thime

samsung report cable attach event three times
which result in battery status override

Change-Id: I6ae9dd37d369254d15b1d5678dcb1a0d79dcb8a7
Signed-off-by: xuwei9 <xuwei9@mt.com>
Reviewed-on: https://gerrit.mot.com/1334878
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zonghua Liu <a17671@motorola.com>
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Submit-Approved: Jira Key

5 years agofimc-is2: increase GM1SP power on some delay
Wooyeon Kim [Tue, 9 Apr 2019 01:38:29 +0000 (10:38 +0900)]
fimc-is2: increase GM1SP power on some delay

CRs-fixed: (CR)

Change-Id: I8e791359b5e668395e4f3d590a24d97f0f181590
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
Reviewed-on: https://gerrit.mot.com/1334326
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

5 years ago[COMMON] fimc-is2: fix 2x5sp/5e9 otp load retry logic
Wooyeon Kim [Fri, 29 Mar 2019 07:16:40 +0000 (16:16 +0900)]
[COMMON] fimc-is2: fix 2x5sp/5e9 otp load retry logic

 PR JIRA ID: CPR-906

CRs-fixed: (CR)

Change-Id: Iba5d9e8e6af6404505dc8602b31b6614a2ba52f8
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
Reviewed-on: https://gerrit.mot.com/1332494
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Biming Li <libm1@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Submit-Approved: Jira Key
(cherry picked from commit a9a96ddae220d2184815f41c69efba255ab558cb)

5 years ago[Kane]FPS:Add wake lock when transfer data to TA
chenl18 [Thu, 4 Apr 2019 02:25:24 +0000 (10:25 +0800)]
[Kane]FPS:Add wake lock when transfer data to TA

Fingerprint transfer data is interrupted by system suspend, so
CA can't get response from TA. Then system server watchdog happen.
To avoid the system sleep, add wake lock when transfer data from
CA to TA.

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

5 years agokernel:PD thermal trigger mechanism
xuwei9 [Wed, 3 Apr 2019 09:05:15 +0000 (17:05 +0800)]
kernel:PD thermal trigger mechanism

Enable PD charger thermal
trigger mechanism

Change-Id: I7a7b4aef39a9ca2cf9164cc8431e97b770b470c8
Signed-off-by: xuwei9 <xuwei9@mt.com>
Reviewed-on: https://gerrit.mot.com/1331849
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
(cherry picked from commit 668a8dee65ed9f842f08cac6a706665419bdc268)

5 years agofix build error
lulu2 [Fri, 29 Mar 2019 14:13:12 +0000 (22:13 +0800)]
fix build error

Change-Id: I7b87be8170a498a0a23e5d489f7adbee06bd74e3

5 years ago[RAMEN9610-13997][COMMON] drivers: usb/usbpd: support role swap
Kim Taejeong [Fri, 29 Mar 2019 01:54:43 +0000 (10:54 +0900)]
[RAMEN9610-13997][COMMON] drivers: usb/usbpd: support role swap

Change-Id: I9d6ec02ed07bf81b1104324f2dfd2a0d62c3ed54
Signed-off-by: Kim Taejeong <tj.kim@samsung.com>
Conflicts:
drivers/power/supply/power_supply_sysfs.c
include/linux/power_supply.h

5 years agokernel:fs:update inode size when do lseek
wangwang [Thu, 28 Mar 2019 03:27:36 +0000 (11:27 +0800)]
kernel:fs:update inode size when do lseek

sdcardfs file node info was not updated when lowlevel file was updated
force to update the inode size when do lseek systemcall

Change-Id: I34802cc33f5cddd9dd8d304c5803cd0886805faf
Signed-off-by: wangwang <wangwang1@mt.com>
Reviewed-on: https://gerrit.mot.com/1328861
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
(cherry picked from commit cb361b183fee91736a61d54d23a42722fde34722)

5 years ago[RAMEN9610-13853][COMMON] drivers: charger: Add log for input OCP register
Keunho Hwang [Tue, 26 Mar 2019 03:58:09 +0000 (12:58 +0900)]
[RAMEN9610-13853][COMMON] drivers: charger: Add log for input OCP register

Change-Id: Ie1d36f13729e83d16bd2a835e226854b7951c78f
Signed-off-by: Keunho Hwang <keunho.hwang@samsung.com>
5 years ago[COMMON] fimc-is2: divide mcsc cur_setfile by instance
Wooyeon Kim [Wed, 27 Mar 2019 09:16:22 +0000 (18:16 +0900)]
[COMMON] fimc-is2: divide mcsc cur_setfile by instance

 PR JIRA ID: CPR-880

CRs-fixed: (CR)

Change-Id: Id5119ff5bee7716de1cc38b4efabc262d6fc461b
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
Reviewed-on: https://gerrit.mot.com/1328889
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

5 years agoscsc: Revert RAMEN9610-13676
sunyue5 [Thu, 28 Mar 2019 02:30:33 +0000 (10:30 +0800)]
scsc: Revert RAMEN9610-13676

SLSI have confirmed we can keep MAC randomization for pno scan being
enabled hence we revert this RAMEN9610-13676
This reverts commit 8b860d72a37035015d9d59dba3c418a76eaee3ea.

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

5 years agoRevert "[9610] wlbt: Read FW TxGood, RxGood, TxBad counters"
Youngsoo [Mon, 25 Mar 2019 05:46:10 +0000 (14:46 +0900)]
Revert "[9610] wlbt: Read FW TxGood, RxGood, TxBad counters"

This reverts commit 59028f6be4b1a957511e740ff8812aee47f0f013.

Change-Id: I05879f2fb680ee6acc6099f06d95ce977c00bf40
Signed-off-by: sunyue5 <sunyue5@motorola.com>
Reviewed-on: https://gerrit.mot.com/1326486
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
(cherry picked from commit b0b1d1173500d7738daec2ee879331a008d57c5b)

5 years ago[COMMON] fimc-is2: update eeprom as KP request
wangdw10 [Mon, 25 Mar 2019 03:16:53 +0000 (11:16 +0800)]
[COMMON] fimc-is2: update eeprom as KP request

support CRC check for DVT and PVT module

CRs-fixed: (CR)

Change-Id: Iaf1dbc640ba3ba8de992091756fd07a32663ea3e
Signed-off-by: wangdw10 <wangdw10@mt.com>
Reviewed-on: https://gerrit.mot.com/1326411
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
(cherry picked from commit 018b2275ac4b9fabec7edcc0058cf0af6700350a)

5 years agoRevert "[RAMEN9610-13448] arm64: remove dma zone"
lulu2 [Mon, 25 Mar 2019 06:33:00 +0000 (14:33 +0800)]
Revert "[RAMEN9610-13448] arm64: remove dma zone"

This reverts commit 3478227351c3a1da736a3dc97846f5860ccdf869.

5 years ago[RAMEN9610-13766][COMMON] drivers: muic: support unstable usb connection
Kim Taejeong [Sat, 23 Mar 2019 05:37:09 +0000 (14:37 +0900)]
[RAMEN9610-13766][COMMON] drivers: muic: support unstable usb connection

Change-Id: I89085baf6c58b5bdba84d6af58f558bf696bdf28
Signed-off-by: Kim Taejeong <tj.kim@samsung.com>
5 years ago[RAMEN9610-13756] asoc: abox: add delay to ensure that ABOX core is suspended
hayoung78.joo [Fri, 22 Mar 2019 08:39:09 +0000 (17:39 +0900)]
[RAMEN9610-13756] asoc: abox: add delay to ensure that ABOX core is suspended

Change-Id: I4d9bf28e20973231fa3d4086fe6dd2c39bb29554
Signed-off-by: hayoung78.joo <hayoung78.joo@samsung.com>
5 years ago[RAMEN9610-13741][Common][9610] fix to avoid invalid scan channel
Yuseok Kim [Fri, 22 Mar 2019 17:26:21 +0000 (02:26 +0900)]
[RAMEN9610-13741][Common][9610] fix to avoid invalid scan channel

When channel scan was triggered for ACS, invalid channel was shwon.
This patch add protection code to avoid kernel panic.

Change-Id: Ic84aaddb8f145ffbb4d37c46d1a9a0d8d08b1ea0

5 years ago[COMMON] fimc-is2: modify fimc_is_lib_isp_shot return type
Wooyeon Kim [Fri, 22 Mar 2019 07:22:25 +0000 (16:22 +0900)]
[COMMON] fimc-is2: modify fimc_is_lib_isp_shot return type

 - for result from DDK, modified type void -> int

 PR JIRA ID: CPR-856

CRs-fixed: (CR)

Change-Id: I4a8a759738ff3e1687f39da9ca48385888f563c1
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
Reviewed-on: https://gerrit.mot.com/1326262
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

5 years ago[COMMON] fimc-is2: add cancel logic if h/w ip shot failed
Wooyeon Kim [Fri, 22 Mar 2019 03:58:46 +0000 (12:58 +0900)]
[COMMON] fimc-is2: add cancel logic if h/w ip shot failed

 - when each h/w ip shot failed,
   set hw_frame state & operate recover function for already shot ip

 PR JIRA ID: CPR-856

CRs-fixed: (CR)

Change-Id: I656297461555e7c6aa63b4e1cec72fbe7d905ce5
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
Reviewed-on: https://gerrit.mot.com/1326261
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

5 years ago[COMMON] fimc-is2: trigger smp_multi_input when group canceled
Wooyeon Kim [Fri, 22 Mar 2019 03:54:59 +0000 (12:54 +0900)]
[COMMON] fimc-is2: trigger smp_multi_input when group canceled

 - when group shot cancelled which uses a smp_multi_input (EX>MCSC)
   not triggered smp causes a ISP shot thread stuck

 PR JIRA ID: CPR-856

CRs-fixed: (CR)

Change-Id: I078444ef532d5fb419e6edc87429a7489779d86b
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
Reviewed-on: https://gerrit.mot.com/1326260
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

5 years ago[RAMEN9610-13690] fmp: add invalid pointer check
Boojin Kim [Fri, 22 Mar 2019 04:49:15 +0000 (13:49 +0900)]
[RAMEN9610-13690] fmp: add invalid pointer check

Change-Id: I331b878539a60c86b65c98196b2630963e4d1eb2
Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
5 years ago[RAMEN9610-13676][Common][9610][7885][7872][7570] wlbt : Mac Randomization will not...
Mohit Ghuley [Thu, 21 Mar 2019 13:02:48 +0000 (18:32 +0530)]
[RAMEN9610-13676][Common][9610][7885][7872][7570] wlbt : Mac Randomization will not be performed during Scheduled Scan.

Mac Randomization will not be performed during Scheduled Scan.

Change-Id: Ia65a2f2c10228d2ac78f3db6e73b00a93de53329
SCSC-Bug-Id: SSB-50850
Signed-off-by: Mohit Ghuley <mohit.ghuley@samsung.com>
5 years ago[RAMEN9610-13673][9610] soc: samsung: cal-if: Add to clear cpu sequencer when cpu up.
lakkyung.jung [Wed, 20 Mar 2019 08:56:19 +0000 (17:56 +0900)]
[RAMEN9610-13673][9610] soc: samsung: cal-if: Add to clear cpu sequencer when cpu up.

Change-Id: Ie88223a5ebb6323293f5dbab8c4388634a898d1f
Signed-off-by: lakkyung.jung <lakkyung.jung@samsung.com>
5 years ago[RAMEN9610-13671][COMMON] media: radio: Optimize seek time
Yunsu Kim [Fri, 22 Mar 2019 05:33:18 +0000 (14:33 +0900)]
[RAMEN9610-13671][COMMON] media: radio: Optimize seek time

Change-Id: I1047b8a5f19f8309c29b4b56478b96a0d6d8633d
Signed-off-by: Yunsu Kim <iamyunsu.kim@samsung.com>
5 years ago[RAMEN9610-13665][common] Wlbt: FM request API should signal active mxman
Ivan Priest [Wed, 20 Mar 2019 15:03:55 +0000 (15:03 +0000)]
[RAMEN9610-13665][common] Wlbt: FM request API should signal active mxman

Signal FM requests to the "active" mxman context,
so that requests can be consumed during WLBT recovery,
instead of querying via the service structure that
could be NULL during the recovery phase.

Remove the service driver API for FM LDO control.

Change-Id: Icd3dadb0105ab3266639f2b83d81c353a89cc0b0
SCSC-Bug-Id: SSB-50826
Signed-off-by: Ivan Priest <i.priest@samsung.com>
5 years ago[RAMEN9610-13636][common][prevent][9610] wlbt: fix CID261400
Youngsoo [Thu, 21 Mar 2019 10:54:38 +0000 (19:54 +0900)]
[RAMEN9610-13636][common][prevent][9610] wlbt: fix CID261400

CID 261400 (#1 of 1): Resource leak (RESOURCE_LEAK)
8. leaked_storage: Variable firm going out of scope leaks the storage it points to.

func should return after free resources.

Change-Id: I9dcb8ff93c05785e6da10bab24660bb4f97a2db6

5 years ago[RAMEN9610-13634][common][9610] wlbt: NAPI: prevent issues in hip4.c
Debabrata Purohit [Wed, 20 Mar 2019 16:20:33 +0000 (16:20 +0000)]
[RAMEN9610-13634][common][9610] wlbt: NAPI: prevent issues in hip4.c

Resolve Prevent reported issues in hip4.c

Change-Id: I5f57e53c546242b3f789b8f8921f0e710fe77916
SCSC-Bug-Id: SSB-50793
Signed-off-by: Debabrata Purohit <d.purohit@samsung.com>
5 years ago[RAMEN9610-13634][common][7570][7872][7885][9610] wlbt: Prevent issues in nl80211_ven...
Srishti Piplani [Wed, 20 Mar 2019 11:09:05 +0000 (16:39 +0530)]
[RAMEN9610-13634][common][7570][7872][7885][9610] wlbt: Prevent issues in nl80211_vendor.c and cfg80211_ops.c

Changes done to fix prevent issues in nl80211_vendor.c
and cfg80211_ops.c files.

Change-Id: Icffd273de1c0a0dde1e201b73fc3709df0e5e1d4
SCSC-Bug-Id: SSB-50792
Signed-off-by: Srishti Piplani <srishti.p@samsung.com>
5 years agowlbt: Disable SMAPPER in SISO phone
Albert Cano [Fri, 1 Mar 2019 08:45:54 +0000 (08:45 +0000)]
wlbt: Disable SMAPPER in SISO phone

Disable SMAPPEr in SISO phones as it is not required and it
could cause ITMON issues.

Moto-CRs-Fixed: (CR)
SCSC-Bug-Id: SMAPPER_DISABLED

Change-Id: If4da74599bf0235185c62ade6e074e23de46f662
Signed-off-by: Albert Cano <a.canocamps@samsung.com>
Signed-off-by: sunyue5 <sunyue5@motorola.com>
Reviewed-on: https://gerrit.mot.com/1321241
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Zhang <zhangj10@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

5 years agoAudio:Remove cirrus patch
yaozm1 [Fri, 22 Mar 2019 03:23:07 +0000 (11:23 +0800)]
Audio:Remove cirrus patch

Revert "(CR):Asoc:Apply cirrus' patch to fix hp detect issue"

This reverts commit 2ffd055d897360e03c7446ad5b33ab747b6bdba0.

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

5 years ago[RAMEN9610-13624] sound: core: decrease read/write timeout to 1 second
hayoung78.joo [Thu, 21 Mar 2019 05:17:42 +0000 (14:17 +0900)]
[RAMEN9610-13624] sound: core: decrease read/write timeout to 1 second

Read/Write timeout was 10 seconds.
But default timeout value of android audio server is 5 second.
If read/write is blocked for 10 seconds in read/write ioctl,
it exceeds the timeout of audio server.

Change-Id: Ia823419594f4a3e35ab38bc2d3103acaf99545be
Signed-off-by: hayoung78.joo <hayoung78.joo@samsung.com>
5 years ago[RAMEN9610-13621] crypto: disable cfi on crypto_cts_encrypt
Munjoo Kim [Thu, 21 Mar 2019 05:29:34 +0000 (14:29 +0900)]
[RAMEN9610-13621] crypto: disable cfi on crypto_cts_encrypt

Change-Id: I9e7adc6b8700e7a4ba7fb8a33d229ae243e59539
Signed-off-by: Munjoo Kim <munjoo.kim@samsung.com>
5 years ago[RAMEN9610-13609][common][RAMEN9610-13609][9610] wlbt: scheduling while atomic
Debabrata Purohit [Wed, 20 Mar 2019 11:22:00 +0000 (11:22 +0000)]
[RAMEN9610-13609][common][RAMEN9610-13609][9610] wlbt: scheduling while atomic

Cause:
For intra BSS relay, the SKBs are allocated with
GFP_KERNEL flag. this is done in atomic context, which can be fatal.

Resolution:
Allocate the SKBs with GFP_ATOMIC flag.

Change-Id: I667ad314c7c1f95b7b2bda73a9d2252668b6efa6
SCSC-Bug-Id: SSB-50805
Signed-off-by: Debabrata Purohit <d.purohit@samsung.com>
5 years ago[RAMEN9610-13608][COMMON][RAMEN9610-13599] lib: dss: fix to set debug level
Hosung Kim [Thu, 21 Mar 2019 02:20:17 +0000 (11:20 +0900)]
[RAMEN9610-13608][COMMON][RAMEN9610-13599] lib: dss: fix to set debug level

This commit fixes to set wrong debug level.
It was detected by prevent.

Change-Id: I5a7f76da3bb083e0091644b317e03bf38fc68896
Signed-off-by: Hosung Kim <hosung0.kim@samsung.com>
5 years ago[RAMEN9610-13448] arm64: remove dma zone
Cho KyongHo [Tue, 19 Mar 2019 09:55:42 +0000 (18:55 +0900)]
[RAMEN9610-13448] arm64: remove dma zone

DMA zone (ZONE_DMA) is not necessary in Exynos SoCs because all
peripherals are capable of 36-bit wide DMA access.

Change-Id: I04749a3cd42e3d07d3a41ba1a2259c1159931173
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
5 years agoAsoc:Apply cirrus' patch to fix hp detect issue
yaozm1 [Thu, 21 Mar 2019 05:55:59 +0000 (13:55 +0800)]
Asoc:Apply cirrus' patch to fix hp detect issue

From: Charles Keepax <ckeepax@opensource.cirrus.com>
Date: Tue, 19 Mar 2019 17:29:02 +0000
Subject: [PATCH] ASoC: madera: Force EP demux over to headphones to run HPDET

The EP demux needs to be set to the headphones for the HPDET to run the
correct value.

Change-Id: I7bcc0cdca28b2a1b3144ee03f3af84056ddcaba4
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: yaozm1 <yaozm1@mt.com>
Change-Id: I24c057510dfff3b531cd75e3c8aafa255727e87e
Reviewed-on: https://gerrit.mot.com/1324759
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

5 years ago[COMMON][9610] drivers : fix pd communication timing for mac
Junhan Bae [Wed, 20 Mar 2019 11:37:53 +0000 (20:37 +0900)]
[COMMON][9610] drivers : fix pd communication timing for mac

Macbook pro send the message too fast
Busywait to get the  next messsage immediately
if it is from mac

Mot-CRs-Fixed:(CR)

Change-Id: I94d4c34476773a3ffabe33c2c62e82bcb90688ad
Signed-off-by: Junhan Bae <junhan84.bae@samsung.com>
Reviewed-on: https://gerrit.mot.com/1324672
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

5 years ago[RAMEN9610-13496][COMMON] arm64: configs: enable USB video class to support USB camera
Kisang Lee [Wed, 20 Mar 2019 02:20:06 +0000 (11:20 +0900)]
[RAMEN9610-13496][COMMON] arm64: configs: enable USB video class to support USB camera

Change-Id: I32e91b9108a6af90d6b0d5bbdb12d6769f26566e
Signed-off-by: Kisang Lee <kisang80.lee@samsung.com>
5 years ago[RAMEN9610-13496][COMMON] media: vb2: modify code to support USB camera
Kisang Lee [Wed, 20 Mar 2019 02:09:50 +0000 (11:09 +0900)]
[RAMEN9610-13496][COMMON] media: vb2: modify code to support USB camera

Compile error occures after enable CONFIG_USB_VIDEO_CLASS. This patch
modified code to fit changed function prototype.

Change-Id: Iee717c5da94be504a9237528d95334b6a6762225
Signed-off-by: Kisang Lee <kisang80.lee@samsung.com>
5 years ago[COMMON] fimc-is2: update 2x5sp setting (v1.4a)
Wooyeon Kim [Mon, 18 Mar 2019 07:45:38 +0000 (16:45 +0900)]
[COMMON] fimc-is2: update 2x5sp setting (v1.4a)

 - applied 3DHDR tune setting

 PR JIRA ID: CPR-838

CRs-fixed: (CR)

Change-Id: I3f8f132de39ff994424f332775560a4303495873
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
Reviewed-on: https://gerrit.mot.com/1324234
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

5 years ago[COMMON] fimc-is2: change vendor_luxStandard to float
Sangwoo Park [Fri, 15 Mar 2019 03:01:21 +0000 (12:01 +0900)]
[COMMON] fimc-is2: change vendor_luxStandard to float

CRs-fixed: (CR)

Change-Id: Ibf1d24630df7bcca821cb00b317c7e1db1a683b4
Signed-off-by: Sangwoo Park <sw5771.park@samsung.com>
Reviewed-on: https://gerrit.mot.com/1324233
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

5 years ago[COMMON] fimc-is2: Fix ois bu24218gwl not work
libm1 [Tue, 19 Mar 2019 13:10:15 +0000 (21:10 +0800)]
[COMMON] fimc-is2: Fix ois bu24218gwl not work

Update the boot sequence

CRs-fixed: (CR)

Change-Id: I2035a0257440a90ef02cafec6ab391ef536361a2
Signed-off-by: libm1 <libm1@mt.com>
Reviewed-on: https://gerrit.mot.com/1323731
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Biming Li <libm1@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Submit-Approved: Jira Key

5 years ago[common][RAMEN9610-13443][9610] wlbt: host update 6.64.2
Youngsoo [Fri, 15 Mar 2019 09:07:23 +0000 (18:07 +0900)]
[common][RAMEN9610-13443][9610] wlbt: host update 6.64.2

1. Protect SMAPPER from possible spurious interrupts
2. slsi_convert_tlv_data_to_value should be outside
3. NAPI: config RPS
4. NAPI: increase retry time when no space in FB queue
5. NAPI: false watchdog trigger
6. [9610][7885][7872][7570] wlbt: Notify CFG regarding the Disconnection, on ...
7. [9610][7885][7872][7570] wlbt: Perform Dual Interface registration in ...
8. wlbt: update host induced error code
9. increment scsc_release to 6.64.2

Change-Id: I0bc936a5ce4ecdd905b1deba629db7f816fc43f3
Signed-off-by: Youngsoo <youngss.kim@samsung.com>
5 years agolcd: modify lcd init code for lcd internal power jump
xingbin [Tue, 19 Mar 2019 08:17:21 +0000 (16:17 +0800)]
lcd: modify lcd init code for lcd internal power jump

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

5 years agolcd: modify lcd init code for lcd internal power jump
xingbin [Wed, 13 Mar 2019 07:49:21 +0000 (15:49 +0800)]
lcd: modify lcd init code for lcd internal power jump

modify himax lcd init code for lcd internal power jump
Note:current stage solution, maybe update the final solution later

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

5 years ago[COMMON] fimc-is2: add & fixed a 2x5 3dhdr stat
Wooyeon Kim [Thu, 14 Mar 2019 08:59:17 +0000 (17:59 +0900)]
[COMMON] fimc-is2: add & fixed a 2x5 3dhdr stat

 - motion stat update interface added
 - fix wrong register update method for some stats

 PR JIRA ID: CPR-828

CRs-fixed: (CR)

Change-Id: Idab1c8dceb671cd8a1f22fa2785455d3d4ea7ba8
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
Reviewed-on: https://gerrit.mot.com/1323546
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Submit-Approved: Jira Key

5 years ago[COMMON] fimc-is2: update 2x5sp setting (v1.4)
Wooyeon Kim [Thu, 7 Mar 2019 06:51:54 +0000 (15:51 +0900)]
[COMMON] fimc-is2: update 2x5sp setting (v1.4)

 PR JIRA ID: CPR-828

CRs-fixed: (CR)

Change-Id: I65f1cf389ae7e85bca25a2f54e3b1ae0a8cfdfcf
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
Reviewed-on: https://gerrit.mot.com/1323545
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Submit-Approved: Jira Key

5 years agosensor: adjust the log
Wen Xie [Tue, 19 Mar 2019 09:52:53 +0000 (17:52 +0800)]
sensor: adjust the log

Adjust the log reg:
X933X_REG_PROX_ADC_MIN->X933X_REG_PROX_ADC_MAX.

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

5 years agoarm64/dts: Update Capsensor parameters
Wen Xie [Tue, 19 Mar 2019 07:58:03 +0000 (15:58 +0800)]
arm64/dts: Update Capsensor parameters

form vendor:
Add   Capsensor parameters.

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

5 years ago[RAMEN9610-13390][COMMON] mmc: dw_mmc: Change card_detect_delay
dukhyun kwon [Tue, 21 Aug 2018 07:26:45 +0000 (16:26 +0900)]
[RAMEN9610-13390][COMMON] mmc: dw_mmc: Change card_detect_delay

When SD card removed in slot that can happen
sometimes abnormal removed in 0ms delay.
So, Set to 200ms for stability.

Change-Id: Ie5bf4ff4424888ab0c9f1686bb02b3b7e1c7a76c
Signed-off-by: dukhyun kwon <d_hyun.kwon@samsung.com>
5 years ago[RAMEN9610-13376][COMMON] media: radio: align 0xFFF240 shared by WLBT
Yunsu Kim [Thu, 14 Mar 2019 10:46:32 +0000 (19:46 +0900)]
[RAMEN9610-13376][COMMON] media: radio: align 0xFFF240 shared by WLBT

Change-Id: I3eb970bac5033f02093edfd5d3fe79a997925c34
Signed-off-by: Yunsu Kim <iamyunsu.kim@samsung.com>
5 years ago[RAMEN9610-13333][COMMON] soc: samsung: seclog: add code which check valdation of...
Jang Hyunsung [Wed, 31 Oct 2018 04:15:45 +0000 (13:15 +0900)]
[RAMEN9610-13333][COMMON] soc: samsung: seclog: add code which check valdation of address

code which checks validation of v_log_addr address has been added.

Change-Id: Ia26ebdf8200fa3538fa3f27d03334df1cc716927
Signed-off-by: Jang Hyunsung <hs79.jang@samsung.com>
5 years agokernel: charger thermal level log
xuwei9 [Mon, 18 Mar 2019 06:16:02 +0000 (14:16 +0800)]
kernel: charger thermal level log

charger thermal current
level log

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

5 years ago[RAMEN9610-13366][COMMON] ufs: add ufs dump stuct log for ufs err debug.
dukhyun kwon [Thu, 17 Jan 2019 05:29:31 +0000 (14:29 +0900)]
[RAMEN9610-13366][COMMON] ufs: add ufs dump stuct log for ufs err debug.

Change-Id: Icba94e44882161e39d5e1e6aa20b120cf85812b9
Signed-off-by: dukhyun kwon <d_hyun.kwon@samsung.com>
5 years ago[RAMEN9610-13315][9610] include: fuelgauge: change capacity learning cycle
Keunho Hwang [Fri, 15 Mar 2019 05:38:08 +0000 (14:38 +0900)]
[RAMEN9610-13315][9610] include: fuelgauge: change capacity learning cycle

Change-Id: I4b388c11704ce6d3aa7cb3caea63c8769237773d
Signed-off-by: Keunho Hwang <keunho.hwang@samsung.com>
5 years ago[RAMEN9610-13159][common][MODAP-20690][9610] wlbt: NAPI: do not use GRO path in BA...
Debabrata Purohit [Mon, 11 Mar 2019 19:13:53 +0000 (19:13 +0000)]
[RAMEN9610-13159][common][MODAP-20690][9610] wlbt: NAPI: do not use GRO path in BA timer context

When releasing frames from BA timer context, do not use
napi_gro_receive() as that can corrupt the kernel GRO lists.

Resolution:
Use non-NAPI path when releasing frames from BA timer context.

Change-Id: I9ac803e0a69d6eca3bb8c69e1be8bdfb152b4058
SCSC-Bug-Id: SSB-50448
Signed-off-by: Debabrata Purohit <d.purohit@samsung.com>
5 years ago[RAMEN9610-13098][COMMON] soc: samsung: exynos-reboot: clear RAMDUMP SCRATCH register
Youngmin Nam [Mon, 11 Mar 2019 08:34:07 +0000 (17:34 +0900)]
[RAMEN9610-13098][COMMON] soc: samsung: exynos-reboot: clear RAMDUMP SCRATCH register

This patch clears RAMDUMP SCRATCH register in case of device power off.

As soon as the devcie power is down and then the device power is up with pin reset,
the device can enter fastboot mode when power up.
To avoid this situation we should clear RAMDUMP SCRATCH register.

Change-Id: I01c05fa6c67bc8ea1c7dcd11a4e2777f279c87af
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
5 years ago[RAMEN9610-13087][COMMON] i2c: s3c2410: Add IICCON SFR dump for debug
Kyungwoo Kang [Mon, 11 Mar 2019 05:02:27 +0000 (14:02 +0900)]
[RAMEN9610-13087][COMMON] i2c: s3c2410: Add IICCON SFR dump for debug

Change-Id: Iabbde5e3601a6f7d605b5859e30ebc34322f0062
Signed-off-by: Kyungwoo Kang <kwoo.kang@samsung.com>
5 years ago[COMMON] fimc-is2: update meta for flicker_detect
Sangwoo Park [Thu, 7 Mar 2019 06:39:00 +0000 (15:39 +0900)]
[COMMON] fimc-is2: update meta for flicker_detect

- JIRA : CPR-791

CRs-fixed: (CR)

Change-Id: Ib39bfa07f0916586f03dfeb76a2396f016f28922
Signed-off-by: Sangwoo Park <sw5771.park@samsung.com>
Reviewed-on: https://gerrit.mot.com/1321461
Tested-by: Jira Key
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
SLTApproved: Zhichao Chen <chenzc2@motorola.com>
Tested-by: Zhichao Chen <chenzc2@motorola.com>
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Submit-Approved: Jira Key

5 years agodriver:Add C type Rp current setting
xuwei9 [Thu, 7 Mar 2019 13:08:54 +0000 (22:08 +0900)]
driver:Add C type Rp current setting

Add c type Rp current
setting

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

Conflicts:
drivers/power/supply/s2mu00x_battery.c

5 years agokernel:turbo charger event of type-c
xuwei9 [Wed, 13 Mar 2019 10:14:06 +0000 (18:14 +0800)]
kernel:turbo charger event of type-c

turbo charger type-c
event

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

5 years agosensor: adjust the log
Wen Xie [Thu, 14 Mar 2019 03:09:01 +0000 (11:09 +0800)]
sensor: adjust the log

1. adjust the log format
2. add log to dump adc, raw data and use filter

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

5 years agokernel:battery full to 99 fast
xuwei9 [Wed, 13 Mar 2019 08:10:03 +0000 (16:10 +0800)]
kernel:battery full to 99 fast

battery full to 99
fast

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

Conflicts:
drivers/power/supply/s2mu00x_battery.c
drivers/power/supply/s2mu106_fuelgauge.c

5 years ago[LV][RAMEN9610-12699][Robusta2] arm64: dts: Set pull up/down disable at SD_SIM_DET...
JaeHun Jung [Thu, 28 Feb 2019 01:49:03 +0000 (10:49 +0900)]
[LV][RAMEN9610-12699][Robusta2] arm64: dts: Set pull up/down disable at  SD_SIM_DET pin.

When use active high detect case that sometimes have problem SIM detect floating issue.
So, Change pull up/down state from down to disable.

Moto-CRs-Fixed: (CR)
Change-Id: I3161fdfc5ccec17e9f20991c9c5fa9724fcf2593
Signed-off-by: JaeHun Jung <jh0801.jung@samsung.com>
Reviewed-on: https://gerrit.mot.com/1320002
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Junfang Zhang <zhang10@motorola.com>
Tested-by: Junfang Zhang <zhang10@motorola.com>
Submit-Approved: Jira Key

5 years agoarm64/dts: Update Capsensor parameters
Wen Xie [Tue, 12 Mar 2019 10:28:15 +0000 (18:28 +0800)]
arm64/dts: Update Capsensor parameters

8024--RegAfeParamsPh0--FREQ_PH0=b11011: b10001: FOsc/88 (~45.45 kHz)
802C--RegAfeParamsPh1--FREQ_PH1=b11011: b10001: FOsc/88 (~45.45 kHz)

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

5 years ago[RAMEN9610-13083][9610] drivers: battery: use offset for max_rawsoc calc.
Keunho Hwang [Sun, 10 Mar 2019 05:43:05 +0000 (14:43 +0900)]
[RAMEN9610-13083][9610] drivers: battery: use offset for max_rawsoc calc.

Change-Id: Ifae02fb2cdde804ff4ffd128b8b901c6b8aaeccb
Signed-off-by: Keunho Hwang <keunho.hwang@samsung.com>
5 years ago[RAMEN9610-13080][COMMON] media: radio: revert workaround for ldo control unstable
Yunsu Kim [Sat, 9 Mar 2019 06:45:49 +0000 (15:45 +0900)]
[RAMEN9610-13080][COMMON] media: radio: revert workaround for ldo control unstable

Change-Id: I92d332436694ad206b14a2940f3283e342ed68b2
Signed-off-by: Yunsu Kim <iamyunsu.kim@samsung.com>
5 years ago[RAMEN9610-13050][COMMON] media: radio: Modify AGC tunning value
Yunsu Kim [Fri, 8 Mar 2019 11:09:05 +0000 (20:09 +0900)]
[RAMEN9610-13050][COMMON] media: radio: Modify AGC tunning value

- Fix FM radio signal is worst then before

Change-Id: I0e8727717406983efa13340b1202009e57666883
Signed-off-by: Yunsu Kim <iamyunsu.kim@samsung.com>
5 years ago[RAMEN9610-13049][common][9610][7885][7872][7570] wlbt: Update P2P GO Channel in...
Mohit Ghuley [Fri, 8 Mar 2019 07:29:04 +0000 (12:59 +0530)]
[RAMEN9610-13049][common][9610][7885][7872][7570] wlbt: Update P2P GO Channel in Driver, on receiving Channel Switched Indication from Firmware.

Update P2P GO Channel in Driver, on receiving
Channel Switched Indication from Firmware.

Change-Id: Idb9f3076231d915d62f61acc73cf34f2f28bf99c
SCSC-Bug-Id: SSB-50359
Signed-off-by: Mohit Ghuley <mohit.ghuley@samsung.com>
5 years ago[RAMEN9610-13030][9610] drivers: battery: Add C type Rp current setting
Keunho Hwang [Thu, 7 Mar 2019 13:08:54 +0000 (22:08 +0900)]
[RAMEN9610-13030][9610] drivers: battery: Add C type Rp current setting

Change-Id: I9525b6c4b70600d97283aefecb848ab0bfe38a9a
Signed-off-by: Keunho Hwang <keunho.hwang@samsung.com>
5 years ago[RAMEN9610-13030][9610] drivers : add ccic rp current level check fucntion
Junhan Bae [Thu, 7 Mar 2019 12:52:55 +0000 (21:52 +0900)]
[RAMEN9610-13030][9610] drivers : add ccic rp current level check fucntion

Change-Id: I6e300c7e3f8b1024370d2a424d2c6e6ced5dc348
Signed-off-by: Junhan Bae <junhan84.bae@samsung.com>
5 years agoabox:enable timer 0 at wake up from WFI
yaozm1 [Wed, 13 Mar 2019 07:37:31 +0000 (15:37 +0800)]
abox:enable timer 0 at wake up from WFI

Apply patch from Samsung:
Timer can be enabled without proper setting, if kernel enable
a timer before initializing by firmware. It cause malfunction
on the ABOX.

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

5 years agoasoc:register abox log debugfs file node at system probe
yaozm1 [Wed, 13 Mar 2019 07:28:04 +0000 (15:28 +0800)]
asoc:register abox log debugfs file node at system probe

Apply patch from Samsung

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

5 years agoMadera:Sync patch from ODM's base
Yao Zhengming [Thu, 7 Mar 2019 02:01:04 +0000 (11:01 +0900)]
Madera:Sync patch from ODM's base

[LV][RAMEN9610-12975][9610] extcon: madera: modified the impedence of LINE OUT

Change-Id: I30038c65cceac7bb338f250d0cadd0de637d7b5c
Signed-off-by: ShinHyung <s47.kang@samsung.com>
Signed-off-by: yaozm1 <yaozm1@mt.com>
Reviewed-on: https://gerrit.mot.com/1319077
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

5 years agoconfig:disable s2mu106 haptic driver
xuwei9 [Mon, 11 Mar 2019 08:29:44 +0000 (16:29 +0800)]
config:disable s2mu106 haptic driver

disable s2mu106 haptic
driver

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

5 years agodefconfig: disable crash key
zhaoxp3 [Mon, 11 Mar 2019 08:20:22 +0000 (16:20 +0800)]
defconfig: disable crash key

disable crash key for userdebug build
Change-Id: I9ec7a69e51ce9c4e673a77a48b3cf86daf4218ee
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1319052
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key

5 years agoarm64/dts: Update Capsensor parameters
Wen Xie [Mon, 11 Mar 2019 02:19:23 +0000 (10:19 +0800)]
arm64/dts: Update Capsensor parameters

8024--RegAfeParamsPh0--FREQ_PH0=b11011: FOsc/352 (~11.36 kHz)
802C--RegAfeParamsPh1--FREQ_PH1=b11011: FOsc/352 (~11.36 kHz)
8034--RegAfeParamsPh2--FREQ_PH2=b11011: b10001: FOsc/88 (~45.45 kHz)
803C--RegAfeParamsPh3--FREQ_PH3=b11011: b10001: FOsc/88 (~45.45 kHz)
8044--RegAfeParamsPh4--FREQ_PH4=b11011: b10001: FOsc/88 (~45.45 kHz)

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

5 years ago[COMMON] fimc-is2: fix wrong refer TDNR parameters
Wooyeon Kim [Wed, 6 Mar 2019 04:58:16 +0000 (13:58 +0900)]
[COMMON] fimc-is2: fix wrong refer TDNR parameters

 - each scenario setfile parameter saved to cur_setfile
   so, fix code in tdnr parameters

 PR JIRA ID: CPR-784

CRs-fixed: (CR)

Change-Id: I6fa10699c6ed7069c5b9cec99e2201bf16ad49d8
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
Reviewed-on: https://gerrit.mot.com/1318419
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

5 years ago[COMMON]fimc-is2: fix rear3 camera level selection error
xff [Thu, 7 Mar 2019 12:43:02 +0000 (20:43 +0800)]
[COMMON]fimc-is2: fix rear3 camera level selection error

CRs-fixed: (CR)

Change-Id: I53014a93279fdef118a99db5b3a192f4228a9889
Signed-off-by: xff <fangfang.xu@samsung.com>
Reviewed-on: https://gerrit.mot.com/1318418
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

5 years agoarm64/dts: camera: : add rear3 dvfs scenario
xff [Thu, 7 Mar 2019 12:36:35 +0000 (20:36 +0800)]
arm64/dts: camera:  : add rear3 dvfs scenario

CRs-fixed: (CR)

Change-Id: Icce70591d8c57f53eec692fac39832141159d5b1
Signed-off-by: xff <fangfang.xu@samsung.com>
Reviewed-on: https://gerrit.mot.com/1318417
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

5 years agoarch/arm: sync with samsung to remove erase on sdcard
dengwei1 [Fri, 8 Mar 2019 03:15:07 +0000 (11:15 +0800)]
arch/arm: sync with samsung to remove erase on sdcard

sync with samsung platfor code
to remove the erase on sdcard

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

5 years ago[RAMEN9610-13018][COMMON] iommu/exynos: check return value and retry if PTW fault
Janghyuck Kim [Fri, 8 Mar 2019 02:19:54 +0000 (11:19 +0900)]
[RAMEN9610-13018][COMMON] iommu/exynos: check return value and retry if PTW fault

Change-Id: Ic6eabb2d13a22f629fe8aa7384e96fe01228ce8a
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
5 years ago[RAMEN9610-12969][COMMON] iommu/exynos: retry when PTW fault occur
Janghyuck Kim [Tue, 5 Mar 2019 06:53:32 +0000 (15:53 +0900)]
[RAMEN9610-12969][COMMON] iommu/exynos: retry when PTW fault occur

Change-Id: I3e425c2e611d65c6b619b3e21c46fce7de7fde18
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
5 years ago[RAMEN9610-12937][COMMON] media: radio: fix FM open fail
Yunsu Kim [Wed, 6 Mar 2019 04:53:17 +0000 (13:53 +0900)]
[RAMEN9610-12937][COMMON] media: radio: fix FM open fail

Add polling for wlbt shared ldo stable

Change-Id: Ic3f80ca8a419238b2ad37028c1b2595855777d79
Signed-off-by: Yunsu Kim <iamyunsu.kim@samsung.com>
5 years ago[RAMEN9610-12909][COMMON] muic: irq init sequnece change
Kim Taejeong [Tue, 5 Mar 2019 05:27:35 +0000 (14:27 +0900)]
[RAMEN9610-12909][COMMON] muic: irq init sequnece change

Problem: Kernel panic
Cause: Before work queue init, the work is called in ISR
Solution: Sequence is modified that the order on work queue and irq init
is reversed.

Change-Id: I99dfac1f36d01bb1c608e71cb88a95ad190aa34f
Signed-off-by: Kim Taejeong <tj.kim@samsung.com>
5 years agomedia: em28xx: Fix use-after-free when disconnecting
Matthias Schwarzott [Mon, 30 Oct 2017 10:07:29 +0000 (06:07 -0400)]
media: em28xx: Fix use-after-free when disconnecting

[ Upstream commit 910b0797fa9e8af09c44a3fa36cb310ba7a7218d ]

Fix bug by moving the i2c_unregister_device calls after deregistration
of dvb frontend.

The new style i2c drivers already destroys the frontend object at
i2c_unregister_device time.
When the dvb frontend is unregistered afterwards it leads to this oops:

  [ 6058.866459] BUG: unable to handle kernel NULL pointer dereference at 00000000000001f8
  [ 6058.866578] IP: dvb_frontend_stop+0x30/0xd0 [dvb_core]
  [ 6058.866644] PGD 0
  [ 6058.866646] P4D 0

  [ 6058.866726] Oops: 0000 [#1] SMP
  [ 6058.866768] Modules linked in: rc_pinnacle_pctv_hd(O) em28xx_rc(O) si2157(O) si2168(O) em28xx_dvb(O) em28xx(O) si2165(O) a8293(O) tda10071(O) tea5767(O) tuner(O) cx23885(O) tda18271(O) videobuf2_dvb(O) videobuf2_dma_sg(O) m88ds3103(O) tveeprom(O) cx2341x(O) v4l2_common(O) dvb_core(O) rc_core(O) videobuf2_memops(O) videobuf2_v4l2(O) videobuf2_core(O) videodev(O) media(O) bluetooth ecdh_generic ums_realtek uas rtl8192cu rtl_usb rtl8192c_common rtlwifi usb_storage snd_hda_codec_realtek snd_hda_codec_hdmi snd_hda_codec_generic i2c_mux snd_hda_intel snd_hda_codec snd_hwdep x86_pkg_temp_thermal snd_hda_core kvm_intel kvm irqbypass [last unloaded: videobuf2_memops]
  [ 6058.867497] CPU: 2 PID: 7349 Comm: kworker/2:0 Tainted: G        W  O    4.13.9-gentoo #1
  [ 6058.867595] Hardware name: MEDION E2050 2391/H81H3-EM2, BIOS H81EM2W08.308 08/25/2014
  [ 6058.867692] Workqueue: usb_hub_wq hub_event
  [ 6058.867746] task: ffff88011a15e040 task.stack: ffffc90003074000
  [ 6058.867825] RIP: 0010:dvb_frontend_stop+0x30/0xd0 [dvb_core]
  [ 6058.867896] RSP: 0018:ffffc90003077b58 EFLAGS: 00010293
  [ 6058.867964] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 000000010040001f
  [ 6058.868056] RDX: ffff88011a15e040 RSI: ffffea000464e400 RDI: ffff88001cbe3028
  [ 6058.868150] RBP: ffffc90003077b68 R08: ffff880119390380 R09: 000000010040001f
  [ 6058.868241] R10: ffffc90003077b18 R11: 000000000001e200 R12: ffff88001cbe3028
  [ 6058.868330] R13: ffff88001cbe68d0 R14: ffff8800cf734000 R15: ffff8800cf734098
  [ 6058.868419] FS:  0000000000000000(0000) GS:ffff88011fb00000(0000) knlGS:0000000000000000
  [ 6058.868511] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
  [ 6058.868578] CR2: 00000000000001f8 CR3: 00000001113c5000 CR4: 00000000001406e0
  [ 6058.868662] Call Trace:
  [ 6058.868705]  dvb_unregister_frontend+0x2a/0x80 [dvb_core]
  [ 6058.868774]  em28xx_dvb_fini+0x132/0x220 [em28xx_dvb]
  [ 6058.868840]  em28xx_close_extension+0x34/0x90 [em28xx]
  [ 6058.868902]  em28xx_usb_disconnect+0x4e/0x70 [em28xx]
  [ 6058.868968]  usb_unbind_interface+0x6d/0x260
  [ 6058.869025]  device_release_driver_internal+0x150/0x210
  [ 6058.869094]  device_release_driver+0xd/0x10
  [ 6058.869150]  bus_remove_device+0xe4/0x160
  [ 6058.869204]  device_del+0x1ce/0x2f0
  [ 6058.869253]  usb_disable_device+0x99/0x270
  [ 6058.869306]  usb_disconnect+0x8d/0x260
  [ 6058.869359]  hub_event+0x93d/0x1520
  [ 6058.869408]  ? dequeue_task_fair+0xae5/0xd20
  [ 6058.869467]  process_one_work+0x1d9/0x3e0
  [ 6058.869522]  worker_thread+0x43/0x3e0
  [ 6058.869576]  kthread+0x104/0x140
  [ 6058.869602]  ? trace_event_raw_event_workqueue_work+0x80/0x80
  [ 6058.869640]  ? kthread_create_on_node+0x40/0x40
  [ 6058.869673]  ret_from_fork+0x22/0x30
  [ 6058.869698] Code: 54 49 89 fc 53 48 8b 9f 18 03 00 00 0f 1f 44 00 00 41 83 bc 24 04 05 00 00 02 74 0c 41 c7 84 24 04 05 00 00 01 00 00 00 0f ae f0 <48> 8b bb f8 01 00 00 48 85 ff 74 5c e8 df 40 f0 e0 48 8b 93 f8
  [ 6058.869850] RIP: dvb_frontend_stop+0x30/0xd0 [dvb_core] RSP: ffffc90003077b58
  [ 6058.869894] CR2: 00000000000001f8
  [ 6058.875880] ---[ end trace 717eecf7193b3fc6 ]---

Signed-off-by: Matthias Schwarzott <zzam@gentoo.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
5 years agoFROMGIT: binder: create node flag to request sender's security context
Todd Kjos [Mon, 14 Jan 2019 17:10:21 +0000 (09:10 -0800)]
FROMGIT: binder: create node flag to request sender's security context

To allow servers to verify client identity, allow a node
flag to be set that causes the sender's security context
to be delivered with the transaction. The BR_TRANSACTION
command is extended in BR_TRANSACTION_SEC_CTX to
contain a pointer to the security context string.

Signed-off-by: Todd Kjos <tkjos@google.com>
Reviewed-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit ec74136ded792deed80780a2f8baf3521eeb72f9
 https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
 master)
Change-Id: I44496546e2d0dc0022f818a45cMontanafeb1c1a92cb
Signed-off-by: Todd Kjos <tkjos@google.com>
Conflicts:
drivers/android/binder.c

5 years agobinder: fix race that allows malicious free of live buffer
Todd Kjos [Tue, 6 Nov 2018 23:55:32 +0000 (15:55 -0800)]
binder: fix race that allows malicious free of live buffer

commit 7bada55ab50697861eee6bb7d60b41e68a961a9c upstream.

Malicious code can attempt to free buffers using the BC_FREE_BUFFER
ioctl to binder. There are protections against a user freeing a buffer
while in use by the kernel, however there was a window where
BC_FREE_BUFFER could be used to free a recently allocated buffer that
was not completely initialized. This resulted in a use-after-free
detected by KASAN with a malicious test program.

This window is closed by setting the buffer's allow_user_free attribute
to 0 when the buffer is allocated or when the user has previously freed
it instead of waiting for the caller to set it. The problem was that
when the struct buffer was recycled, allow_user_free was stale and set
to 1 allowing a free to go through.

Signed-off-by: Todd Kjos <tkjos@google.com>
Acked-by: Arve Hjønnevåg <arve@android.com>
Cc: stable <stable@vger.kernel.org> # 4.14
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Conflicts:
drivers/android/binder.c

Change-Id: I00625d49bf5021ce1c706988e1b28d6b3803352d

5 years agoUPSTREAM: ANDROID: binder: change down_write to down_read
Minchan Kim [Mon, 7 May 2018 14:15:37 +0000 (23:15 +0900)]
UPSTREAM: ANDROID: binder: change down_write to down_read

binder_update_page_range needs down_write of mmap_sem because
vm_insert_page need to change vma->vm_flags to VM_MIXEDMAP unless
it is set. However, when I profile binder working, it seems
every binder buffers should be mapped in advance by binder_mmap.
It means we could set VM_MIXEDMAP in binder_mmap time which is
already hold a mmap_sem as down_write so binder_update_page_range
doesn't need to hold a mmap_sem as down_write.
Please use proper API down_read. It would help mmap_sem contention
problem as well as fixing down_write abuse.

Ganesh Mahendran tested app launching and binder throughput test
and he said he couldn't find any problem and I did binder latency
test per Greg KH request(Thanks Martijn to teach me how I can do)
I cannot find any problem, too.

Cc: Ganesh Mahendran <opensource.ganesh@gmail.com>
Cc: Joe Perches <joe@perches.com>
Cc: Arve Hjønnevåg <arve@android.com>
Cc: Todd Kjos <tkjos@google.com>
Reviewed-by: Martijn Coenen <maco@android.com>
Signed-off-by: Minchan Kim <minchan@kernel.org>
Reviewed-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 720c241924046aff83f5f2323232f34a30a4c281)

Change-Id: I8358ceaaab4030f7122c95308dcad59557cad411

5 years agoUPSTREAM: ANDROID: binder: correct the cmd print for BINDER_WORK_RETURN_ERROR
宋金时 [Thu, 10 May 2018 02:05:03 +0000 (02:05 +0000)]
UPSTREAM: ANDROID: binder: correct the cmd print for BINDER_WORK_RETURN_ERROR

When to execute binder_stat_br the e->cmd has been modifying as BR_OK
instead of the original return error cmd, in fact we want to know the
original return error, such as BR_DEAD_REPLY or BR_FAILED_REPLY, etc.
instead of always BR_OK, in order to avoid the value of the e->cmd is
always BR_OK, so we need assign the value of the e->cmd to cmd before
e->cmd = BR_OK.

Signed-off-by: songjinshi <songjinshi@xiaomi.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 838d5565669aa5bb7deb605684a5970d51d5eaf6)

Change-Id: I425b32c5419a491c6b9ceee7c00dde6513e0421d

5 years agoUPSTREAM: ANDROID: binder: remove 32-bit binder interface.
Martijn Coenen [Fri, 11 May 2018 08:45:24 +0000 (01:45 -0700)]
UPSTREAM: ANDROID: binder: remove 32-bit binder interface.

New devices launching with Android P need to use the 64-bit
binder interface, even on 32-bit SoCs [0].

This change removes the Kconfig option to select the 32-bit
binder interface. We don't think this will affect existing
userspace for the following reasons:
1) The latest Android common tree is 4.14, so we don't
   believe any Android devices are on kernels >4.14.
2) Android devices launch on an LTS release and stick with
   it, so we wouldn't expect devices running on <= 4.14 now
   to upgrade to 4.17 or later. But even if they did, they'd
   rebuild the world (kernel + userspace) anyway.
3) Other userspaces like 'anbox' are already using the
   64-bit interface.

Note that this change doesn't remove the 32-bit UAPI
itself; the reason for that is that Android userspace
always uses the latest UAPI headers from upstream, and
userspace retains 32-bit support for devices that are
upgrading. This will be removed as well in 2-3 years,
at which point we can remove the code from the UAPI
as well.

Finally, this change introduces build errors on archs where
64-bit get_user/put_user is not supported, so make binder
unavailable on m68k (which wouldn't want it anyway).

[0]: https://android-review.googlesource.com/c/platform/build/+/595193

Signed-off-by: Martijn Coenen <maco@android.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 1190b4e38f97023154e6b3bef61b251aa5f970d0)

Change-Id: I73dadf1d7b45a42bb18be5d5d3f5c090e61866de

5 years agoUPSTREAM: android: binder: Use true and false for boolean values
Gustavo A. R. Silva [Tue, 23 Jan 2018 18:04:27 +0000 (12:04 -0600)]
UPSTREAM: android: binder: Use true and false for boolean values

Assign true or false to boolean variables instead of an integer value.

This issue was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Cc: Todd Kjos <tkjos@android.com>
Cc: Martijn Coenen <maco@android.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 197410ad884eb18b31d48e9d8e64cb5a9e326f2f)

Change-Id: I30bed831d6b6ff2e9e3e521ccc5d6836f0b30944

5 years agoUPSTREAM: android: binder: Use octal permissions
Harsh Shandilya [Fri, 22 Dec 2017 14:07:02 +0000 (19:37 +0530)]
UPSTREAM: android: binder: Use octal permissions

checkpatch warns against the use of symbolic permissions,
this patch migrates all symbolic permissions in the binder
driver to octal permissions.

Test: debugfs nodes created by binder have the same unix
permissions prior to and after this patch was applied.

Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
Cc: "Arve Hjønnevåg" <arve@android.com>
Cc: Todd Kjos <tkjos@android.com>
Cc: Martijn Coenen <maco@android.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 21d02ddf716669e182a13b69b4dd928cf8ef5e0f)

Change-Id: I8152fe280ead1d04d89593e813a722f9eb5def27

5 years agoUPSTREAM: ANDROID: binder: make binder_alloc_new_buf_locked static and indent its...
Xiongwei Song [Thu, 14 Dec 2017 04:15:42 +0000 (12:15 +0800)]
UPSTREAM: ANDROID: binder: make binder_alloc_new_buf_locked static and indent its arguments

The function binder_alloc_new_buf_locked() is only used in this file, so
make it static. Also clean up sparse warning:

drivers/android/binder_alloc.c:330:23: warning: no previous prototype
for ‘binder_alloc_new_buf_locked’ [-Wmissing-prototypes]

In addition, the line of the function name exceeds 80 characters when
add static for this function, hence indent its arguments anew.

Signed-off-by: Xiongwei Song <sxwjean@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 3f827245463a57f5ef64a665e1ca64eed0da00a5)

Change-Id: I6b379df815d30f9b3e9f1dd50334375123b25bbc

5 years agoUPSTREAM: android: binder: Check for errors in binder_alloc_shrinker_init().
Tetsuo Handa [Wed, 29 Nov 2017 13:29:47 +0000 (22:29 +0900)]
UPSTREAM: android: binder: Check for errors in binder_alloc_shrinker_init().

Both list_lru_init() and register_shrinker() might return an error.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: Sherry Yang <sherryy@android.com>
Cc: Michal Hocko <mhocko@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 533dfb250d1c8d2bb8c9b65252f7b296b29913d4)

Change-Id: I5325ccaf34a04179ef3dae73dd8f3abfd6e21565

5 years ago[COMMON][9610] drivers : fix ccic driver for PD 2.0 communication
Junhan Bae [Mon, 4 Mar 2019 00:59:09 +0000 (09:59 +0900)]
[COMMON][9610] drivers : fix ccic driver for PD 2.0 communication

Mot-CRs-Fixed:(CR)
Fix the PD2.0 compliance issue
Pick up the changes from Samsung

Change-Id: I4bdbccbb2181d294318090211567f1f0998c88f8
Signed-off-by: Junhan Bae <junhan84.bae@samsung.com>
Reviewed-on: https://gerrit.mot.com/1317985
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key