Commit Graph
821985 Commits
Author SHA1 Message Date
huaqin79 58d8c425e8 display: Modify LDO driver initialization voltage compatibility
1. During startup, judge whether to register the LDO driver
   for the first time. If it is the first time, it is not
   necessary to disable all LDOS;

2. When different pmics are used, different initialization
   voltages are used for initialization;

Change-Id: Ic22e2c05fb9edcb48f93f51add369cb71997741f
Signed-off-by: huaqin79 <huaqin79@motorola.com>
Reviewed-on: https://gerrit.mot.com/2138715
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:48:50 -03:00
panzh2 ee4fd45d57 Hawao: NFC Bringup(4) - driver
Add samsung nfc drvier
for Hawao

Change-Id: I9e4ab8da78683ed2d0d244e4b877fdf5f4293d2e
Reviewed-on: https://gerrit.mot.com/2137010
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenghai Pan <panzh2@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:48:50 -03:00
tinno18 0494ba54ad hawaii OLED: visionox ft3519 touch drvier bringup
hawaii OLED: 1st LCD
ft3519 touch drvier bringup

Change-Id: I8a67c0d8ae7aead0e76906b8c7110d4c580ca3f9
Reviewed-on: https://gerrit.mot.com/2133191
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: Jing Hu <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2136692
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
2023-06-01 00:48:50 -03:00
huaqin87 aeb58891bc kernel: qc3p wt6760 isp download function
charging qc3+ wt6670
import blank firmware upgrade function

Change-Id: I192459c424b40e740d9ed0638063136b3a34f536
Signed-off-by: huaqin87 <huaqin87@motorola.com>
Reviewed-on: https://gerrit.mot.com/2133356
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ying Xu <xuying9@motorola.com>
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:48:50 -03:00
wutao 38175de2c4 kernel:add ADC_GPIO3_DIV3 adc channel
add ADC_GPIO3_DIV3 adc channel for read
vbus voltage for nopmi project

Change-Id: Ia4011ea66946fce882f25c469aa276c198462f60
Signed-off-by: wutao <huaqin89@motorola.com>
Reviewed-on: https://gerrit.mot.com/2133308
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:48:50 -03:00
huaqin79 021a853ac4 display/config: Add LDO driver config into the kernel.
Add LDO regulator config into the kernel for
Rhode

Change-Id: Icc6026ad875c1d1f3a66769f2dcb2149d6ce4a9d
Signed-off-by: huaqin79 <huaqin79@motorola.com>
Reviewed-on: https://gerrit.mot.com/2132726
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:48:50 -03:00
huaqin79 54f4fb3216 display: Load the regulator driver directly into the kernel.
When the regulator driver is loaded into the
kernel as KO, the LDO driver registration is
too slow, resulting in the LCD power on and
can not be controlled normally.

Change-Id: If1f62f5204a8eda235a5aea91d27b59f6021c704
Signed-off-by: huaqin79 <huaqin79@motorola.com>
Reviewed-on: https://gerrit.mot.com/2132717
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:48:50 -03:00
wutao bff6b41ded kernel: use orderly_poweroff when usb plugged out
google android R define CONFIG_STATIC_USERMODEHELPER
and CONFIG_STATIC_USERMODEHELPER_PATH = "", so sub_info->path
is always empty.

Change-Id: Ieddaa54f8097d3f172a0b1a6910558a75526bae2
Signed-off-by: wutao <huaqin89@motorola.com>
Reviewed-on: https://gerrit.mot.com/2132754
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:48:50 -03:00
a17671 52971f6876 tty:diag:Move tty_flip_buffer_push out of spinlock
Upstream pty kernel driver already moved the tty_flip_buffer_push
Out of tty_flip_buffer_push, adjust the tty_diag driver to do the same
Otherwise there will be lockup watchdog panic generated

Change-Id: Ib1ea301cff482b1b6905f20ce99995fe2f5b5aef
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/2130815
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:48:50 -03:00
a17671 9ad837c12c Revert "tty:revert the tty update from qcom for moto tty_diag driver"
Keep the upstream pty driver
Adjust the moto tty_diag to solve the watchdog panic

This reverts commit 257cf44a1f9264ced64fde12868ed543a7d270af.

Change-Id: Id362323694562ba26f5531099ce32da649872476
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/2130818
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:48:50 -03:00
wangwang1 1e6149dea3 kernel:dwc3 delay extcon module registeration
dwc3 driver now replies on extcon suppliers registered from another ko
in timing sequence, dwc3 is probed much earlier than the ko registeration.
To work with the related ko driver correctly, add a delayed work item to
check the extcon status periodicly. The frequency is 1HZ and it just stops
whenever the required extcon suppliers defined in dtsi have been found.

Change-Id: Ia7c50165eab13b0274590c744f49061fa6ef7c03
Reviewed-on: https://gerrit.mot.com/2130472
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:48:49 -03:00
Todd Kjos ce2ae0cb3b ANDROID: xt_quota2: set usersize in xt_match registration object
Explicitly set what is visible to userspace

Mot-CRs-fixed: (CR)
CVE-Fixed: CVE-2021-0961

Bug: 196046570
Test: passed netd test suites
Signed-off-by: Todd Kjos <tkjos@google.com>
Change-Id: Iacec0ef8ae290e01f1b60508d8abcd40a3653c83
Signed-off-by: Gajjala Chakradhar <gajjalac@motorola.com>
Reviewed-on: https://gerrit.mot.com/2119296
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:48:49 -03:00
Todd Kjos 1be3bb1f14 ANDROID: xt_quota2: clear quota2_log message before sending
Initialize message buffer for quota2_log to avoid sending
random data.

Mot-CRs-fixed: (CR)
CVE-Fixed: CVE-2021-0961

Bug: 196046570
Test: passed netd test suites
Fixes: 10cda83af99d ("ANDROID: netfilter: xt_quota2: adding the
original quota2 from xtables-addons")
Signed-off-by: Todd Kjos <tkjos@google.com>
Change-Id: Ic9f34aaa2593809b375fc649b74567190c99dc62
Signed-off-by: Gajjala Chakradhar <gajjalac@motorola.com>
Reviewed-on: https://gerrit.mot.com/2119295
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:48:49 -03:00
Sam Liddicott 62f2ba2d6c ANDROID: xt_quota2: remove trailing junk which might have a digit in it
Make sure string only contains the characters specified by userspace.

Fix cherry-picked from xtables-extensions project

Signed-off-by: Sam Liddicott <sam@liddicott.com>

Mot-CRs-fixed: (CR)
CVE-Fixed: CVE-2021-0961

Bug: 196046570
Test: passed netd test suites
Fixes: 10cda83af99d ("ANDROID: netfilter: xt_quota2: adding the
original quota2 from xtables-addons")
Signed-off-by: Todd Kjos <tkjos@google.com>
(cherry picked from https://git.code.sf.net/p/xtables-addons/xtables-addons
bc2bcc383c70b293bd816c29523a952ca8736fb5)
Change-Id: I965448564906e5fbf0fe6d6414f44d9e257ea195
Signed-off-by: Gajjala Chakradhar <gajjalac@motorola.com>
Reviewed-on: https://gerrit.mot.com/2119294
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:48:49 -03:00
liujg6 94a4bc0022 arm/defconfig: add hawao extra config
Add hawao extra configs
Define HAWAO_DTB

Change-Id: I432f4e10c9784e145f45eec392b677092df93e28
Reviewed-on: https://gerrit.mot.com/2123064
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: Xianhong Li <lixh8@lenovo.com>
Tested-by: Xianhong Li <lixh8@lenovo.com>
(cherry picked from commit 8dc889feb89b2c9993ec0d9f998b0204cd9117df)
Reviewed-on: https://gerrit.mot.com/2129420
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
2023-06-01 00:48:49 -03:00
a17671 26e1a1e08d usb:diag:revert the f_diag update from qcom for moto tty_diag driver
Qcom update the f_diag in sm2020
And break the moto tty_diag function

Change-Id: Idf943d633fca1873e86f22c1126d8ef8ada52d72
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/2127809
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:48:49 -03:00
a17671 07159c0646 tty:revert the tty update from qcom for moto tty_diag driver
Qcom update the pty driver in sm2020
And break the moto tty_diag function

Change-Id: I7c951a1bfaec786432c2b4d92ed0e2230a3f6398
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/2127808
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:48:49 -03:00
zhangjun10 d55be9bd8e : Enable samsung NFC driver
Enable samsung NFC RN4V driver
for Rhode 4G

Change-Id: I1cb794c965e8133ca629268c093d9ecca1840a49
Signed-off-by: zhangjun10 <zhangj10@motorola.com>
Reviewed-on: https://gerrit.mot.com/2124670
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:48:49 -03:00
zhangjun10 4be9ea2dc8 : integrate samsung RN4V NFC driver
integrate samsung RN4V NFC driver
this driver support RN4V and SN4V

Change-Id: I31a95d10a20e275d5cc746b84903006f8ba3dd65
Signed-off-by: zhangjun10 <zhangj10@motorola.com>
Reviewed-on: https://gerrit.mot.com/2124627
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:48:49 -03:00
qiaopf1 c4d9e7c7e3 Rhode4G: wide camera bring up
details:
remove the gpio2 reserved by default

Change-Id: I10c1fb708e3edebb0e7ca8bbb8c9a9022187ed1d
Signed-off-by: qiaopf1 <qiaopf1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2121391
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Reviewed-by: <yangmf3@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:48:49 -03:00
huaqin86 0cf9294ffb kernel: add charger gki
add charger charger gki
for charging bring up

Change-Id: Ia5ba43b5aa5156d78552b24d893bca9d29bbe7e9
Signed-off-by: huaqin86 <huaqin86@motorola.com>
Reviewed-on: https://gerrit.mot.com/2109775
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2023-06-01 00:48:49 -03:00
huaqin86 e8cacb7093 kernel: change spi gpio for i2c gpio for charger
gpio0 and gpio1 is spi mode in qcom platform
change it for i2c mode

Change-Id: I81a570b213d6181e2c82af3e3399e85797afa744
Signed-off-by: huaqin86 <huaqin86@motorola.com>
Reviewed-on: https://gerrit.mot.com/2109774
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:48:49 -03:00
Yan Zhang f746e926dc : Remove gpio3 from reserve list for rhode4g
The EVB board of Rode4g's fps uses gpio3 as reset pin, removed it
from reserved GPIO list for fps furher using.

Change-Id: I1490271122f8c17f531529cac4e4f8a3e118137c
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2107342
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2023-06-01 00:48:49 -03:00
zhaoxp3 7ea3b53b89 arm/defconfig: add rhode extra config
init rhode kernel config
Change-Id: I070dd6e656042a1060e0daa24fd893db4fe260af
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/2097956
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2023-06-01 00:48:49 -03:00
Leandro Castelli Silverio 9f70029326 Revert "(CR) guamp: emmc add ffu"
Due to high risk to update FFU FW on end users, we are reverting (CR)
This reverts commit cd15497445c03dc4b93e8aec22ef845c697fc99a.

Change-Id: Iddc18277e4193e18ad1844cd920343fdad63c0df
Reviewed-on: https://gerrit.mot.com/2002586
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Carlos Pinho <cpinho@motorola.com>
Submit-Approved: Carlos Pinho <cpinho@motorola.com>
2023-06-01 00:47:15 -03:00
Fernanda Schmidt dcfc8fd0a1 Removing debug config
Removing CONFIG_DEBUG_BUGVERBOSE, CONFIG_DEBUG_LIST and
CONFIG_IOMMU_DEBUG debug configs to improve performance

Change-Id: Ia21fec2b59d68e46fe3e65f0c429f29c2d02de3c
Reviewed-on: https://gerrit.mot.com/1984596
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Bruno Oliveira <brunosoe@motorola.com>
Reviewed-by: Carlos Pinho <cpinho@motorola.com>
Reviewed-by: Rafael Ortolan <rafones@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2023-06-01 00:47:14 -03:00
lixh8 a9fce687dd [PATCH] qseecom: Call INIT_WORK() before flush_work()
From 39d9b4a85cdf500154a59398f46d30b5d602425d Mon Sep 17 00:00:00 2001
From: Mon(CR) Singh <monising@codeaurora.org>
Date: Wed, 26 Aug 2020 14:10:08 +0530
Subject: [PATCH] qseecom: Call INIT_WORK() before flush_work()

Since flush_work() without INIT_WORK() is a bug,
hence adding INIT_WORK() and setting ->func field
to non-zero in qseecom suspend path.

Change-Id: I8f98b3dbbb98beff882782558ef302b14f21cdcc
Signed-off-by: Mon(CR) Singh <monising@codeaurora.org>
Reviewed-on: https://gerrit.mot.com/1974132
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:47:14 -03:00
dengwei1 cd0530f62b guamp: emmc add ffu
Porting from (CR)
emmc add ffu
support

Change-Id: I1e736ef7989d3af1664afa0d967d17f7ced79b4b
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1934932
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1961314
Reviewed-by: Ling Jin <lingjin@motorola.com>
Reviewed-by: Leandro Castelli Silverio <leandros@motorola.com>
2023-06-01 00:47:14 -03:00
huangdra 13447c9f2c Caprip: modify the actuator noise reduction work flow.
when app send "long vib+short vib"(such as 200+50) to driver.
Driver could not stop actuator correctly.

Change-Id: I83095079418f31b536ca00b88b4c7e19e07e2aa6
Signed-off-by: huangdra <huangdra@motorola.com>
Reviewed-on: https://gerrit.mot.com/1968503
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhangqing Huang <huangzq2@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2023-06-01 00:47:14 -03:00
huangdra 24b662adbd Caprip: modify the actuator noise reduction work flow.
when app send "long vib+short vib"(such as 200+50) to driver.
Driver could not stop actuator correctly.

Change-Id: I4ec72292cf9742176e59dc4fc37da602c6b16182
Signed-off-by: huangdra <huangdra@motorola.com>
Reviewed-on: https://gerrit.mot.com/1967013
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xu Ji <jixu@motorola.com>
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Jian Zhang <zhangjo@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2023-06-01 00:47:14 -03:00
Luiz Cressoni 3bb6b25343 APP data lost after first R upgrade
Since the property ro.crypto.allow_encrypt_override wasn't set in Q
file data in SDcard mounted as internal storage is double encrypted.
So we need to revert the patch that skips encription if bio is
fscrypto or blk-crypto encrypted to avoid decryption errors.

Change-Id: Ic46973a092f00227e0fb2706788df4caa674607d
Signed-off-by: Luiz Cressoni <lutcho@motorola.com>
Reviewed-on: https://gerrit.mot.com/1952458
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:47:14 -03:00
Srihari Sathyanarayana 9aca9b9d18 Porting of (CR) replace WARN with pr_debug for IPA api
For not implemented apis, there is huge WARN prints as below

Introduced by QC commit
795434e6 msm: ipa: Add ipa rm support for ipa_v2

This caused regression in Rndis reverse path (DUT to PC)

W Call trace:
W         : ipa_pm_is_used+0x44/0x78
W         : rndis_ipa_start_xmit+0x2a0/0x708
W         : dev_hard_start_xmit+0x140/0x290
W         : sch_direct_xmit+0xd4/0x2e8
W         : __qdisc_run+0x348/0x790
W         : net_tx_action+0x274/0x2a8
W         : __do_softirq+0x18c/0x374
W         : run_ksoftirqd+0x24/0x40
W         : smpboot_thread_fn+0x20c/0x270
W         : kthread+0x140/0x150
W         : ret_from_fork+0x10/0x18
W         : ---[ end trace 4cfa2ba718c7aa80 ]---
W         : ------------[ cut here ]------------
W         : ipa_pm_is_used not implemented for IPA ver 18
W         : WARNING: CPU: 3 PID: 37 at
drivers/platform/msm/ipa/ipa_api.c:3806 ipa_pm_is_used+0x44/0x78

Right now replace them with pr_debug to not hamper throughput and it
just print as below when dynamic debug is enabled
E         : ipa_pm_is_used not implemented for IPA ver 18

Tests: iperf.exe -s -u -p5002 -w64M -i1 -t15 ( PC as server)
Seen 350+ Mbits/sec from DUT to PC with only USB tethering.

Change-Id: I67d9df7c1f77326f6172595967798e82c7f85175
Signed-off-by: Srihari Sathyanarayana <sriharis@motorola.com>
Reviewed-on: https://gerrit.mot.com/1877836
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Vijayakumar Gn <vijaygn@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Signed-off-by: Robert Cabral <robertc@motorola.com>
Reviewed-on: https://gerrit.mot.com/1924169
2023-06-01 00:47:14 -03:00
Mike SU fc82a43871 MOTODESK-2239 Make NCM driver compatible with windows
1. Fix NTP-32 support
When connecting a CDC-NCM gadget to an host that uses the NTP-32 mode,
or that relies on the default CRC setting, the current implementation gets
confused, and does not expect the correct signature for its packets.
Fix this, by ensuring that the ndp_sign member in the f_ncm structure
always contain a valid value.
https://lore.kernel.org/patchwork/patch/1062690/

2. Add OS descriptor support
To be able to use the default USB class drivers available in Microsoft
Windows, we need to add OS descriptors to the exported USB gadget to
tell the OS that we are compatible with the built-in drivers.
Copy the OS descriptor support from f_rndis into f_ncm. As a result,
using the WINNCM compatible ID, the UsbNcm driver is loaded on
enumeration without the need for a custom driver or inf file.
https://lore.kernel.org/patchwork/patch/1062691/

3. Use "ncm0" interface name
The default interfacename "usb0" is confused. Use "ncm0" better.

Change-Id: I36d085c519f8205d7f9e0a1d9c669d3fb6623483
Reviewed-on: https://gerrit.mot.com/1872002
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Zonghua Liu <a17671@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
(cherry picked from commit edda0121735f5436ef2287379fb6b57325ef04f4)
Reviewed-on: https://gerrit.mot.com/1916170
Reviewed-by: Xuejin Wang <wangxjn@motorola.com>
Tested-by: M(CR) SU <suzh1@lenovo.com>
2023-06-01 00:47:14 -03:00
Pedro Bertoleti 8d56fc509d disable CONFIG_SLUB_DEBUG for user builds
This gerrit disables CONFIG_SLUB_DEBUG for bengal user
builds. This configs tends to badly impact performance
on user builds. Therefore, it should be disabled.

Change-Id: I09c64131492af6217d3f645f0870b0c93b981492
Reviewed-on: https://gerrit.mot.com/1913031
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Rafael Ortolan <rafones@motorola.com>
Reviewed-by: Fernanda Schmidt <fschmidt@motorola.com>
Reviewed-by: Carlos Pinho <cpinho@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:47:14 -03:00
Pedro Bertoleti 1fa24c832f disable CONFIG_DEBUG_PANIC_ON_OOM in userdebug builds
This gerrit disables CONFIG_DEBUG_PANIC_ON_OOM in userdebug builds
(for cebu device). It prevents Kernel Panic generation when Kernel
memory allocation fails, due to an Out of Memory (OOM) detection.

As OOM condition isn't so unusual (specially for heavy users), it
won't be a good experience for users to face kernel panics everytime
this OOM condition is satisfied.

Reference gerrit: https://gerrit.mot.com/#/c/1732467/

Change-Id: I7c1d017daa1671eef9b723adb72391901a2aed27
Reviewed-on: https://gerrit.mot.com/1905120
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Tiago Ganselli <ganselli@motorola.com>
Reviewed-by: Joo Costa <jmcosta@motorola.com>
Reviewed-by: Fernanda Schmidt <fschmidt@motorola.com>
Reviewed-by: Rafael Ortolan <rafones@motorola.com>
Reviewed-by: Carlos Pinho <cpinho@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:47:14 -03:00
Bruno Oliveira 381c1189b7 Include inlinecrypt at config.gz to fix Q->R upgrade
Issue: At mot4250 android R is not supporting inline encryption
            This causes recovery mode with init_user0_failed log
            when upgrade from Q to R

Fix: Include inlinecrypt at fstab and config.gz

Change-Id: I2b20a7cbd3670e6b9bf5c9885a14a1b0e4ec2083
Reviewed-on: https://gerrit.mot.com/1896972
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:47:14 -03:00
yanyh2 7ac8923b0e usb: add xhci-hw-lpm-disable dt property support
PROPAGATED_from (CR)

Add device tree property xhci-hw-lpm-disable support for
xhci hardware lpm feature disabling.

For some connected devices the host phone, they may be some
detection issue if xhci hardware lpm feature is enabled.
For this case, add this property in device tree of usb controller
to disable xhci hardware lpm.
(pick from https://gerrit.mot.com/#/c/1426964/)

Change-Id: I3907c945dd83fdefdda597975318e45d8be047e1
Signed-off-by: yanyh2 <yanyh2@motorola.com>
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zonghua Liu <a17671@motorola.com>
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Signed-off-by: Robert Cabral <robertc@motorola.com>
Reviewed-on: https://gerrit.mot.com/1858485
2023-06-01 00:47:14 -03:00
wangwang1 f12accb185 kernel:ram overwritten by TZ logs to cause random panics
cherry-pick: (CR) kernel:ram overwritten by TZ logs to cause random panics

in panic RAMDump file, we can see the memory in kernel was overwritten by TZ logs
the tzlog strings corrupted the memory address to cause abort on VM to PHY-M
similar panic issue was frequently reported in User build which disable
DebugFS along with tzlog driver which depends on DebugFS. Add the tzlog driver
back, but remove the dependency of DebugFS, instead, use ProcFS for output

Change-Id: If6f9f0bf0fe3ce08c868582a457b207cee07923d
Signed-off-by: wangwang1 <wangwang1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1836697
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1836767
2023-06-01 00:47:14 -03:00
huangdra 9679534c60 caprip: Add start/stop vibrating notification to actuator.
Vibrator on phone main board can disturb camera AF VCM when it's vibrating.
To avoid the camera lens str(CR) noise during vibrating, power on AF and
push lens to certain position (for caprip DAC 154) can greatly reduce the
noise.This change is for notifying camera actuator that vibrator will start
or stop work, then camera can respond accordingly..

Change-Id: Ie26d6f811d6628f51045a853dc3e90f422481da9
Signed-off-by: huangdra <huangdra@motorola.com>
Reviewed-on: https://gerrit.mot.com/1836813
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:47:14 -03:00
huangdra 0891d8d1c1 arm64: defconfig: Actuator noise reduction.
Add CONFIG_AF_NOISE_ELIMINATION for enable/disable actuator separate controlling
to avoid resonance noise during vibrating.

Change-Id: I85d0b4b00a61c4761fa4e13d50da6367a4e3b87b
Signed-off-by: huangdra <huangdra@motorola.com>
Reviewed-on: https://gerrit.mot.com/1835496
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:47:14 -03:00
panzh2 4ca15142c9 kernel: driver/vibrator: diff vol for long/short vib
This is a workarround to reduce the vibrator strength for long vib.
Add attribute "qcom,vib-dis-short-long" in device-tree to enable the
function.
Now it is applied in caprip product.

Change-Id: I41c04e0dfb14c184f999d7d0a4121c10dd763cd5
Signed-off-by: panzh2 <panzh2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1805268
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2023-06-01 00:47:14 -03:00
lixh8 f043cb1d82 skip ipa assert for debug build (patch 2)
ipa assert will break userdebug build in secure hw for logs.
skip ipa assert for debug build.

Change-Id: I5ff5c719c17748274837b543bbc1d1113a4a5812
Signed-off-by: lixh8 <lixh8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1803987
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2023-06-01 00:47:14 -03:00
lixh8 a3511519b3 skip ipa assert for debug build
ipa assert will break userdebug build in secure hw for logs.
skip ipa assert for debug build.

Change-Id: I52d5433282ce9bb24e954bca9e3d0c04fe5bedc5
Signed-off-by: lixh8 <lixh8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1799258
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2023-06-01 00:47:14 -03:00
huangzq2 347882f665 limit ion cache size
We often see lost ram is still very high even we close the camera app.
That's because camera's ion memory goes into ion cache after use, not
buddy system. And this cache was not counted in proc/meminfo/memAvailable,
so it can not reflect the true memAvailable in this state. It may affects
some components l(CR) camera or lmkd which need evaluate true memAvailable
in system. Take camera as example, while launching camera, camera app needs
calcuate the available memory then call framework api to kill processes,
without this patch, we will see overkill.

This patch is only for 4.14 & 4.19, on kernel 5.4, ion cache will
be counted in memAvailable, so memAvailable is always trustable.

Change-Id: I4a9678530d387bd8da404d797f7d6e33bd258ac4
Signed-off-by: huangzq2 <huangzq2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1792299
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
(cherry picked from commit a9acaa732c7fcb5e9ec9eea08bb6bb390c316722)
Reviewed-on: https://gerrit.mot.com/1795665
2023-06-01 00:47:14 -03:00
zhangly19 f0ecb153ea Revert "(CR) power: Add wakeup source in battery historian logging"
This reverts commit 3a7c2ddda918ea0ba239c51d74984a499c392942.

This change has been included in new base .so revert it

Change-Id: I50210a029c2f69b8561a7cae2f4b87b190b8a842
Reviewed-on: https://gerrit.mot.com/1791620
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: gaoyx9 <gaoyx9@motorola.com>
2023-06-01 00:47:14 -03:00
xieqiong2 5e3f51191a power: print active wakeup source before suspend.
porting (CR)

1. Print active wakeup source before entering suspend
2. Use to monitor the kernel long term wake lock issue

Change-Id: Icee9744da0c46fbb56d516e996eed7115f754931
Signed-off-by: xieqiong2 <xieqiong2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1788058
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:47:13 -03:00
Ryan Lattrel b7d1d52266 alarmtimer: add debug to identify alarmtimers
porting (CR).Based on KBA-200505201040

Print out timer wake-up info to debug the sources
of pm8xxx_rtc_alarm wake-ups.

Change-Id: I39f24dad0613a08844eefcd25076831589256e52
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1668046
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
(cherry picked from commit 0aa8db75da991b42037336ad28cbd629f3483636)
Reviewed-on: https://gerrit.mot.com/1781686
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
2023-06-01 00:47:13 -03:00
xieqiong2 17231f700a charger:driver:fix non power off issue for factory kill.
In P, run_cmd(poweroff_cmd) can work to trigger /sbin/poweroff. Now in
R, it can not work but still return success. We need to use
kernel_power_off() to trigger power off for factory kill.
The change is referring to (CR).

Change-Id: Ia18faee3138259c7ee35946313e9b0dac75dd244
Signed-off-by: xieqiong2 <xieqiong2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1763914
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:47:13 -03:00
panzh2 8cf8451e1f arm64/defconfig: capri: open nfc driver for capri
set CONFIG_NFC_NQ=y
include the build of nfc driver

Change-Id: I1614984a89fffe00a808216c9d36ca1e13292cfc
Signed-off-by: panzh2 <panzh2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1758609
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:47:13 -03:00
zhaoxp3 1a9142aca8 arm64/defconfig: disable debug fs on user build
cherry-pick from:
(CR): arm64/defconfig: disable debug fs on user build

according to android R,
disable debug fs for user build

Change-Id: I985888644c92e14205f7260c423bb88bad026dd9
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1752415
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1753930
Reviewed-by: Jianguo Liu <liujg6@motorola.com>
2023-06-01 00:47:13 -03:00