For inbox 10w and typeC product, the DCP current is
2A but not 1.8A. 1.8A come from micro usb product.
Change-Id: Ieb88d33dd8ba9b2fb58de07848ec1293dbc7cdd8
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1615575
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Limit Type-C HIGH charger to MEDIUM at hvdcp disalbed project
in case turbo charging at type-c high charger.
Change-Id: Ie63a88cd46917b0abefb552a000f80ef4bed3b2f
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1611492
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
expose ssr_reason to ss_ramdump so that
bug2go can show it in their record.
Change-Id: I3858787a6426e8978566274f5f46212bacdaee58
Signed-off-by: sunyue5 <sunyue5@motorola.com>
Reviewed-on: https://gerrit.mot.com/1596842
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
change pr_debug to pr_info for always print SD interrupt log
when CD pin triggered.
one line log increase but it's very useful for clarifying the
some kinds of SD card issue.
[ 233.306901] mmc1: cd gpio irq, gpio state 0 (CARD_REMOVAL)
[ 237.981056] mmc1: cd gpio irq, gpio state 1 (CARD_INSERT)
Change-Id: I74764bd501c7465fd01d7e5b500112725cd38ca0
Signed-off-by: fuxm1 <fuxm1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1594590
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Dongliang Yue <yuedl1@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
Prop from (CR)
If we have usb digital headphone pulled in during bootup. It will occupy
index 0. primary sound card can only use index 1. But in our most audio
code, We assume the primary sound card is 0. This will cause no sound
issue when we use primary sound card to playback and record.
Change-Id: Ic6cc79fc475e4e9978535f9557f05cef8c65d1f1
Signed-off-by: niuli1 <niuli1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1093502
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dandan Du <dudd1@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1516459
Reviewed-by: Yuesheng Huang <huangys@motorola.com>
(cherry picked from commit 780fde85cfdaaeb836c93b52cfd98210e5a98c30)
Reviewed-on: https://gerrit.mot.com/1586901
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Since ALS sensor's Firmware needs to keep track the PWM duty cycle of
each panels' version, therefore the panels' register 0xDA will be used
to identify the PWM duty cycle programmed in each panels' version.
The new /sys/class/drm/card0-DSI1/panelRegDA sysfs will be created.
Change-Id: I8abc7f31067614ce410348757aa8f75392788fb8
Signed-off-by: daiss1 <daiss1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1514795
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1583968
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
In user version, Moto kernel policy will mask all KERN_INFO
log to console, so change the power key press or release event
log level to make it work in user versions.
Change-Id: Ia4e7c33819f1e50b6a7778ea186bd1c83890b818
Reviewed-on: https://gerrit.mot.com/1545783
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1584163
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
The "hw_warmreset" reboot command, it indicates the kernel to trigger
warm reset for saving lastkmsg. After the system warm reboot, the AP
will save last kmsg logs and call a clean cold reboot with the
"post-hw_warmreset" command.
Change-Id: I3a25735a4e9ff0ab72c05d3ba2914d80477d30dc
Reviewed-on: https://gerrit.mot.com/1536789
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1584107
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
High duty cycleused for AICL/adaptive algorithm
Qcom default is enable, if disable perhaps cause
remain voltage while remove USB cable
Mot-CRs-fixed: (CR)
Change-Id: I686e503a44de890250b95a1ff0dc7c86c1081979
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1553135
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
kernel configs enabled to support PASR which can hotplug RAM banks
we don't have multiple RAM slots in devices, disable this feature
to avoid potential performance penalty
Change-Id: Ia6012bb0ab887b64ee5976c278949ace9c2354aa
Reviewed-on: https://gerrit.mot.com/1549420
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
As the USB hal service is the root user, so it is the same user as the
dual role sysfs node, and it is OK to change the sysfs node access mode
dynamicly for PD. Otherwise the sysfs node will lose sysfs node mode
update.
Revert "Revert "usb: phy: dual-role: update sysfs attrs when changed""
This reverts commit 4dabf448ae341dd492b45eb0f82fdd77ee5ef584.
Change-Id: Id3651703b4e250ac6af6cb3dc94d3ca328a3a259
Reviewed-on: https://gerrit.mot.com/1257104
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1413206
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-on: https://gerrit.mot.com/1536373
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
after list all ion dma-buffer, cacluate the total size,
and display it in the end.
Change-Id: I108ebe7aa3560538b1f24033dc219e8215720069
Reviewed-on: https://gerrit.mot.com/1535658
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Shanghui Zhang <zhangsh@motorola.com>
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Bolei Shang <shangbl1@lenovo.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
Improvements made to ION to add an additional debugfs file
to display allocation/reference information for all ION buffers.
Change-Id: Ife122fb3357c549ce962e7b7ead8d2447d352885
Signed-off-by: zhangzl7 <zhangzl7@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1535657
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
Charging driver needs to support dual role class
Products so USB hal 1.0 could work properly
Change-Id: I02b0d104791c422372aff24b6889978997c6a4b4
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/1534063
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
USB hal 1.0 needs dual role class support
For MicroB USB products
Change-Id: Ia48350bea2ba217e1524f4c36b5e3288d8a436d9
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/1534062
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
Even if reserving nothing in sdcardfs, lower fs statfs info is still
needed to avoid APP overwriting media storage.
port (CR) from P.
Change-Id: I63e87c3b34c739aeff2dcdd5e6fb3f34c4270cfa
Signed-off-by: Shiyong Li <a22381@motorola.com>
Reviewed-on: https://gerrit.mot.com/1435235
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/1531815
Reviewed-by: Zonghua Liu <a17671@motorola.com>
User can create zero byte files even sdcardfs hits the reserved limit
that will consume blocks for the file name and eventually use up all
memeory. Check the avaliable free space before creating files.
port (CR) from P.
Change-Id: Ib902844f2e6e6c638184895e3f4fa7282acc8333
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/1435234
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/1531814
Reviewed-by: Shi-Yong Li <a22381@motorola.com>
Copy inode size from lower file system while getting attributes, or file
size is wrong for those files that have already existed before.
port (CR) from P.
Change-Id: I0c61e09ff2223d492518b6b4de320f6c640b2115
Signed-off-by: Shiyong Li <a22381@motorola.com>
Reviewed-on: https://gerrit.mot.com/1435233
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/1531813
Reviewed-by: Zonghua Liu <a17671@motorola.com>
Forcing the re-make of defconfig causes a ton of stuff to get
rebuilt during dirty builds. So don't do it.
Change-Id: I945fc8bfe3f2a52c3a8069fa016fc6f948f1b30f
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1529110
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
Ignore commit history for softlink
arch/arm64/boot/dts/vendor
So that there won't be extra sync failure
once kernel gets update.
Change-Id: I2c0cdd5fd5763d742e22bc577994331396feae19
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1524582
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key