GitHub/moto-9609/android_kernel_motorola_exynos9610.git
4 years agoASOC:Pickup marley codec patch from ODM's base
yao zhengming [Tue, 22 Jan 2019 04:55:40 +0000 (23:55 -0500)]
ASOC:Pickup marley codec patch from ODM's base

(CR):[Kane][audio]kernel:hp and ep switch to mono mode

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

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

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

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

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

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

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

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

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

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

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

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

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

Modification Sar Sensor Power From 3mA to 0.5mA

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

enter factory mode when press volumeup+power key

Change-Id: I957c5c534b856b6a0f06b25ec23c445c63955c09

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

1,hp and ep switch make no sound

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

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

bug:(CR)

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

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

Bug:(CR)

Workaround:no

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

Fix selftest process in 1st himax vendor.

bug:(CR)

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

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

bug:(CR)

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

motor add pinctrl for solve int pin leakage

Change-Id: I81e6fa136db21cd0f418c9cb0bc6f92d82167aa2

4 years ago(CR):[Kane]:[kernel](1/1)Fix AC charger flag change TP parameter.
hq_qiaoquanbin_tmp [Mon, 14 Jan 2019 08:17:08 +0000 (16:17 +0800)]
(CR):[Kane]:[kernel](1/1)Fix AC charger flag change TP parameter.

Fix AC charger flag change TP parameter.

bug:(CR)

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

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

Bug:(CR)

Workaround:no

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

This reverts commit ded416757dba1122416c23d3c2b400e3622f221a.

 PR JIRA ID: CPR-608

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

 PR JIRA ID: CPR-596

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

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

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

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

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

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

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

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

4 years agoDefenderconfig: add config for Troika
zhaoxp3 [Tue, 22 Jan 2019 02:18:33 +0000 (10:18 +0800)]
Defenderconfig: add config for Troika

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

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

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

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

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

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

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

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

This reverts commit 212c97dd8ded53c0029346387ef7001e41b9fc16.

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

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

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

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

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

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

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

(CR):[Kane][audio]kernel:get the enum by read hard status

sometimes the enum show wrong

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

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

extcon: madera: Don't clamp manually on cs47l35

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

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

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

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

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

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

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

Avoid FG reset
algorithm

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

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

To output command line completely in kernel log

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

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

input update nvt touch fw 04
as keypart

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

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

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

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

Change-Id: I220cb485941b70c2e53e22fb2123ca82dcc17009

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

Change-Id: I5282618ec66d0a7689d7529d16a16da3ffd22684

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

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

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

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

battery temp is zero during
power on

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

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

update aws vibrator
parameter

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

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

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

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

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

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

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

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

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

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

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

avoid i2c operation before
suspspend in case i2c error

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

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

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

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

Add battery profile
update flag

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

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

Zero out CRC padding
To preventing leaking of unintialized data

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

4 years agosecurity:kernel:ufs raw name renamed as common boot device
wangwang1 [Tue, 18 Dec 2018 07:21:40 +0000 (15:21 +0800)]
security:kernel:ufs raw name renamed as common boot device

boot device has been ported.
rename ufs raw name as boot device

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

4 years agoarm/dts: remove AoV model.bin
Yoon (Seungyoon) Lee [Fri, 14 Dec 2018 18:28:38 +0000 (12:28 -0600)]
arm/dts: remove AoV model.bin

kane supports Google Hotwords only which gets its model from
Google server directly and doesn't use combined model saved
in local with other Moto Voice models.

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

4 years agousb:Enable mass storage in charger only mode
a17671 [Fri, 14 Dec 2018 06:51:26 +0000 (14:51 +0800)]
usb:Enable mass storage in charger only mode

Factory requires mass storage in
Charger only mode and need to add
Scsi pass through reboot command
To reboot the phone into different mode

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

4 years agokernel: enable moto vibrator feature
xuwei9 [Thu, 13 Dec 2018 08:51:40 +0000 (16:51 +0800)]
kernel: enable moto vibrator feature

Enable moto vibrator
feature

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

4 years agoEnabled cpusets
huangzq2 [Mon, 10 Dec 2018 10:00:57 +0000 (18:00 +0800)]
Enabled cpusets

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

4 years agousb:xhci-hub:Fix Null pointer panic
a17671 [Thu, 6 Dec 2018 06:07:39 +0000 (14:07 +0800)]
usb:xhci-hub:Fix Null pointer panic

System panic at xhci_hub_check_speed+0x44/0x74
After disconnect the otg device from host
Add the null pointer check to fix the problem

panic trace:

[  394.979815,2] xhci-hcd xhci-hcd.2.auto: USB bus 2 deregistered
[  394.980005,2] xhci-hcd xhci-hcd.2.auto: remove, state 4
[  394.980100,2] usb usb1: USB disconnect, device number 1
[  394.954183,0] Unable to handle kernel read from unreadable memory
at virtual address 0000001c
[  395.067339,0] task: ffffffc876ef4400 task.stack: ffffff800b328000
[  395.073424,0] PC is at xhci_hub_check_speed+0x44/0x74
[  395.078455,0] LR is at xhci_hub_check_speed+0x14/0x74
[  395.094516,0] x29: ffffff800b32ba70 x28: 0000000000000000
[  395.099986,0] x27: ffffff800b32bc08 x26: 00000000ffffffff
[  395.105453,0] x25: 0000000000000001 x24: 0000000000000001
[  395.110924,0] x23: ffffffc84a14a140 x22: ffffffc835343800
[  395.116393,0] x21: 0000000000000000 x20: ffffffc84a14a000
[  395.121866,0] x19: ffffffc053b5c000 x18: 0000000000000001
[  395.127336,0] x17: 0000000000000000 x16: 0000000000000000
[  395.132844,0] x15: ffffff8009567000 x14: 0000000000000001
[  395.138275,0] x13: 0000000000258024 x12: 000000000000cf90
[  395.143745,0] x11: f6e18e3f25207900 x10: 0000000000000000
[  395.149216,0] x9 : ffffffc84a14a458 x8 : 0000000000000001
[  395.154688,0] x7 : 0000000000000000 x6 : ffffff80099394e6
[  395.160160,0] x5 : 0000000000000033 x4 : 0000000000000000
[  395.165627,0] x3 : ffffff800b32b968 x2 : ffffff8008090470
[  395.171097,0] x1 : ffffff800b32b968 x0 : 0000000000000000

[  396.318730,0] [<ffffff8008664eec>] xhci_hub_check_speed+0x44/0x74
[  396.324803,0] [<ffffff800862a20c>] hcd_bus_suspend+0x144/0x24c
[  396.330617,0] [<ffffff800863b768>] generic_suspend+0x44/0x4c
[  396.336262,0] [<ffffff800863001c>] usb_suspend_both+0x164/0x234
[  396.342165,0] [<ffffff800863058c>] usb_runtime_suspend+0x30/0x68
[  396.348159,0] [<ffffff80084ff07c>] __rpm_callback+0xc4/0x1cc
[  396.353800,0] [<ffffff80084fef34>] rpm_callback+0x28/0x7c
[  396.359181,0] [<ffffff80084fd268>] rpm_suspend+0x210/0x4dc
[  396.364652,0] [<ffffff80084fda74>] __pm_runtime_suspend+0x80/0xa4
[  396.370731,0] [<ffffff8008630730>] usb_runtime_idle+0x28/0x38
[  396.376461,0] [<ffffff80084ff07c>] __rpm_callback+0xc4/0x1cc
[  396.382105,0] [<ffffff80084fd8a4>] rpm_idle+0x200/0x350
[  396.387314,0] [<ffffff80084fe9f0>] pm_runtime_work+0x5c/0x90
[  396.392961,0] [<ffffff80080c8d28>] process_one_work+0x1dc/0x408
[  396.398863,0] [<ffffff80080c91d8>] worker_thread+0x220/0x340
[  396.404510,0] [<ffffff80080cd864>] kthread+0x11c/0x12c
[  396.409632,0] [<ffffff8008084934>] ret_from_fork+0x10/0x18

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

4 years agoRemove the temp file
a17671 [Wed, 5 Dec 2018 09:30:46 +0000 (17:30 +0800)]
Remove the temp file

A temp file was accidentally created
During the previous commit
Remove it to clean up the repo

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

4 years agobattery:Do not run temp chgpath in detach case
a17671 [Wed, 5 Dec 2018 09:29:32 +0000 (17:29 +0800)]
battery:Do not run temp chgpath in detach case

After received the detach notification
Temp chgpath was ran, that set the is_charGing flag
To the wrong value, remove this to unblock the
Otg control path

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

4 years agoRevert "usbpd:Samsung usbpd too many detachment issue fix"
a17671 [Tue, 4 Dec 2018 08:32:58 +0000 (16:32 +0800)]
Revert "usbpd:Samsung usbpd too many detachment issue fix"

Reorg the fix of the detachment issue
Make sure rebooting with usb attached
does not break the adb
Mot-CR-fixed:(CR)

This reverts commit e2d064f8cb59ecf123cdaa8edc1c278397455153.

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

4 years agoarm/Defenderconfig: enable EXFAT_FS
zhaoxp3 [Mon, 3 Dec 2018 06:55:35 +0000 (14:55 +0800)]
arm/Defenderconfig: enable EXFAT_FS

exfat fs system support
Change-Id: If0fef4aa3b6580730dca33965ebbcf81ea3d519b
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1276892
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Submit-Approved: Jira Key

4 years agofs/exfat: fix compile error on kernel 4.14
Shiyong Li [Wed, 18 Jul 2018 00:12:00 +0000 (17:12 -0700)]
fs/exfat: fix compile error on kernel 4.14

WRITE_SYNC is not Defenderined on new kernel.

Change-Id: If47e84c06a0e52ccf4a7a116d233f8d8c924191e
Signed-off-by: Shiyong Li <a22381@motorola.com>
Reviewed-on: https://gerrit.mot.com/1207791
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1276887
Reviewed-by: Hua Tan <tanhua1@motorola.com>
4 years agofs/exfat: reduce log spam
Shiyong Li [Sat, 9 Dec 2017 01:44:30 +0000 (17:44 -0800)]
fs/exfat: reduce log spam

Switch to debug prints for some spammy errors.

Change-Id: I847d21fcaa4a66b0521e43c62fe7d7b6c1e140d7
Signed-off-by: Igor Kovalenko <cik009@motorola.com>
Signed-off-by: Shiyong Li <a22381@motorola.com>
Reviewed-on: https://gerrit.mot.com/1102185
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1276886
Reviewed-by: Hua Tan <tanhua1@motorola.com>
4 years agofs/exfat: do error check for d_splice_alias return
Shiyong Li [Sat, 9 Dec 2017 01:38:24 +0000 (17:38 -0800)]
fs/exfat: do error check for d_splice_alias return

This patch adds error check in case a Defenderect exFAT SD cards is inserted.

Change-Id: I37f6b8716abd556908aad72b18fcc7ac5719766e
Signed-off-by: Min Shi <e13386@motorola.com>
Signed-off-by: Shiyong Li <a22381@motorola.com>
Reviewed-on: https://gerrit.mot.com/1102184
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1276885
Reviewed-by: Hua Tan <tanhua1@motorola.com>
4 years agofs/exfat: send uevnet from workqueue
Shiyong Li [Sat, 9 Dec 2017 01:36:20 +0000 (17:36 -0800)]
fs/exfat: send uevnet from workqueue

We can not send uevent directly because it might be called
from atomic context.

Change-Id: I384a7f197b22b1fcb8d068c98908e4fa5a1d3b82
Signed-off-by: Lianwei Wang <a22439@motorola.com>
Signed-off-by: Shiyong Li <a22381@motorola.com>
Reviewed-on: https://gerrit.mot.com/1102182
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1276883
Reviewed-by: Hua Tan <tanhua1@motorola.com>
4 years agofs/exfat: fix every bio only has one block
Shiyong Li [Sat, 9 Dec 2017 01:37:20 +0000 (17:37 -0800)]
fs/exfat: fix every bio only has one block

This patch fix the bug that exfat fs cannot write
continuous blocks in one bio.
This will cause every request submit in block layer
only contains one block, cause write speed slower.

Change-Id: Ia548a7d8051Defenderc1498d2d11d39e069bf683fdff
Signed-off-by: haojl2 <haojl2@motorola.com>
Signed-off-by: Shiyong Li <a22381@motorola.com>
Reviewed-on: https://gerrit.mot.com/1102183
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1276884
Reviewed-by: Hua Tan <tanhua1@motorola.com>
4 years agofs/exfat: support readonly uevent
Shiyong Li [Sat, 9 Dec 2017 01:35:11 +0000 (17:35 -0800)]
fs/exfat: support readonly uevent

Change-Id: Iba732aa27cce07133bdbc085bee10182f5796298
Signed-off-by: Lianwei Wang <a22439@motorola.com>
Signed-off-by: Shiyong Li <a22381@motorola.com>
Reviewed-on: https://gerrit.mot.com/1102181
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1276882
Reviewed-by: Hua Tan <tanhua1@motorola.com>
4 years agofs/exfat: use correct length for utf conversion
Shiyong Li [Sat, 9 Dec 2017 01:33:51 +0000 (17:33 -0800)]
fs/exfat: use correct length for utf conversion

when call utf16s_to_utf8s, last parmater 'maxout' will be reduced
with the returned value of utf32_to_utf8, the value reflects the
size of one utf character, it could be 1~max charset size(3), so
maxout should use MAX_NAME_LENGTH * MAX_CHARSET_SIZE
when call utf8s_to_utf16s, the inlen will be reduced with the
the returned value of utf8_to_utf32, so it should use
MAX_NAME_LENGTH * MAX_CHARSET_SIZE or the lenghth of p_cstring whose
max value is MAX_NAME_LENGTH * MAX_CHARSET_SIZE.

Change-Id: Icbea02ece4b1a5b015037a6a54178ee8e08d4325
Signed-off-by: Shengzhe Zhao <a18689@motorola.com>
Signed-off-by: Shiyong Li <a22381@motorola.com>
Reviewed-on: https://gerrit.mot.com/1102180
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1276881
Reviewed-by: Hua Tan <tanhua1@motorola.com>
4 years agofs/exfat: avoid setting 0 over buffer uniname
Shiyong Li [Sat, 9 Dec 2017 01:32:02 +0000 (17:32 -0800)]
fs/exfat: avoid setting 0 over buffer uniname

utf8s_to_utf16s could return -EINVAL(-22), then uniname[i] =
uniname[-22] = '\0' will corrupt other local variable.
uniname is a local variable having different address everytime
when call nls_cstring_to_uniname. so uniname[-22] could corrupt
some different addresses.
and also when filename reaches at maximum length, need to leave
last one space in buffer for '\0'

Change-Id: I44bbdd3249150ad5617c7cd13207cfa37b102a77
Signed-off-by: Shengzhe Zhao <a18689@motorola.com>
Signed-off-by: Shiyong Li <a22381@motorola.com>
Reviewed-on: https://gerrit.mot.com/1102179
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1276880
Reviewed-by: Hua Tan <tanhua1@motorola.com>
4 years agofs/exfat: unlock pages under readonly status
Shiyong Li [Sat, 9 Dec 2017 01:30:22 +0000 (17:30 -0800)]
fs/exfat: unlock pages under readonly status

The ->writepage should unlock its page before returning the results.
Otherwise, evict_inode can be hanged while truncating pages.

- Backtrace -

(__schedule+0x3dc/0x908) from [<c0b67854>] (io_schedule+0x6c/0x94)
(io_schedule+0x6c/0x94) from [<c01ce2dc>] (sleep_on_page+0x8/0x10)
(sleep_on_page+0x8/0x10) from [<c0b64e70>] (__wait_on_bit_lock+0x6c/0xb8)
(__wait_on_bit_lock+0x6c/0xb8) from [<c01ce418>] (__lock_page+0x90/0x98)
(__lock_page+0x90/0x98) from [<c01dcae8>] (truncate_inode_pages_range+0x360/0x37c)
(truncate_inode_pages_range+0x360/0x37c) from [<c01dcb1c>] (truncate_inode_pages+0x18/0x20)
(truncate_inode_pages+0x18/0x20) from [<c0304618>] (exfat_evict_inode+0x18/0xb0)
(exfat_evict_inode+0x18/0xb0) from [<c0228590>] (evict+0x94/0x178)
(evict+0x94/0x178) from [<c02286a4>] (dispose_list+0x30/0x40)
(dispose_list+0x30/0x40) from [<c022924c>] (evict_inodes+0xc8/0xd0)
(evict_inodes+0xc8/0xd0) from [<c0212964>] (generic_shutdown_super+0x44/0xc4)
(generic_shutdown_super+0x44/0xc4) from [<c0212bd4>] (kill_block_super+0x18/0x68)
(kill_block_super+0x18/0x68) from [<c0212f3c>] (deactivate_locked_super+0x48/0x64)
(deactivate_locked_super+0x48/0x64) from [<c022d660>] (SyS_umount+0x90/0x390)

Change-Id: I0a9caebeceda503c72e365957b1bf97d74f3de89
Signed-off-by: Jaegeuk Kim <jaegeuk@motorola.com>
Signed-off-by: Shiyong Li <a22381@motorola.com>
Reviewed-on: https://gerrit.mot.com/1102178
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1276879
Reviewed-by: Hua Tan <tanhua1@motorola.com>
4 years agofs/exfat: link superblock for all the buffer head
Shiyong Li [Sat, 9 Dec 2017 01:29:00 +0000 (17:29 -0800)]
fs/exfat: link superblock for all the buffer head

Otherwise, we can get kernel panic when handling fs_error().

Change-Id: I288ece9bdc0182b0d4cf23f1bba920d341a8f540
Signed-off-by: Jaegeuk Kim <jaegeuk@motorola.com>
Signed-off-by: Shiyong Li <a22381@motorola.com>
Reviewed-on: https://gerrit.mot.com/1102177
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1276878
Reviewed-by: Hua Tan <tanhua1@motorola.com>
4 years agofs/exfat: implement errors=remount-ro
Shiyong Li [Sat, 9 Dec 2017 01:27:12 +0000 (17:27 -0800)]
fs/exfat: implement errors=remount-ro

This patch implements errors=remount-ro for exfat.

Port of cf4fa60 and 58ec900 on 8996 with minor change for
updated submit_io() interface in kernel 4.9.

Change-Id: Iee791a99216ecf9f710adffa681706e761f97d8f
Signed-off-by: Shiyong Li <a22381@motorola.com>
Reviewed-on: https://gerrit.mot.com/1102176
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1276877
Reviewed-by: Hua Tan <tanhua1@motorola.com>
4 years agofs/exfat: import oriGinal library v1.2.9
Shiyong Li [Thu, 7 Dec 2017 00:16:32 +0000 (16:16 -0800)]
fs/exfat: import oriGinal library v1.2.9

oriGinal repo: https://github.com/dorimanx/exfat-nofuse

latest commit:
commit de4c760
Author: Yuri.Sh <dorimanx@users.noreply.github.com>
Date:   Tue Jun 20 00:56:18 2017 +0300

    Merge pull request #116 from ian-abbott/no-krel

    Makefile: remove KREL

Change-Id: I918688177815d21a3227e740ef36680f0913d4f9
Signed-off-by: Shiyong Li <a22381@motorola.com>
Reviewed-on: https://gerrit.mot.com/1102174
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1276876
Reviewed-by: Hua Tan <tanhua1@motorola.com>
4 years agoarm/Defenderconfig: remove unused config
zhaoxp3 [Mon, 3 Dec 2018 05:22:08 +0000 (13:22 +0800)]
arm/Defenderconfig: remove unused config

remove unused kernel config
Change-Id: I515cf98c8c756623138f1881f656ec7b2238e003
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1276836
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key

4 years agoarm/Defenderconfig: update user config to ext config
zhaoxp3 [Fri, 30 Nov 2018 02:43:24 +0000 (10:43 +0800)]
arm/Defenderconfig: update user config to ext config

update Defenderconfig for user build
Change-Id: Idf93aa32c17f450d706ce3d4fc29a8b42fd6eee3
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1276083
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key

4 years agoext_config:Config the Defenderault vbus draw to 500mA
a17671 [Thu, 29 Nov 2018 07:41:28 +0000 (15:41 +0800)]
ext_config:Config the Defenderault vbus draw to 500mA

Update the Defenderault usb gadget vbus draw to 500mA
Instead of 2

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

4 years agogadget:Update the Defenderault vbus draw
a17671 [Thu, 29 Nov 2018 07:15:08 +0000 (15:15 +0800)]
gadget:Update the Defenderault vbus draw

Update the highspeed vbus draw to 500mA
And super speed vbus draw to 900mA

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

4 years agousbpd:Fix the usbpd interrupt storm issue
a17671 [Thu, 29 Nov 2018 02:16:57 +0000 (10:16 +0800)]
usbpd:Fix the usbpd interrupt storm issue

Samsung usbpd interrupt is triggered by level
Instead of edge, the irq service handle shall
Disable the interrupt first and later enable
It after it got processed.

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

4 years agousbpd:Samsung usbpd too many detachment issue fix
a17671 [Tue, 27 Nov 2018 09:47:34 +0000 (17:47 +0800)]
usbpd:Samsung usbpd too many detachment issue fix

Samsung usbpd driver issue too many DETACH notification
That cause adb connection problem after reboot

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

4 years agokane: input add touch firmware update sh
dengwei1 [Thu, 22 Nov 2018 00:42:23 +0000 (08:42 +0800)]
kane: input add touch firmware update sh

add touch firmware sh
which is from moto platform

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

4 years agokane: Enable tee log for fingerprint debug
chenl18 [Wed, 21 Nov 2018 05:47:16 +0000 (13:47 +0800)]
kane: Enable tee log for fingerprint debug

Tee log is closed in Defenderult state. If need open it, please
write 1 to 'swd_debug' sys node.

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

4 years agosoc:exynos-reboot:Add the last powerup reason back
a17671 [Wed, 21 Nov 2018 04:24:44 +0000 (12:24 +0800)]
soc:exynos-reboot:Add the last powerup reason back

Last power up reason code was missed
Add them back to handle the panic correctly

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

4 years agokernel: disable hq factory restriction charGing func
xuwei9 [Mon, 19 Nov 2018 06:35:46 +0000 (14:35 +0800)]
kernel: disable hq factory restriction charGing func

Disable hq restriction
charGing function

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

4 years agoPhone always pop error dialog in booting time.
qiaoshan1 [Fri, 16 Nov 2018 08:01:30 +0000 (16:01 +0800)]
Phone always pop error dialog in booting time.

             Add missed config:
                 CONFIG_CRYPTO_SHA512
                 CONFIG_NETFILTER_XT_MATCH_BPF

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

4 years agoprintk: add cpu info into kernel log
zhaoxp3 [Thu, 15 Nov 2018 06:40:57 +0000 (14:40 +0800)]
printk: add cpu info into kernel log

Append cpu# to timestamp of per line kernel message.

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

4 years agoutags:sync same owner permission
zhaoxp3 [Thu, 15 Nov 2018 05:43:37 +0000 (13:43 +0800)]
utags:sync same owner permission

utags needs to be read-write in tcmd daemon whose group id is
system,many operation need group write permission like root user.

1.tcmd needs to add new node by lock and new operation
2.tcmd needs to access node /proc/config/all/new etc

https://gerrit.mot.com/1236562
https://gerrit.mot.com/1235016
https://gerrit.mot.com/1231861

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

4 years agotune kernel and system, wave 2
huangzq2 [Thu, 15 Nov 2018 00:32:09 +0000 (08:32 +0800)]
tune kernel and system, wave 2

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

4 years agoDisable page alloc debug by Defenderault
huangzq2 [Wed, 14 Nov 2018 10:15:14 +0000 (18:15 +0800)]
Disable page alloc debug by Defenderault

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

4 years agotune the kernel and system
huangzq2 [Wed, 14 Nov 2018 09:35:24 +0000 (17:35 +0800)]
tune the kernel and system

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

4 years agokernel:add charger in voltage node
xuwei9 [Mon, 12 Nov 2018 08:09:10 +0000 (16:09 +0800)]
kernel:add charger in voltage node

add charger in voltage
fix samsung bug

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

4 years agokernel: charge only mode charge detection
xuwei9 [Fri, 9 Nov 2018 10:37:23 +0000 (18:37 +0800)]
kernel: charge only mode charge detection

charge type detection
charge only mode

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

4 years agoarm/config: Add kane debug config
sunyue5 [Mon, 5 Nov 2018 13:42:59 +0000 (21:42 +0800)]
arm/config: Add kane debug config

Add debug-erd9610-kane.config as kane debug config

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

4 years agodrivers: add check samsung panic reboot cmd
luodw1 [Wed, 7 Nov 2018 05:07:51 +0000 (13:07 +0800)]
drivers: add check samsung panic reboot cmd

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

4 years agokernel:change samsung charge current format
xuwei9 [Mon, 5 Nov 2018 05:46:52 +0000 (13:46 +0800)]
kernel:change samsung charge current format

Change samsung charge current
format charGing:- discharge:+

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

4 years agodrivers set Defenderault reboot reason is panic
luodw1 [Fri, 2 Nov 2018 09:07:09 +0000 (17:07 +0800)]
drivers set Defenderault reboot reason is panic

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

4 years agodts modifed the utags partition path Defenderine
luodw1 [Fri, 2 Nov 2018 09:10:23 +0000 (17:10 +0800)]
dts modifed the utags partition path Defenderine

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