GitHub/MotorolaMobilityLLC/kernel-slsi.git
5 years agomfd: cs47l35: Update codec reg value.
Wen Xie [Sat, 2 Nov 2019 04:08:40 +0000 (12:08 +0800)]
mfd: cs47l35: Update codec reg value.

cirrus vendor patch:
When detected the reg value in the cache is inconsistent with
the value in the hardware, update the hardware reg.

Change-Id: I8fb766819d5b05f8bbf9317471bf8f8fddf61227
Signed-off-by: Wen Xie <xiewen3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1448151
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhengming Yao <yaozm1@mt.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
(cherry picked from commit e0cd450d42a281814e06eed07584420d5f80555a)
Reviewed-on: https://gerrit.mot.com/1448422
Reviewed-by: Lu Lu <lulu2@mt.com>
SME-Granted: Lu Lu <lulu2@mt.com>
Submit-Approved: Lu Lu <lulu2@mt.com>

5 years agoRevert "(CR): Update codec parameters and timing."
Wen Xie [Sat, 2 Nov 2019 04:05:48 +0000 (12:05 +0800)]
Revert "(CR): Update codec parameters and timing."

revert cirrus vendor patch, have noise issue:
This reverts commit a4dc462f3f884caeebd6a4c61bd33377f11adbf3.

Change-Id: I3500a7b221acb8ca521b604d92ebdfeda83e9b3f
Reviewed-on: https://gerrit.mot.com/1448150
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhengming Yao <yaozm1@mt.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
(cherry picked from commit 643a8867c7c4fea383c2515d5d303c299cd04640)
Reviewed-on: https://gerrit.mot.com/1448421
Reviewed-by: Lu Lu <lulu2@mt.com>
SME-Granted: Lu Lu <lulu2@mt.com>
Submit-Approved: Lu Lu <lulu2@mt.com>

5 years agomfd: cs47l35: Update codec parameters and timing.
Wen Xie [Fri, 1 Nov 2019 05:12:47 +0000 (13:12 +0800)]
mfd: cs47l35: Update codec parameters and timing.

cirrus vendor patch:
1.Set Defenderault value of R102 R103 R104;
2.Adjusted a litter time for reset sequence.

Change-Id: I23f5c906ec17b5f9f3a0a5bd28ef5ffe115f2f48
Signed-off-by: Wen Xie <xiewen3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1447583
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhengming Yao <yaozm1@mt.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
(cherry picked from commit a4dc462f3f884caeebd6a4c61bd33377f11adbf3)
Reviewed-on: https://gerrit.mot.com/1447624
Reviewed-by: Lu Lu <lulu2@mt.com>
SME-Granted: Lu Lu <lulu2@mt.com>
Submit-Approved: Lu Lu <lulu2@mt.com>

5 years ago[RAMEN9610-20753][9610] ASoC: abox: requested cpu gear to hold the usage count of PM
ShinHyung [Tue, 10 Sep 2019 09:43:35 +0000 (18:43 +0900)]
[RAMEN9610-20753][9610] ASoC: abox: requested cpu gear to hold the usage count of PM

Change-Id: I71181515f075308319156c5964298cec18b71750
Signed-off-by: ShinHyung <s47.kang@samsung.com>
5 years ago[RAMEN9610-17320][9610] ASoC: abox: Direct clock control
ShinHyung [Tue, 4 Jun 2019 09:41:50 +0000 (18:41 +0900)]
[RAMEN9610-17320][9610] ASoC: abox: Direct clock control

To prevent the failure of the freezing task when entering suspend mode,
Change clock control method from gear_sync to set_rate.

Change-Id: Ieee64f5c90c7b4650de7259e32ca845190dbc8a9
Signed-off-by: ShinHyung <s47.kang@samsung.com>
5 years ago[RAMEN9610-17320][9610] ASoC: abox: added wake_lock to guarantee abox resume completion.
ShinHyung [Wed, 5 Jun 2019 08:58:48 +0000 (17:58 +0900)]
[RAMEN9610-17320][9610] ASoC: abox: added wake_lock to guarantee abox resume completion.

abox_boot_done_work_func(resume operation) didn't work before starting suspend scequence.
To avoid it, Added wake_lock to guarantee abox resume completion.

Change-Id: I531fbda221aaae4782e786e6e8673a7781803975
Signed-off-by: ShinHyung <s47.kang@samsung.com>
5 years ago[RAMEN9610-20513]ext4: zero out the unused memory region in the extent tree block
Sriram Rajagopalan [Fri, 10 May 2019 23:28:06 +0000 (19:28 -0400)]
[RAMEN9610-20513]ext4: zero out the unused memory region in the extent tree block

commit 592acbf16821288ecdc4192c47e3774a4c48bb64 upstream.

This commit zeroes out the unused memory region in the buffer_head
corresponding to the extent metablock after writing the extent header
and the corresponding extent node entries.

This is done to prevent random uninitialized data from getting into
the filesystem when the extent block is synced.

This fixes CVE-2019-11833.

Change-Id: I9ff154534e3285d1d729ad1318e61c8056528595
Signed-off-by: Sriram Rajagopalan <sriramr@arista.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
5 years ago[RAMEN9610-20513]BACKPORT: binder: Set end of SG buffer area properly.
Martijn Coenen [Tue, 9 Jul 2019 11:09:23 +0000 (13:09 +0200)]
[RAMEN9610-20513]BACKPORT: binder: Set end of SG buffer area properly.

In case the target node requests a security context, the
extra_buffers_size is increased with the size of the security context.
But, that size is not available for use by regular scatter-gather
buffers; make sure the ending of that buffer is marked correctly.

Bug: 136210786
Acked-by: Todd Kjos <tkjos@google.com>
Fixes: ec74136ded79 ("binder: create node flag to request sender's security context")
Signed-off-by: Martijn Coenen <maco@android.com>
Cc: stable@vger.kernel.org # 5.1+
Link: https://lore.kernel.org/r/20190709110923.220736-1-maco@android.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit a56587065094fd96eb4c2b5ad65571daad32156d)

Change-Id: I415785c0e210c51a5ae1c90e6783f2beb7bdd86c

5 years ago[RAMEN9610-20513]binder: fix possible UAF when freeing buffer
Todd Kjos [Wed, 12 Jun 2019 20:29:27 +0000 (13:29 -0700)]
[RAMEN9610-20513]binder: fix possible UAF when freeing buffer

commit a370003cc301d4361bae20c9ef615f89bf8d1e8a upstream.

There is a race between the binder driver cleaning
up a completed transaction via binder_free_transaction()
and a user calling binder_ioctl(BC_FREE_BUFFER) to
release a buffer. It doesn't matter which is first but
they need to be protected against running concurrently
which can result in a UAF.

Change-Id: Icc080b9009a4efcb0a1f038931ed4261b6646e3e
Signed-off-by: Todd Kjos <tkjos@google.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
5 years ago[RAMEN9610-19662]ALSA: usb-audio: Fix UAF decrement if card has no live interfaces...
Hui Peng [Mon, 3 Dec 2018 15:09:34 +0000 (16:09 +0100)]
[RAMEN9610-19662]ALSA: usb-audio: Fix UAF decrement if card has no live interfaces in card.c

If a USB sound card reports 0 interfaces, an error condition is triggered
and the function usb_audio_probe errors out. In the error path, there was a
use-after-free vulnerability where the memory object of the card was first
freed, followed by a decrement of the number of active chips. Moving the
decrement above the atomic_dec fixes the UAF.

[ The oriGinal problem was introduced in 3.1 kernel, while it was
  developed in a different form.  The Fixes tag below indicates the
  oriGinal commit but it doesn't mean that the patch is applicable
  cleanly. -- tiwai ]

Change-Id: Ic64cc07ddb298e37378ef8fad1556a8256eb8aa3
Fixes: 362e4e49abe5 ("ALSA: usb-audio - clear chip->probing on error exit")
Reported-by: Hui Peng <benquike@gmail.com>
Reported-by: Mathias Payer <mathias.payer@nebelwelt.net>
Signed-off-by: Hui Peng <benquike@gmail.com>
Signed-off-by: Mathias Payer <mathias.payer@nebelwelt.net>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
5 years ago[RAMEN9610-18971][LV][RAMEN9610-18971][nfc] Remove wake_lock
Wonchul Shin [Wed, 14 Aug 2019 06:50:52 +0000 (15:50 +0900)]
[RAMEN9610-18971][LV][RAMEN9610-18971][nfc] Remove wake_lock

Don't need to wake_lock on NFC driver

Change-Id: Ia24ef3b51a08868feb6f612598400496b9d263a2
Signed-off-by: Wonchul Shin <wchuls.shin@samsung.com>
Signed-off-by: Kim Gunho <gunho.kim@samsung.com>
5 years ago[RAMEN9610-17671][LV][RAMEN9610-17671][MODAP-35263][nfc] NFC PD pin set to off retry
Kiwoo Kwon [Mon, 1 Jul 2019 07:15:30 +0000 (16:15 +0900)]
[RAMEN9610-17671][LV][RAMEN9610-17671][MODAP-35263][nfc] NFC PD pin set to off retry

Change-Id: Idd2ddc09a59c74379658dabcb3cdf03a104186f9
Signed-off-by: Kiwoo Kwon <kiwo.kwon@samsung.com>
Signed-off-by: Kim Gunho <gunho.kim@samsung.com>
5 years ago[Troika ] scsi: ufs: Change SSU timeout from 5s to 23s.
JaeHun Jung [Tue, 27 Aug 2019 05:10:58 +0000 (14:10 +0900)]
[Troika ] scsi: ufs: Change SSU timeout from 5s to 23s.

Micron UFS SSU is spend 20s when disk full status.

Change-Id: Ic01638f71e82a9498d5f29ea595aeba298347f81
Signed-off-by: JaeHun Jung <jh0801.jung@samsung.com>
5 years agowlbt: Use cfg80211_connect_bss instead of cfg80211_connect_result MMI-PSA29.160-50 MMI-PSAS29.160-50-2
Jaya Prakash Sangaru [Thu, 22 Aug 2019 10:56:27 +0000 (16:26 +0530)]
wlbt: Use cfg80211_connect_bss instead of cfg80211_connect_result

When AP is chanGing channel, cfg80211 is having 2 scan results, one
with older channel and another with new channel. cfg80211_connect_result()
API allows cfg80211 to pick bss from its scan data base and in this case
cfg80211 sometimes picks older scan result and supplicant shows wrong
channel number. So use cfg80211_connect_bss instead of cfg80211_connect_result

Change-Id: I27fb6fe37731f97c104228d8515bc211ab5bbcc0
SCSC-Bug-Id: HOST-10749
Signed-off-by: Jaya Prakash Sangaru <j.sangaru@samsung.com>
5 years agofix the f2fs mount failed issue in low memory case
huangzq2 [Thu, 13 Jun 2019 06:34:20 +0000 (14:34 +0800)]
fix the f2fs mount failed issue in low memory case

On the RACK test, the SDcard often mount failed becuase of the
page allocation failure. After checked with f2fs owner, we can
use kvzmalloc to alloc non-continuous memory in case continuous
memory allocation failed.

Change-Id: Ifd83e8b9a6bff241ed851007a3b7aec49b413eb3
Signed-off-by: huangzq2 <huangzq2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1370212
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

5 years agodts: add pm-ignore-notify on mmc
dengwei1 [Fri, 16 Aug 2019 08:47:17 +0000 (16:47 +0800)]
dts: add pm-ignore-notify on mmc

add pm-ignore-notify om mmc
picked up from ODM patch

Change-Id: Ia551e6dac0aac97a945d97dd49eba49427d0e071
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1404595
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 agobinder: check for overflow when alloc for security context
Todd Kjos [Wed, 24 Apr 2019 19:31:18 +0000 (12:31 -0700)]
binder: check for overflow when alloc for security context

When allocating space in the target buffer for the security context,
make sure the extra_buffers_size doesn't overflow. This can only
happen if the given size is invalid, but an overflow can turn it
into a valid size. Fail the transaction if an overflow is detected.

Bug: 130571081
Change-Id: Ibaec652d2073491cc426a4a24004a848348316bf
Signed-off-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
5 years ago[LV] fbdev: dpu: lcd status notifier is added
hwangjae lee [Tue, 30 Jul 2019 05:10:50 +0000 (14:10 +0900)]
[LV] fbdev: dpu: lcd status notifier is added

Change-Id: I283f452e6ae88ddff4a7229d1e2b71c90c2d53ff
Signed-off-by: hwangjae lee <hj-yo.lee@samsung.com>
5 years ago[COMMON] drivers: modem_if: Apply LCD notification
Taejin Kim [Tue, 30 Jul 2019 10:40:01 +0000 (19:40 +0900)]
[COMMON] drivers: modem_if: Apply LCD notification

Change-Id: I8a5fd610cfa8bdbe1904437663191b319c109002
Signed-off-by: Taejin Kim <tj7.kim@samsung.com>
5 years agoTroika : vibrator reset itself when IC hang
dengwei1 [Mon, 12 Aug 2019 06:08:58 +0000 (14:08 +0800)]
Troika : vibrator reset itself when IC hang

check with IC vendor
reset the IC when it hang

Change-Id: I5a169e10a3d9b544ab7b041bf9e2fcad9d672f5b
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1400750
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

5 years ago[9610] drivers: muic: support bad TA
Kim Taejeong [Fri, 9 Aug 2019 06:43:11 +0000 (15:43 +0900)]
[9610] drivers: muic: support bad TA

Change-Id: I7ea2024f5800325daf4922aa3542b5d30bc4c006
Signed-off-by: Kim Taejeong <tj.kim@samsung.com>
5 years agoTroika : vib fix stop delay time
dengwei1 [Tue, 6 Aug 2019 01:57:08 +0000 (09:57 +0800)]
Troika : vib fix stop delay time

discuss with vendor
Troika  vib fix stop delay time

Change-Id: I6ff5a56adf7990b90e0edabb97907a8cef25d812
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1397444
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

5 years agowlbt: Channel_freq calculation in channel_switched_ind
Srishti Piplani [Tue, 23 Oct 2018 10:52:25 +0000 (16:22 +0530)]
wlbt: Channel_freq calculation in channel_switched_ind

Changes done for proper handling of channel frequency when
channel_switched_ind is received from the firmware.

Change-Id: Idf1bd49d5c1cd98c41cc28e49f8a912fb98add58
SCSC-Bug-Id: HOST-10251
Signed-off-by: Srishti Piplani <srishti.p@samsung.com>
5 years ago[RAMEN9610-18380][LV] scsi: scsi_sysfs: Remove async_suspend.
JaeHun Jung [Thu, 25 Jul 2019 04:05:09 +0000 (13:05 +0900)]
[RAMEN9610-18380][LV] scsi: scsi_sysfs: Remove async_suspend.

async_suspend sometimes make watchdog reset when suspend.
So, Disable async_suspend.

Change-Id: Ifb9286003ef25aee9f89599c32e4ea6f370806de
Signed-off-by: JaeHun Jung <jh0801.jung@samsung.com>
5 years ago[Troika ][RAMEN9610-18204] scsi: ufs: Change timeout for start_stop from 60s to 5s
JaeHun Jung [Fri, 19 Jul 2019 08:07:59 +0000 (17:07 +0900)]
[Troika ][RAMEN9610-18204] scsi: ufs: Change timeout for start_stop from 60s to 5s

Watchdog is 26s.
60s is too long in mobile device.
So, Change it.

Change-Id: Ic874ce9dca62649e9d33d25ee6251cc123e2001d
Signed-off-by: JaeHun Jung <jh0801.jung@samsung.com>
Signed-off-by: Kim Gunho <gunho.kim@samsung.com>
5 years ago[Troika ][RAMEN9610-18063] dts: battery: change max_rawsoc initial value
Keunho Hwang [Fri, 12 Jul 2019 05:21:13 +0000 (14:21 +0900)]
[Troika ][RAMEN9610-18063] dts: battery: change max_rawsoc initial value

Initially, this patch is released for Troika . But, for the request of
Wei Xu(xuwei9@mt.com), code change is applied to shared DT file of
Troika  & Robusta2.

Change-Id: Ia8f40095cf30de407da650af81dc056ed0b39fca
Signed-off-by: Keunho Hwang <keunho.hwang@samsung.com>
5 years ago[9610][7885][7872][7570] wlbt: Addition of Scheduled Scan condition, during Scan...
Mohit Ghuley [Tue, 7 May 2019 09:51:53 +0000 (15:21 +0530)]
[9610][7885][7872][7570] wlbt: Addition of Scheduled Scan condition, during Scan List Updation in Driver.

Addition of Scheduled Scan condition,
during Scan List Updation in Driver.

Change-Id: I41d244eeec2f1d0312cb991a44a4cd762c53cf8a
SCSC-Bug-Id: SSB-52411
Signed-off-by: Mohit Ghuley <mohit.ghuley@samsung.com>
5 years agoarm64/dts: Sensor: Modify Capsensor GPIO mode.
Wen Xie [Tue, 16 Jul 2019 08:30:46 +0000 (16:30 +0800)]
arm64/dts: Sensor: Modify Capsensor GPIO mode.

Modify CapSensor interrupt GPIO to pull-up mode,
Avoid virtual welding of pull-up resistance in factory.

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

5 years ago[prerelease][9610] muic: Support India Turbo-charger (SC-25)
Kim Taejeong [Wed, 10 Jul 2019 04:07:54 +0000 (13:07 +0900)]
[prerelease][9610] muic: Support India Turbo-charger (SC-25)

- Set VNMON Vref 0.5V -> 0.4V
- Set DP_src 0.6 -> 0.75

Change-Id: I0103a95440e734d34e5a49113b3c47a661ae7e27
Signed-off-by: Kim Taejeong <tj.kim@samsung.com>
5 years agoTroika : vibrator add delay before stop
dengwei1 [Tue, 9 Jul 2019 06:42:44 +0000 (14:42 +0800)]
Troika : vibrator add delay before stop

add delay before stop
pick up from awinic vendor

Change-Id: I01edc4c6719e75d81d6f01205ebd24e25538fbf5
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1383349
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 agoKane: input pick up touch firmware update from vendor
dengwei1 [Fri, 28 Jun 2019 07:01:47 +0000 (15:01 +0800)]
Kane: input pick up touch firmware update from vendor

input pick up touch firmware update
from himax vendor

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

5 years agousb: configfs: skip unregister gadget in secure
Yonghua Yan [Tue, 25 Jun 2019 06:04:04 +0000 (14:04 +0800)]
usb: configfs: skip unregister gadget in secure

There will be gadget driver unregister twice in USB secure
when try to set the UDC to none from userspace, which will cause
kernel panic in 4.9 kernel version, as there is a feature
about pending gadget driver list being added in this version.

As a solution, make sure gadget driver unregister or probe only
once over secure mode entry or usb configure from userspace.

Kernel BUG at ffffff8093067140 [verbose debug info unavailable]
Internal error: Accessing user space memory outside uaccess.h

Change-Id: I89f03afbf9716a95aae37e354cc0cb293b2ea090
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/1376192
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 agousb: configfs: synchronize the secure and udc_name state
Yonghua Yan [Thu, 27 Dec 2018 03:48:34 +0000 (11:48 +0800)]
usb: configfs: synchronize the secure and udc_name state

The gadget driver unregister/probe is not allowed to reentry
for the same udc.

As the conditions for gadget driver unregister/probe entry,
gadget secure and udc_name status should be synchronized.
Otherwise, in old implement code logic, there is still a chance
to fall into trouble of gadget driver unregister/probe reentry
for the same udc.

Change-Id: I6eb30a36eab84afd656f5bee9678e8d44933c6bc
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1287442
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1376191
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
5 years ago[prerelease][common][9610]wlbt : update packet filter for unwanted ARP packet
Yuseok Kim [Tue, 18 Jun 2019 11:00:19 +0000 (20:00 +0900)]
[prerelease][common][9610]wlbt : update packet filter for unwanted ARP packet

Sometimes, Client send unicast ARP packet with different IP range.
And, Wifi module processes it and wakes up the host.
But, It is weakness from the point of view of power consumption.

Since the desired ARP is offloaded from the FW,
the other ARP packets that are not needed will be dropped.

Change-Id: I34c0c7e29ca5deb1da7da899182e953db6bd7276

5 years ago[EKTroika -520] [9610] fimc-is2: remove logic that load initial position of actuator
Dohyun Kim [Fri, 21 Jun 2019 10:16:08 +0000 (19:16 +0900)]
[EKTroika -520] [9610] fimc-is2: remove logic that load initial position of actuator

CRs-fixed: (CR)

Change-Id: Ic426459443f7de03ea77c9a17cc7febaab0e9a0c
Signed-off-by: Dohyun Kim <dh5.kim@samsung.com>
Reviewed-on: https://gerrit.mot.com/1375546
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Biming Li <libm1@motorola.com>
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Submit-Approved: Jira Key

5 years ago[RAMEN9610-17224][COMMON] media: mfc: DRV5.0: apply spin_lock to ctx_ready
Sunyoung Kang [Tue, 26 Feb 2019 00:22:24 +0000 (09:22 +0900)]
[RAMEN9610-17224][COMMON] media: mfc: DRV5.0: apply spin_lock to ctx_ready

The ctx_ready() and set_bit() should be synchronized.
So this applies the spin_lock to ctx_ready() by using
new function mfc_ctx_ready_set_bit().

Change-Id: I366b64ccfaa18fe929c1a174531aa52c5a97b094
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
5 years ago[RAMEN9610-17224][COMMON] media: mfc: add the RES_CHANGE_INIT state to wait SEQ_DONE
Sunyoung Kang [Sun, 17 Feb 2019 08:50:50 +0000 (17:50 +0900)]
[RAMEN9610-17224][COMMON] media: mfc: add the RES_CHANGE_INIT state to wait SEQ_DONE

In case of DRC, if the g_fmt is called right after RES_CHANGE_INIT
it doesn't wait SEQ_DONE. And then the updated resolution is not applied
to dpb size. So this adds the RES_CHANGE_INIT state to condition for waiting SEQ_DONE.

Change-Id: If4ab14548db14cdb818f9393c043c4d2220bafe4
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
5 years ago[LV][RAMEN9610-16569] wlbt: filter abnormal ipv4 multicast packet
dujeonglee [Fri, 24 May 2019 12:05:43 +0000 (21:05 +0900)]
[LV][RAMEN9610-16569] wlbt: filter abnormal ipv4 multicast packet

Change-Id: I50511db5dcec9a9959670eb843ef87c3Defender99bcc
Signed-off-by: dujeonglee <dujeong.lee@samsung.com>
Signed-off-by: Kim Gunho <gunho.kim@samsung.com>
5 years agoRevert "(CR): wlbt: filter abnormal ipv4 multicast packet"
lingsen1 [Mon, 24 Jun 2019 07:10:26 +0000 (15:10 +0800)]
Revert "(CR): wlbt: filter abnormal ipv4 multicast packet"

This reverts commit fccc2713e6a8611d53d57e1c10f3e58da69cd75b.

5 years ago[RAMEN9610-16575]vsprintf: fix data type of variable in string_nocheck()
Youngmin Nam [Mon, 10 Jun 2019 08:15:37 +0000 (17:15 +0900)]
[RAMEN9610-16575]vsprintf: fix data type of variable in string_nocheck()

This patch fixes data type of precision with int.
The precision is declared as signed int in struct printf_spec.

Change-Id: Iaa6e2d074ed9d4ca191a8366489a394d79b62ac1
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
5 years ago[NEUS7920-845][COMMON] pinctrl: samsung: Add Exynos pin debug state
Jaehyoung Choi [Tue, 21 May 2019 04:34:05 +0000 (13:34 +0900)]
[NEUS7920-845][COMMON] pinctrl: samsung: Add Exynos pin debug state

In pin drvdata, you can see the current status of each pin.

Change-Id: I1eca9c3e5cbff60fba4bda6530a9f8435eaab28b
Signed-off-by: Jaehyoung Choi <jkkkkk.choi@samsung.com>
Signed-off-by: Shinbeom Choi <sbeom.choi@samsung.com>
5 years agokane: input update touch fw progress
dengwei1 [Wed, 19 Jun 2019 04:10:02 +0000 (12:10 +0800)]
kane: input update touch fw progress

update the touch fw progress
to make sure success

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

5 years ago[NEUS7920-849][9610] wlbt: increment scsc_release to 6.68.0
scsc_gerrit [Fri, 7 Jun 2019 09:43:01 +0000 (10:43 +0100)]
[NEUS7920-849][9610] wlbt: increment scsc_release to 6.68.0

Import FW for iteration 6.68.0

Change-Id: I0d53e730a5eb406113f685d02a20333527d36887
SCSC-Bug-Id: scsc_iteration_6.68.0_p_ww_stable
Signed-off-by: scsc_gerrit <scsc_gerrit@samsung.com>
5 years ago[NEUS7920-849]wlbt: prevent teardown when gdb client open
Ivan Priest [Thu, 9 May 2019 08:50:02 +0000 (09:50 +0100)]
[NEUS7920-849]wlbt: prevent teardown when gdb client open

Prevent mxman_close() from tearing down when moredump
is in progress

Change-Id: I76ba032ecb3c5ab023f255ffdb09bb60840c240d
SCSC-Bug-Id: SSB-53404
Signed-off-by: Ivan Priest <i.priest@samsung.com>
5 years ago[NEUS7920-849][9610] wlbt: New DSCP mapping from Android Q
Albert Cano [Mon, 3 Jun 2019 14:03:56 +0000 (15:03 +0100)]
[NEUS7920-849][9610] wlbt: New DSCP mapping from Android Q

Implement DSCP mapping requirement that is based
on a new RFC (Standards Track) RFC 8325.

The speadsheet in MFW-190 (Sheet MCD Requirement-discrepancies)
has been used to create the new mapping.

Change-Id: Id2e018851b9c6277feb9c0263432aca80ad6c7d6
SCSC-Bug-Id: SSB-53256
Signed-off-by: Albert Cano <a.canocamps@samsung.com>
5 years ago[NEUS7920-849][9610] wlbt: Deprecate hip4 version 3 and create hip4 version 5
Albert Cano [Thu, 30 May 2019 13:46:24 +0000 (14:46 +0100)]
[NEUS7920-849][9610] wlbt: Deprecate hip4 version 3 and create hip4 version 5

Leman formally moved to hip4 version 4 to support new features such as SMAPPER
This version should have been adopted by normal FW and radio FW.

Since we are expecting changes in hip4 for future projects
we should start deprecating version 3 and create version 5.
This will give us some time to detect systems
hat haven't updated to new FW/Host.

Change-Id: Ie9c4125d1c9d599b7e0c35aede3522f1a484759a
SCSC-Bug-Id: SSB-52631
Signed-off-by: Albert Cano <a.canocamps@samsung.com>
5 years ago[NEUS7920-849][9610][7885] wlbt: NAN R1 fapi7 updates
Jaya Prakash Sangaru [Thu, 16 May 2019 14:06:20 +0000 (19:36 +0530)]
[NEUS7920-849][9610][7885] wlbt: NAN R1 fapi7 updates

NAN R1 FAPI7 updates

Change-Id: I78bad40292bfbdaced444db1b667e162376585b1
SCSC-Bug-Id: SSB-52785
Signed-off-by: Jaya Prakash Sangaru <j.sangaru@samsung.com>
5 years ago[NEUS7920-849]wlbt: Host changes for enhanced ARP detect
Srishti Piplani [Mon, 10 Sep 2018 14:42:09 +0000 (20:12 +0530)]
[NEUS7920-849]wlbt: Host changes for enhanced ARP detect

Host changes for enhanced ARP detect

Change-Id: I9bd11f04ec314593c504d6b60e2f87fefdc52271
SCSC-Bug-Id: SSB-52110
Signed-off-by: Srishti Piplani <srishti.p@samsung.com>
5 years ago[NEUS7920-849][9610] wlbt: Do not allocate irq for egress queues
Albert Cano [Wed, 29 May 2019 08:57:54 +0000 (09:57 +0100)]
[NEUS7920-849][9610] wlbt: Do not allocate irq for egress queues

We are currently allocating a shared IRQ for FH_CTRL,
FH_DATA and TH_RFB queues in order to trap FW errors.
Because the lack of system interrups we need to drop
this feature.

Change-Id: I44f173aeec4075e3edab7c3807efb4c62862fc26
SCSC-Bug-Id: SSB-53167
Signed-off-by: Albert Cano <a.canocamps@samsung.com>
5 years ago[NEUS7920-849]wlbt: refactor platform_mif to be chip specific
Purnendu Kapadia [Fri, 24 May 2019 11:29:32 +0000 (12:29 +0100)]
[NEUS7920-849]wlbt: refactor platform_mif to be chip specific

refactor platform_mif for leman to have only exynos9610 specific code
and remove other spaghetti code related to other chips (7570, 7872, 7885 etc)

This will serve as a template for NEUS exynos9630

SCSC-Bug-Id: HOST-10015
Change-Id: I07f218c88494721d538bd1c3e625d8b448352e40
Signed-off-by: Purnendu Kapadia <p.kapadia@samsung.com>
5 years agocpufreq_times: fix conflict to support cpufreq_times
Sangkyu Kim [Mon, 10 Jun 2019 10:12:52 +0000 (19:12 +0900)]
cpufreq_times: fix conflict to support cpufreq_times

Change-Id: I7a2c8cbc505ba8ef63ddce690e235e26f0e56706
Signed-off-by: Sangkyu Kim <skwith.kim@samsung.com>
Reviewed-on: https://gerrit.mot.com/1369616
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Submit-Approved: Jira Key

5 years agocpufreq: enable CPU_FREQ_TIMES option
luodw1 [Wed, 12 Jun 2019 09:44:35 +0000 (17:44 +0800)]
cpufreq: enable CPU_FREQ_TIMES option

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

5 years ago[COMMON] fimc-is2: do update sensor dm when flash capture
Wooyeon Kim [Wed, 29 May 2019 01:26:06 +0000 (10:26 +0900)]
[COMMON] fimc-is2: do update sensor dm when flash capture

 PR JIRA ID: CPR-1136

CRs-fixed: (CR)

Change-Id: Ib465e0dcbcbad706ac4cd41230aeab38dfc28c55
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
Reviewed-on: https://gerrit.mot.com/1363883
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 agowlbt: filter abnormal ipv4 multicast packet
dujeonglee [Fri, 24 May 2019 12:05:43 +0000 (21:05 +0900)]
wlbt: filter abnormal ipv4 multicast packet

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

5 years agoExtcon: Fix mic high level of noise.
Wen Xie [Tue, 28 May 2019 03:14:34 +0000 (11:14 +0800)]
Extcon: Fix mic high level of noise.

cirrus vendor patch:
Fix mic high level of noise Set MICD_RATE and
POLARITY_INV bit to 0 when a headset with mic is plugged in and set it in a
Defenderault state at removail.

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

5 years agoarm64/dts: Trokia remove ext-cap config.
Wen Xie [Tue, 28 May 2019 02:16:10 +0000 (10:16 +0800)]
arm64/dts: Trokia remove ext-cap config.

Due to hardware modification,external capacitor is removed,
so the relevant software config needs to be deleted.

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

5 years ago[9610] fimc-is2: Buffer modification in case of otp data error at 5e9 module
Dohyun Kim [Thu, 16 May 2019 08:53:06 +0000 (17:53 +0900)]
[9610] fimc-is2: Buffer modification in case of otp data error at 5e9 module

CRs-fixed: (CR)

Change-Id: I45c71a809efb2cb65955977b0194a89e13771d0e
Signed-off-by: Dohyun Kim <dh5.kim@samsung.com>
Reviewed-on: https://gerrit.mot.com/1358072
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Biming Li <libm1@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Submit-Approved: Jira Key

5 years ago[9610] fimc-is2: fix accessing to out of boundary at otp checking seq in 5e9 module
Dohyun Kim [Thu, 16 May 2019 08:53:18 +0000 (17:53 +0900)]
[9610] fimc-is2: fix accessing to out of boundary at otp checking seq in 5e9 module

CRs-fixed: (CR)

Change-Id: I3b2f4a3a9f07d19234091b5bae7abdfd6c87c3b8
Signed-off-by: Dohyun Kim <dh5.kim@samsung.com>
Reviewed-on: https://gerrit.mot.com/1358071
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Biming Li <libm1@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Submit-Approved: Jira Key

5 years ago[9610] fimc-is2: add otp data set function
Dohyun Kim [Thu, 16 May 2019 08:53:29 +0000 (17:53 +0900)]
[9610] fimc-is2: add otp data set function

CRs-fixed: (CR)

Change-Id: I8ffc5d9d43ae7b07903284c67b64d1f96ede43b9
Signed-off-by: Dohyun Kim <dh5.kim@samsung.com>
Reviewed-on: https://gerrit.mot.com/1358069
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Biming Li <libm1@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Submit-Approved: Jira Key

5 years ago[9610] fimc-is2: Buffer modification in case of otp data error at 2x5 module
Dohyun Kim [Thu, 16 May 2019 08:52:49 +0000 (17:52 +0900)]
[9610] fimc-is2: Buffer modification in case of otp data error at 2x5 module

CRs-fixed: (CR)

Change-Id: Ic4e74070efecf34fa3d7943faf2ea124dd87968f
Signed-off-by: Dohyun Kim <dh5.kim@samsung.com>
Reviewed-on: https://gerrit.mot.com/1358070
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Biming Li <libm1@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Submit-Approved: Jira Key

5 years agoAllow set single channel for ACS
sunyue5 [Tue, 21 May 2019 06:35:00 +0000 (14:35 +0800)]
Allow set single channel for ACS

Moto uses vendor.wifi.certchannel to set single channel
for ACS

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

5 years agoUsing spinlock to protect interrupt flag
Yan Zhang [Tue, 21 May 2019 05:36:11 +0000 (13:36 +0800)]
Using spinlock to protect  interrupt flag

Using spinlock to protect interrupt flag in critical section.

Change-Id: Ia9cf2ba638763bb1a87954deefe8a65083058439
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/1357136
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 agoExtcon:Don't report lineout device if mic detected
yaozm1 [Thu, 16 May 2019 02:55:04 +0000 (10:55 +0800)]
Extcon:Don't report lineout device if mic detected

We see some case device with mic reported high
impedance, and reported as un-expected lineout.

Change-Id: Ic3b16a245b2ca411bcfe277f76ca86d3a680067f
Signed-off-by: yaozm1 <yaozm1@mt.com>
Reviewed-on: https://gerrit.mot.com/1355467
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: Troika : update eeprom/otp flow
wangdw10 [Wed, 15 May 2019 12:17:15 +0000 (20:17 +0800)]
[COMMON] fimc-is2: Troika : update eeprom/otp flow

CRs-fixed: (CR)

Change-Id: I4175bd765134832f64e69267c024c9771e30a82a
Signed-off-by: wangdw10 <wangdw10@mt.com>
Reviewed-on: https://gerrit.mot.com/1354871
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] fimc-is2: kane: OTP file permission change
libm1 [Wed, 15 May 2019 11:26:08 +0000 (19:26 +0800)]
[COMMON] fimc-is2: kane: OTP file permission change

CRs-fixed: (CR)

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

5 years ago[COMMON] fimc-is2: kane: eeprom loading sequence optimize
libm1 [Mon, 13 May 2019 07:43:23 +0000 (15:43 +0800)]
[COMMON] fimc-is2: kane: eeprom loading sequence optimize

CRs-fixed: (CR)

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

5 years agoext_config:Enable USB_RTL8152
a17671 [Tue, 14 May 2019 06:40:36 +0000 (14:40 +0800)]
ext_config:Enable USB_RTL8152

Add support for RTL8152
For USB ethernet dongle

Change-Id: I9db4f572178a9115bbecc4bb0ee24fa8597a8483
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/1353791
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: Troika : improve eeprom dump flow
wangdw10 [Fri, 10 May 2019 07:39:49 +0000 (15:39 +0800)]
[COMMON] fimc-is2: Troika : improve eeprom dump flow

read module serial numbe and check to dump eeprom

CRs-fixed: (CR)

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

5 years ago[COMMON] fimc-is2: Fix logic error when CRC fail
libm1 [Fri, 10 May 2019 07:05:42 +0000 (15:05 +0800)]
[COMMON] fimc-is2: Fix logic error when CRC fail

There is a logic error which blocked setting the fail eeprom section value to FF

CRs-fixed: (CR)

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

5 years ago[COMMON] fimc-is2: Troika : improve eeprom dump logic
wangdw10 [Fri, 10 May 2019 03:00:05 +0000 (11:00 +0800)]
[COMMON] fimc-is2: Troika : improve eeprom dump logic

1. avoid dump again when serial number same

CRs-fixed: (CR)

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

5 years agomedia: radio: Troika : FM CE/FCC EN303345 test failed
Wen Xie [Thu, 9 May 2019 08:12:42 +0000 (16:12 +0800)]
media: radio: Troika : FM CE/FCC EN303345 test failed

samsung patch:
Troika ] FM CE/FCC EN303345 test failed,
SNR < 40DBQ.

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

5 years agoASoC: cs47l35: use dsp running flag for dsp status
Yoon (Seungyoon) Lee [Tue, 30 Apr 2019 20:28:54 +0000 (15:28 -0500)]
ASoC: cs47l35: use dsp running flag for dsp status

instead of checking DSP memory address for DSP core status,
check the flag from wm_adsp to determine algorithm status.

Change-Id: I846afc671e708dedd9af52000a7eb76cc39adc3b
Signed-off-by: Yoon (Seungyoon) Lee <w22905@motorola.com>
Reviewed-on: https://gerrit.mot.com/1346616
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhengming Yao <yaozm1@mt.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

5 years ago[COMMON] fimc-is2: do not print false alram of group_stop
Wooyeon Kim [Wed, 17 Apr 2019 05:47:10 +0000 (14:47 +0900)]
[COMMON] fimc-is2: do not print false alram of group_stop

 when closing camera, make do not print a error return

 PR JIRA ID: CPR-972

CRs-fixed: (CR)

Change-Id: Ic2284c230bbda6531135ced1e9a2d1c2b7484f8e
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
Reviewed-on: https://gerrit.mot.com/1350208
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: kane: update dw9839 init setting
wangdw10 [Tue, 7 May 2019 05:56:54 +0000 (13:56 +0800)]
[COMMON] fimc-is2: kane: update dw9839 init setting

- 0x18 0x03 0x01
- 0x18 0x40 0xF1
- 0x18 0x54 0x0E
- 0x18 0x03 0x11
Delay 3ms
- 0x18 0x04 0x00

CRs-fixed: (CR)

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

5 years agoscsc: limit 2.4G ACS on channels 1~11
sunyue5 [Sun, 5 May 2019 11:08:42 +0000 (19:08 +0800)]
scsc: limit 2.4G ACS on channels 1~11

Samsung implemented 2.4G ACS among all region allowed
channels, while Moto requires 2.4G MHS should only be
setup on channels 1~11.

Change-Id: Ibecfc178488768ae3f03ba44519088c39094662a
Signed-off-by: sunyue5 <sunyue5@motorola.com>
Reviewed-on: https://gerrit.mot.com/1348019
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 agofix rebase0430 build error
lingsen1 [Tue, 30 Apr 2019 15:26:13 +0000 (23:26 +0800)]
fix rebase0430 build error

Change-Id: I6b34fce60010a43414ebef9351ae22faa512370d

5 years agodts:change charGing current at Troika
xuwei9 [Tue, 30 Apr 2019 06:52:42 +0000 (14:52 +0800)]
dts:change charGing current at Troika

Change charGing current
at Troika

Change-Id: I875e778fdff4e8c306242bbb8815ceddd977de8c
Signed-off-by: xuwei9 <xuwei9@mt.com>
Reviewed-on: https://gerrit.mot.com/1346217
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: add embedded line DT at 2x5sp high speed mode
Wooyeon Kim [Mon, 29 Apr 2019 02:38:41 +0000 (11:38 +0900)]
[COMMON] fimc-is2: add embedded line DT at 2x5sp high speed mode

 - for avoid wrong_cfg error when 3dhdr -> other mode

 PR JIRA ID: CPR-1008

CRs-fixed: (CR)

Change-Id: Ifb610fab92c713bb22adee33ecac1db13ee4891e
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
Reviewed-on: https://gerrit.mot.com/1345390
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 agoTroika : vib update voltage
dengwei1 [Fri, 26 Apr 2019 06:01:26 +0000 (14:01 +0800)]
Troika : vib update voltage

per key part, the vib voltage need update
kane need not

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

5 years agokernel:Troika do not support turbo charger rate
xuwei9 [Thu, 25 Apr 2019 07:07:34 +0000 (15:07 +0800)]
kernel:Troika  do not support turbo charger rate

Troika  do not support
turbo charger rate

Change-Id: I77671320b8b30c36285d7448d0f2bc21539477c0
Signed-off-by: xuwei9 <xuwei9@mt.com>
Reviewed-on: https://gerrit.mot.com/1342646
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:Troika remove small charger
xuwei9 [Thu, 25 Apr 2019 04:29:25 +0000 (12:29 +0800)]
kernel:Troika  remove small charger

Troika  remove small
charger

Change-Id: Ib28693ebc3e6bfbd08c4917915a18b3d0ff0c3a7
Signed-off-by: xuwei9 <xuwei9@mt.com>
Reviewed-on: https://gerrit.mot.com/1342502
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 agoconfig:Troika remove small charger
xuwei9 [Thu, 25 Apr 2019 04:26:47 +0000 (12:26 +0800)]
config:Troika  remove small charger

Remove small charger
at Troika

Change-Id: I66affccea04982c737db548b4d5f7131b1e010ca
Signed-off-by: xuwei9 <xuwei9@mt.com>
Reviewed-on: https://gerrit.mot.com/1342501
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: do not use fast AF trigger when Precapture trigger
Wooyeon Kim [Wed, 24 Apr 2019 01:59:04 +0000 (10:59 +0900)]
[COMMON] fimc-is2: do not use fast AF trigger when Precapture trigger

 PR JIRA ID: CPR-990

CRs-fixed: (CR)

Change-Id: Idb6311be87729c3e2119199e4047124a6733e9b8
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
Reviewed-on: https://gerrit.mot.com/1342458
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Biming Li <libm1@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Submit-Approved: Jira Key

5 years agokernel:Troika battery profile update
xuwei9 [Wed, 24 Apr 2019 06:02:57 +0000 (14:02 +0800)]
kernel:Troika  battery profile update

Troika  battery profile update
for local buy battery

Change-Id: I13ad4fe4471814c79645eeeb6d3842814d2b3ea6
Signed-off-by: xuwei9 <xuwei9@mt.com>
Reviewed-on: https://gerrit.mot.com/1341251
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 agodts:Troika battery profile update
xuwei9 [Wed, 24 Apr 2019 06:10:52 +0000 (14:10 +0800)]
dts:Troika  battery profile update

Troika  battery profile update
for local buy battery

Change-Id: I8b87b03637690a2837c75e641b18bf0f9ed509b5
Signed-off-by: xuwei9 <xuwei9@mt.com>
Reviewed-on: https://gerrit.mot.com/1341262
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[HACK][9610] fimc-is2: move LTE step1 work only for 2x5
Wooyeon Kim [Fri, 19 Apr 2019 02:53:56 +0000 (11:53 +0900)]
[HACK][9610] fimc-is2: move LTE step1 work only for 2x5

 - for avoid side effect of 0x0BCC settings

 PR JIRA ID: CPR-974

CRs-fixed: (CR)

Change-Id: I150ddaf30c636d0355bfcdbfc0c3e53d312148f0
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
Reviewed-on: https://gerrit.mot.com/1339836
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Biming Li <libm1@motorola.com>
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Submit-Approved: Jira Key

5 years ago[COMMON] fimc-is2: delete avdd gpio power up/down for 5e9
xff [Fri, 12 Apr 2019 07:40:34 +0000 (15:40 +0800)]
[COMMON] fimc-is2: delete avdd gpio power up/down for 5e9

CRs-fixed: (CR)

Change-Id: I0e4d67dcbbebcb12c6d9d265df8ae2295aceb261
Signed-off-by: xff <fangfang.xu@samsung.com>
Reviewed-on: https://gerrit.mot.com/1339437
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: Optimized otp read flow path for 5e9
xff [Tue, 16 Apr 2019 09:07:48 +0000 (17:07 +0800)]
[COMMON]fimc-is2: Optimized otp read flow path for 5e9

CRs-fixed: (CR)

Change-Id: I554d9560608b0f2b4069b6e8bd5a2b4dcab98c5b
Signed-off-by: xff <fangfang.xu@samsung.com>
Reviewed-on: https://gerrit.mot.com/1339435
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 agoarm64/dts: camera: Troika : delete avdd gpio for 5e9
xff [Fri, 12 Apr 2019 07:39:17 +0000 (15:39 +0800)]
arm64/dts: camera: Troika : delete avdd gpio for 5e9

CRs-fixed: (CR)

Change-Id: Ia1ec4d851c6b53188620bbe5f5e9883e3c5eb8e8
Signed-off-by: xff <fangfang.xu@samsung.com>
Reviewed-on: https://gerrit.mot.com/1339436
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: modified OV12A10/OV12A10FF/OV16885/5E9 power on sequence delay
xff [Tue, 16 Apr 2019 07:36:49 +0000 (15:36 +0800)]
[COMMON]fimc-is2: modified OV12A10/OV12A10FF/OV16885/5E9 power on sequence delay

CRs-fixed: (CR)

Change-Id: I141dc1f11b91fa81f051982b9f87b3b33ca75fac
Signed-off-by: xff <fangfang.xu@samsung.com>
Reviewed-on: https://gerrit.mot.com/1339434
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 agopower: use orderly shutdown
zhaoxp3 [Fri, 19 Apr 2019 01:50:18 +0000 (09:50 +0800)]
power: use orderly shutdown

User an orderly shutdown for factory kill instead of a
kernel power off.  The orderly shutdown will attempt to
call the reboot binary from userspace first, and then
fallback to kernel power off if it fails.

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

5 years agoDefenderconfig: disable console driver for user build
zhaoxp3 [Wed, 17 Apr 2019 08:36:23 +0000 (16:36 +0800)]
Defenderconfig: disable console driver for user build

disable serial console for user build
Change-Id: I3a5dcc3163beece8c76a0855370b5efbe0112e50
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1338193
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Submit-Approved: Jira Key

5 years agoOptimize the scanning interval of schedule scan
sunyue5 [Tue, 16 Apr 2019 11:24:17 +0000 (19:24 +0800)]
Optimize the scanning interval of schedule scan

The peak of current is 80mA for schedule scan. In the past, the
interval of schedule scan is 20s, it would increase the average
current by 20mA.

This change is to optimize the scanning interval so that the
average current can be reduced to less than 1mA
Min_Period: 48s
Max_Period: 500s
Exponent: 10
Step count: 7

48s, 48s, 48s, 48s, 48s, 48s, 48s, 480s,..., 480s, ...

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

5 years ago[COMMON] fimc-is2: move cis dma disable to DMA ISR & modify DMA state
wangdw10 [Tue, 16 Apr 2019 12:23:27 +0000 (20:23 +0800)]
[COMMON] fimc-is2: move cis dma disable to DMA ISR & modify DMA state

CRs-fixed: (CR)

Change-Id: I6c890c380ece4aaa8bb686cfdfd5d80459e5dae4
Signed-off-by: wangdw10 <wangdw10@mt.com>
Reviewed-on: https://gerrit.mot.com/1337438
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][9610] drivers : fix typec role swap
Junhan Bae [Fri, 22 Mar 2019 12:14:31 +0000 (21:14 +0900)]
[COMMON][9610] drivers : fix typec role swap

Fix Macbook pro role swap issue
Add data swap and power swap
Mot-CRs-fixed:(CR)

Change-Id: I5a239b7552f4c3bb464f72d5f9f5aaae9f76ef66
Signed-off-by: Junhan Bae <junhan84.bae@samsung.com>
Reviewed-on: https://gerrit.mot.com/1337168
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: modified 2X5 remosaic exp multiplier
Wooyeon Kim [Mon, 8 Apr 2019 04:21:52 +0000 (13:21 +0900)]
[COMMON] fimc-is2: modified 2X5 remosaic exp multiplier

 - move remosaic exp to "adjust_frame_duration"

 PR JIRA ID: CPR-935

CRs-fixed: (CR)

Change-Id: I270cb7c77ce36cf40daa5a9195f0d24e6678de24
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
Reviewed-on: https://gerrit.mot.com/1337243
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 ago[COMMON] fimc-is2: move csi dma disable to DMA ISR & modify DMA state
Wooyeon Kim [Mon, 8 Apr 2019 07:44:32 +0000 (16:44 +0900)]
[COMMON] fimc-is2: move csi dma disable to DMA ISR & modify DMA state

CRs-fixed: (CR)

Change-Id: Ifadfe55c34c57c30997e8334b45a19daef5a07c6
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
Reviewed-on: https://gerrit.mot.com/1336692
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Biming Li <libm1@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Submit-Approved: Jira Key

5 years ago[COMMON] fimc-is2: modify "head" base when group is stopped
Wooyeon Kim [Mon, 15 Apr 2019 10:18:10 +0000 (19:18 +0900)]
[COMMON] fimc-is2: modify "head" base when group is stopped

 - when camera is suddenly closed, wrong refer group caused
   smp trigger stuck problem

 PR JIRA ID: CPR-958

CRs-fixed: (CR)

Change-Id: I311a14c062906d4aab7aa5f9e36fb151ba80107e
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
Reviewed-on: https://gerrit.mot.com/1337226
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Biming Li <libm1@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Submit-Approved: Jira Key

5 years agoarm/dts/:Add separated music bin for India sku
yaozm1 [Mon, 15 Apr 2019 05:58:30 +0000 (13:58 +0800)]
arm/dts/:Add separated music bin for India sku

Add separated music bin for India sku

Change-Id: I201b951d672d72f9641083cd543b55131bc40c6e
Signed-off-by: yaozm1 <yaozm1@mt.com>
Reviewed-on: https://gerrit.mot.com/1336699
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 agodrivers: modify the reboot reason for post-xxx
luodw1 [Fri, 12 Apr 2019 12:26:40 +0000 (20:26 +0800)]
drivers: modify the reboot reason for post-xxx

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