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
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
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
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
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
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
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
zhaoxp3 [Mon, 3 Dec 2018 06:55:35 +0000 (14:55 +0800)]
arm/defconfig: 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
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 defined 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>
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>
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 defect 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>
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>
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: Ia548a7d8051defc1498d2d11d39e069bf683fdff
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>
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>
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>
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>
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>
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>
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>
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>
zhaoxp3 [Mon, 3 Dec 2018 05:22:08 +0000 (13:22 +0800)]
arm/defconfig: 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
zhaoxp3 [Fri, 30 Nov 2018 02:43:24 +0000 (10:43 +0800)]
arm/defconfig: update user config to ext config
update defconfig 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
a17671 [Thu, 29 Nov 2018 07:41:28 +0000 (15:41 +0800)]
ext_config:Config the default vbus draw to 500mA
Update the default 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
a17671 [Thu, 29 Nov 2018 07:15:08 +0000 (15:15 +0800)]
gadget:Update the default 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
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
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
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
chenl18 [Wed, 21 Nov 2018 05:47:16 +0000 (13:47 +0800)]
kane: Enable tee log for fingerprint debug
Tee log is closed in defult 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
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
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
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
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
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
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
huangzq2 [Wed, 14 Nov 2018 10:15:14 +0000 (18:15 +0800)]
Disable page alloc debug by default
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
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
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
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
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
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
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
luodw1 [Fri, 2 Nov 2018 09:07:09 +0000 (17:07 +0800)]
drivers set default 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
luodw1 [Fri, 2 Nov 2018 09:10:23 +0000 (17:10 +0800)]
dts modifed the utags partition path define
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
zhaoxp3 [Thu, 25 Oct 2018 09:28:09 +0000 (17:28 +0800)]
arm64/dts: remove moto dts from wing board
wingboard is not supported
Change-Id: Ia28f40162832b766c291311244e2dcc3489d348e
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/
1260792
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
zhaoxp3 [Tue, 23 Oct 2018 07:08:57 +0000 (15:08 +0800)]
mmi: export ram info
export ram info from props
Change-Id: Ib1a4eb961e7356fedc281f3c06ca3d3a8c361aaf
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/
1259375
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
xuwei9 [Tue, 23 Oct 2018 02:52:41 +0000 (10:52 +0800)]
kernel/dts:change thermal ntc sesnsor name
Change thermal ntc sensor
sysfs node name
Change-Id: I3392135a4711459893489bd0e5639dbf99a3acc9
Signed-off-by: xuwei9 <xuwei9@mt.com>
Reviewed-on: https://gerrit.mot.com/
1259270
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
luodw1 [Fri, 19 Oct 2018 06:32:03 +0000 (14:32 +0800)]
arch: add log output in BUG() define
Change-Id: Ide19e8d074c51a46219689676bc5cb5c4aa37ae4
Signed-off-by: luodw1 <luodw1@motorola.com>
Reviewed-on: https://gerrit.mot.com/
1258099
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
luodw1 [Thu, 18 Oct 2018 02:24:59 +0000 (10:24 +0800)]
driver: add moto reboot reason
Change-Id: Ic0550e74736cbf0b39f2130d2be52be328b30099
Signed-off-by: luodw1 <luodw1@motorola.com>
Reviewed-on: https://gerrit.mot.com/
1258098
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
xuwei9 [Tue, 16 Oct 2018 06:08:58 +0000 (14:08 +0800)]
kernel/dts:define the thermal node for kane
Enablel thermal node
for Kane
Change-Id: I9210d59b1ae6d8d286ab582214b50e729642bdb1
Signed-off-by: xuwei9 <xuwei9@mt.com>
Reviewed-on: https://gerrit.mot.com/
1256235
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
yaozm1 [Mon, 15 Oct 2018 09:28:01 +0000 (17:28 +0800)]
arm64/dts: Add aov-trigger support
Enable aov-trigger driver
Add dts support
Change-Id: I48b2dcaef2182b21e4f552a0cab1e992b659cc6b
Signed-off-by: yaozm1 <yaozm1@mt.com>
Reviewed-on: https://gerrit.mot.com/
1255466
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
yaozm1 [Mon, 15 Oct 2018 08:28:04 +0000 (16:28 +0800)]
kernel/config: add aov_trigger driver
Enable aov trigger
Set CONFIG_SND_SOC_AOV_TRIGGER as y
Change-Id: Ice7c997f7fb56e232a9abca1b0f89179ecb2026c
Signed-off-by: yaozm1 <yaozm1@mt.com>
Reviewed-on: https://gerrit.mot.com/
1255405
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
yaozm1 [Mon, 15 Oct 2018 08:24:37 +0000 (16:24 +0800)]
asoc:Add aov trigger driver
Enable aov trigger driver
Fix compile issue
Change-Id: I3db1ac5d275cf237c944a58286ed2e1971992f6a
Signed-off-by: yaozm1 <yaozm1@mt.com>
Reviewed-on: https://gerrit.mot.com/
1255398
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
a17671 [Tue, 9 Oct 2018 06:39:45 +0000 (14:39 +0800)]
Enable Motorola dropbox driver
Enable Moto dropbox driver to
Provide interface for other drivers
So they could report issue to system dropbox
Change-Id: Idb5a80663bbaba8964fdb02d59cd1bed632a7b64
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/
1252528
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
a17671 [Tue, 9 Oct 2018 06:38:38 +0000 (14:38 +0800)]
Add Motorola dropbox driver
Add Moto dropbox driver to
Provide interface for other drivers
So they could report issue to system dropbox
Change-Id: Ic44ee90417f88965b44367b4d04957cc64bcf49d
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/
1252527
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
zhaoxp3 [Tue, 9 Oct 2018 02:09:34 +0000 (10:09 +0800)]
arm64/dts: add utags/hw partition
add utags partition entry
add hw partition entry
Change-Id: I34ca21574fe01b87a418ccb3cabcc4abd3357476
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/
1252385
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
a17671 [Mon, 8 Oct 2018 09:49:12 +0000 (17:49 +0800)]
soc:exynos-reboot:Store the last powerup reason to INFORM9
Set the last power up reason register to INFORM9 register
According to the reboot parameter from kpreadwrite
Change-Id: I7719aa93ddcc50b97b6d973ea2e06c16317fa785
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/
1251924
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
a17671 [Sat, 29 Sep 2018 05:51:40 +0000 (13:51 +0800)]
usb:rndis:Fix the no auto installation problem
The samsung rndis driver has to be manually installed on Windows
Switch the function class to wireless controller to trigger auto
Installation on Windows
Change-Id: I7fdd0f439cbae41a6a4142785db360fe57873c5f
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/
1248692
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
sunyue5 [Thu, 27 Sep 2018 09:43:08 +0000 (17:43 +0800)]
scsc: avoid panic when getting bt/wifi mac
Fix a slip of sscanf usage
Change-Id: I3b3975719267007d17bfb76fd21b828b76490ce9
Signed-off-by: sunyue5 <sunyue5@motorola.com>
Reviewed-on: https://gerrit.mot.com/
1247584
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
a17671 [Wed, 26 Sep 2018 09:05:30 +0000 (17:05 +0800)]
serial:Remove the spam samsung serial messges
Samsung serial driver will generate spam kernel messages
If the rx pin got floated, disable the log for now
Change-Id: I58738083f67b6e72d8694613cfb9f1e55113b70c
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/
1246579
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
a17671 [Wed, 26 Sep 2018 09:03:13 +0000 (17:03 +0800)]
usb:gadget:Avoid double free pointer
Reset the pointer to NULL after free
To avoid the double free of pointer
Change-Id: I35088a0352b947906318316a8e02fb950b1ee7a8
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/
1246578
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
xuwei9 [Thu, 27 Sep 2018 06:31:08 +0000 (14:31 +0800)]
kernel/config:enable external ntc thermistor at samsung
enable external ntc thmistor
at sasmung platform
Change-Id: Ib50790d81c9b89ee8790689cf0b1963a646e644d
Signed-off-by: xuwei9 <xuwei9@mt.com>
Reviewed-on: https://gerrit.mot.com/
1247473
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
xuwei9 [Fri, 31 Aug 2018 08:15:16 +0000 (16:15 +0800)]
kernel: samsung moto charger feature
add moto charge feature
to suamsung platform.
Change-Id: I0bde27594291cc794bba155a597c6d83eebdeb43
Signed-off-by: xuwei9 <xuwei9@mt.com>
Reviewed-on: https://gerrit.mot.com/
1246419
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
xuwei9 [Wed, 26 Sep 2018 01:53:26 +0000 (09:53 +0800)]
kernel/dts: samsung moto charger feature
enable moto charger feature dts
file at samsung platform
Change-Id: I265e2c931bac7e1d78c5455053c36b253fa4175d
Signed-off-by: xuwei9 <xuwei9@mt.com>
Reviewed-on: https://gerrit.mot.com/
1246420
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
Conflicts:
arch/arm64/boot/dts/exynos/exynos9610_battery_data.dtsi
a17671 [Wed, 19 Sep 2018 06:57:05 +0000 (14:57 +0800)]
Fix the breakage of log_pstore function
Ramoops does not work after adding annotation
Total memory size exceeds the oriGinal 2M
Reduce the ftrace_size to fix the problem
Change-Id: I9f0a140e653bb08644201a855cad65e381214cc1
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/
1243000
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Master Yoda
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
a17671 [Tue, 18 Sep 2018 09:18:44 +0000 (17:18 +0800)]
Disable the MobiCoreDriver TEE log
Trustonic TEE log spam the kernel log messages
And consume much CPU, disable it for now
Change-Id: I28d54Montanaa8d3f965ec833f2f6b5f8f0b43de2abe
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/
1242999
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Master Yoda
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
a17671 [Tue, 18 Sep 2018 09:30:19 +0000 (17:30 +0800)]
Porting the sdcard panic fix from qcom
Porting the change
226f96b0 from QCOM
Fix potential crash when reserved_mb is not zero
Author: Lianjun Huang <huanglianjun@vivo.com>
sdcardfs_mkdir() calls check_min_free_space(). When
reserved_mb is not zero, a negative dentry will be passed to
ext4_statfs at last and ext4_statfs() will crash. The parent dentry
is possitive. So we use the parrent dentry to check free space.
Change-Id: I0c7c6e38cf116660bc573a7e81a679366aa6c334
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/
1242998
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Master Yoda
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
zhaoxp3 [Tue, 18 Sep 2018 06:53:33 +0000 (14:53 +0800)]
arm64/dts:add kane model name
Change-Id: I8ecf9b3cab5ff0a03d2539ce5973c7b95a8256e8
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/
1242878
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Master Yoda
Submit-Approved: Jira Key
sunyue5 [Tue, 31 Jul 2018 09:36:01 +0000 (17:36 +0800)]
scsc: Pick WiFi/BT MAC address from utag
Priority as following
Wifi:
1. Utag
2. Mac file
3. Samsung efs
4. Generate with Moto OUI and SoC uid
BT:
1. Utag
2. Samsung efs
3. Module parameter bluetooth_address
4. Generate with Moto OUI and SoC uid
Change-Id: Ia9d803d622f5293dc409f9887b3b9b7e85c4b381
Signed-off-by: sunyue5 <sunyue5@motorola.com>
Reviewed-on: https://gerrit.mot.com/
1238038
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
zhaoxp3 [Wed, 15 Aug 2018 05:33:32 +0000 (13:33 +0800)]
mmi:export device info
export unit info, ram info
Change-Id: Ibe514dd54e6832b6f591c968f2ae1f97f3799d4c
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/
1227145
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
zhaoxp3 [Mon, 20 Aug 2018 03:29:04 +0000 (11:29 +0800)]
defconfig: enable moto specific config
CONFIG_MMI_SOC_INFO=y
CONFIG_MMI_RAM_INFO=y
CONFIG_MMI_STORAGE_INFO=y
CONFIG_MMI_UNIT_INFO=y
CONFIG_SOFTLOCKUP_WATCHDOG_TEST=y
CONFIG_MOT_UTAG=y
Change-Id: I2d1be8f55a82899078744abc52acb7eaeacbc360
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/
1229539
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
zhaoxp3 [Wed, 15 Aug 2018 05:22:22 +0000 (13:22 +0800)]
defconfig: add extra config for product
add extra kernel config for product
Change-Id: Iadc24ef2b167d4c76178de532134ea5a057dcfa1
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/
1227129
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
a17671 [Mon, 13 Aug 2018 07:33:10 +0000 (15:33 +0800)]
usb:Bringup moto f_usbnet
Motorola USBLAN driver for factory testing
Change-Id: I7b24185f70cd6fcb7a1eab059c32513d38ad79fe
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/
1222702
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
zhaoxp3 [Mon, 6 Aug 2018 04:31:54 +0000 (12:31 +0800)]
soc:qcom: add bootinfo support
The interface would
1. export /proc/bootinfo to user space, bugreport can use it
2. annotate boot info to last_kmsg
port the following gerrits
http://gerrit.mot.com/862769
http://gerrit.mot.com/848543
http://gerrit.mot.com/845197
http://gerrit.mot.com/792195
http://gerrit.mot.com/782682
Change-Id: Icc0e48f833b119dad73a07cd564e24f169d1ac4d
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/
1221136
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
zhaoxp3 [Thu, 9 Aug 2018 02:17:03 +0000 (10:17 +0800)]
misc/utags: add utag access driver
utag definitition propagation
porting list
http://gerrit.mot.com/910955
http://gerrit.mot.com/858699
http://gerrit.mot.com/856809
http://gerrit.mot.com/850978
http://gerrit.mot.com/851761
http://gerrit.mot.com/849605
http://gerrit.mot.com/844488
http://gerrit.mot.com/844746
http://gerrit.mot.com/844632
http://gerrit.mot.com/844490
http://gerrit.mot.com/832456
http://gerrit.mot.com/818566
http://gerrit.mot.com/815935
http://gerrit.mot.com/815470
http://gerrit.mot.com/807562
http://gerrit.mot.com/807536
http://gerrit.mot.com/805967
http://gerrit.mot.com/804339
http://gerrit.mot.com/805689
http://gerrit.mot.com/805007
http://gerrit.mot.com/804080
http://gerrit.mot.com/801480
http://gerrit.mot.com/799536
http://gerrit.mot.com/798608
http://gerrit.mot.com/797528
http://gerrit.mot.com/797098
http://gerrit.mot.com/796309
http://gerrit.mot.com/795636
http://gerrit.mot.com/795589
http://gerrit.mot.com/794117
http://gerrit.mot.com/784416
http://gerrit.mot.com/780040
http://gerrit.mot.com/780039
http://gerrit.mot.com/780038
http://gerrit.mot.com/780036
http://gerrit.mot.com/774315
http://gerrit.mot.com/688121
http://gerrit.mot.com/688078
Change-Id: I5d1fe94da8b2e1400107e36d46cf0cefedd42871
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/
1223274
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
zhaoxp3 [Thu, 2 Aug 2018 06:51:07 +0000 (14:51 +0800)]
fs:pstore:ramoops: Add annotation support to pstore
Add annotation support to the pstore. This is used by bootinfo
Ported from: https://gerrit.mot.com/
1102744
Change-Id: Id81064efc3a2550e21b73fe57a3f2db5c552e331
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/
1220328
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
zhaoxp3 [Thu, 2 Aug 2018 07:17:08 +0000 (15:17 +0800)]
kernel:watchdog: add debugfs item for softlockup and watchdog test
Port (CR).Add a kernel module to facilitate softlockup and watchdog basic
function test. Interface added:
/sys/kernel/debug/fire_softlockup_reset
/sys/kernel/debug/fire_watchdog_reset
Change-Id: I69538b807fc246af53457fa0b60311aa431ffdd7
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/
1220329
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
zhaoxp3 [Thu, 2 Aug 2018 06:56:11 +0000 (14:56 +0800)]
kernel: sys : print task info on reboot or poweroff
Pick up (CR). The current task name(pid),
and its parent task name(pid) are printed out to console
on reboot or power off. This patch is to indicate
which task has triggered the reboot or power off.
Change-Id: Ie99616432cd5a589fa3c1147094cb5d637d63ce7
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/
1220330
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
a17671 [Wed, 1 Aug 2018 09:32:57 +0000 (17:32 +0800)]
Disable AVB and enable console
enable console and disable AVB in bring up stage
Change-Id: I0284d829a1c5cda77abffcad3728099046cd8dfd
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/
1218967
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
Shinkyu Park [Thu, 3 Jan 2019 01:26:14 +0000 (10:26 +0900)]
[RAMEN9610-10371][Robusta2][9609]dts: disable USI in SHUB block
[Description]
Disable to control USI in SHUB block
Platform Development Team
Shinkyu Park (shinkyu.park@samsung.com)
Change-Id: I871cbf7fee6762f71ae203e92fbd6c9bbf330803
samsung3 [Thu, 10 Jan 2019 09:03:00 +0000 (17:03 +0800)]
[9610][Robusta2] dtsi: camera: add front UHD dvfs scenario
- for support over BDS UHD size
Change-Id: Ifbb2dc4414fd4d80e0d8c71897fb3876ee4e060c
Signed-off-by: samsung3 <wooy88.kim@samsung.com>
xingbin [Thu, 10 Jan 2019 07:05:41 +0000 (15:05 +0800)]
(CR):[Kane]:[factory]modify the HBM operaton on suspend mode
Bug:(CR)
Change-Id: I286d860ea1cc539ae308783eb9253dac5095f249
Signed-off-by: xingbin <xingbin@huaqin.com>
xingbin [Thu, 10 Jan 2019 06:13:45 +0000 (14:13 +0800)]
(CR):[Kane]:[factory]modify the cabc operaton on suspend mode
Bug:(CR)
Change-Id: Ib90fa31aef801b1c637c1e67977bf24effe38aa1
Signed-off-by: xingbin <xingbin@huaqin.com>
yanfei [Wed, 9 Jan 2019 12:36:10 +0000 (20:36 +0800)]
(CR):Update Capsensor parameters
Update Capsensor parameters
Change-Id: Ia3ba6057a6fa6850ee1e55f6b03200bfdeb43681
Signed-off-by: yanfei <yanfei5@huaqin.com>
zhangyijie [Wed, 9 Jan 2019 09:13:45 +0000 (17:13 +0800)]
(CR):[Kane]:[kernel]motor solve CQA dont shake(1/1)
Solve Vibrator dont shake in CQA
Change-Id: Id9b6c710214f71e2c2269a672149802c8422f992
Wooyeon Kim [Fri, 4 Jan 2019 07:11:35 +0000 (16:11 +0900)]
[9610][Robusta2] dtsi: camera: modified sensor0 DMA/VC value for support gyro
- gyro can get by vc3
- fwin stat changed to get by vc1
PR JIRA ID: CPR-543
Change-Id: I09e3e2c96d83c322b48a9460590944a7c9c58133
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
Boojin Kim [Fri, 21 Dec 2018 05:54:47 +0000 (14:54 +0900)]
[RAMEN9610-10151] arm64: config: Add contexthub debug mode
On contexthub debug mode, Kernel makes panic with chub crash
and enable runtime log save.
Change-Id: I63e26c84d2700fd4f0b6308ff6ed624eae1946a2
Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
kiwoo Kwon [Fri, 28 Dec 2018 03:58:35 +0000 (12:58 +0900)]
[RAMEN9610-10136][(CR)][NFC] dts: add nfc pd pin config
Change-Id: I4835105e52fc2443612e06de6f5cabec24da25e3
Signed-off-by: kiwoo Kwon <kiwo.kwon@samsung.com>
zhixueyin [Mon, 17 Dec 2018 07:48:22 +0000 (15:48 +0800)]
(CR):[factory]:[kane]:lk: enter factory mode when press volumeup+power key
enter factory mode when press volumeup+power key
Change-Id: I49505311d5c8fadfe8969ddd794d00305065677a
dukhyun kwon [Thu, 27 Dec 2018 10:31:53 +0000 (19:31 +0900)]
[RAMEN9610-10143][9610] arm64: dts: enable skip init no card tray for sdcard
Change-Id: Id81a4c82446f555013968952d80cde51621a39e2
Signed-off-by: dukhyun kwon <d_hyun.kwon@samsung.com>
zhangjiaquan [Thu, 3 Jan 2019 07:11:01 +0000 (02:11 -0500)]
(CR):[Kane][audio]kernel:udpdate SPK PAcs35l41 driver
1,udpdate SPK PAcs35l41 driver
2,solve the VA current issue,now va current is 0.2ma when pa is off
Change-Id: Ic2c2b1da04831f6147b47354776e0017ad84f38a
Signed-off-by: zhangjiaquan <zhangjiaquan@huaqin.com>
Wooyeon Kim [Wed, 2 Jan 2019 07:31:36 +0000 (16:31 +0900)]
[Robusta2][9610] dtsi: camera: add multi_ch for MUX setting
PR JIRA ID: CPR-536
Change-Id: I26762e8f485e1a3c78d0fe54c73ca468859bae90
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
zhangjiaquan [Wed, 2 Jan 2019 08:14:12 +0000 (03:14 -0500)]
(CR):[Kane][factory][audio]kernel:update the mic det debouce time to 700ms
1,update the mic det debouce time to 700ms
2,open the mic det log to get more info
Change-Id: Ie7ce442abf3aeec381e26d17a5095b36ce7db43f
Signed-off-by: zhangjiaquan <zhangjiaquan@huaqin.com>
yanfei [Fri, 28 Dec 2018 13:57:00 +0000 (21:57 +0800)]
(CR):Modify for Capsensor params
Modify for Capsensor params
Change-Id: I8304dab44bd49c23c897c6fcf2a747f8a0fc92e3
Signed-off-by: yanfei <yanfei5@huaqin.com>
yanfei [Fri, 28 Dec 2018 09:33:08 +0000 (17:33 +0800)]
(CR):Modify for Capsensor params
Modify for Capsensor params
Change-Id: I6cec5ca8af4ea6caa394286b0c3e97a0060de3a0
Signed-off-by: yanfei <yanfei5@huaqin.com>
Wooyeon Kim [Thu, 27 Dec 2018 09:33:21 +0000 (18:33 +0900)]
[9610][Robusta2] dtsi: camera: modified settings for support PAFSTAT
- modified stat DMA out to DMA2 CH0 at rear sensor
- moved Rear2 DMA out to DMA3 CH0
PR JIRA ID: CPR-532
Change-Id: I560cb01896a1529ca261bb2883efe19bac91f7cc
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
wangjiao [Thu, 27 Dec 2018 12:55:43 +0000 (20:55 +0800)]
(CR):[Kane]:[factory]Modfiy panel into the DTSB mode
Change-Id: I77f1676dae79fa573a98d9f87ddddb234c5354a8
Signed-off-by: wangjiao <wangjiao1@huaqin.com>
zhangjiaquan [Thu, 27 Dec 2018 03:53:57 +0000 (22:53 -0500)]
(CR):[Kane][kernel]audio:spk pa not power off cause high current
1,disalbe mbox that disturb the irq when pa power off
2,update the delay to make sure pa power off status is stable
Change-Id: I0ffd8983b77aec53a9e9ab8e0ec0ae381841f887
Signed-off-by: zhangjiaquan <zhangjiaquan@huaqin.com>
zhangyijie [Wed, 26 Dec 2018 09:50:05 +0000 (17:50 +0800)]
(CR)[Kane]:[kernel]motor update rtp (1/2)
motor update driver for rtp mode
Change-Id: I68d1e4e4b642dfe79215e059d4e1e59dcd8c6eaa
zhangbin [Wed, 26 Dec 2018 11:54:57 +0000 (19:54 +0800)]
(CR):[kane][sensor]:optimize the sar sensor power consumption
optimize the sar sensor power consumption when suspend
Change-Id: Ib5f09e2bb884f70a4689a7176ba9143a1183a320
Signed-off-by: zhangbin <zhangbin@huaqin.com>
zhangjiaquan [Wed, 26 Dec 2018 12:01:08 +0000 (07:01 -0500)]
(CR):[Kane][kernel]audio:spk pa not power off cause high current
1,wait the pa status to stable when power off
Change-Id: Ife2af1e7c2b35ea2edcdc883381fe62587d3c2aa
Signed-off-by: zhangjiaquan <zhangjiaquan@huaqin.com>