Commit graph

821566 commits

Author SHA1 Message Date
zhaoxp3
cc69f6bdcb 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@mt.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1753930
Reviewed-by: Jianguo Liu <liujg6@motorola.com>
2022-03-23 14:54:22 +08:00
xuwei9
e84922711e charger:support typec high 2A current at non-turbo product
Support drive 2A current from type-c high charger
at non-support turbo charger project

Change-Id: Id41a4a307b519e6ae23dce1503de81386a77671c
Signed-off-by: xuwei9 <xuwei9@mt.com>
Reviewed-on: https://gerrit.mot.com/1750006
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 f70893606fbb3b7d9a074cdd382aa977a797745e)
Reviewed-on: https://gerrit.mot.com/1751199
2022-03-23 14:54:22 +08:00
liujg6
8c308c2359 arm/defconfig: enable CONFIG_DEBUG_LIST on R
For kernel requirements at matrix level 5, Missing config CONFIG_DEBUG_LIST
Add CONFIG_DEBUG_LIST into moto-bengal.config on R

Change-Id: Ia2f1ad1f6425d2b08e14000a7bf69b85e6bdfae6
Reviewed-on: https://gerrit.mot.com/1745633
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@mt.com>
Submit-Approved: Jira Key
2022-03-23 14:54:22 +08:00
zhouwl
93845da6b4 soc: qcom: service-locator: enlarge timeout value
Propogate changes from (CR).
Dogfooder reported call has no sound issue, it happens on the first
bootup after BOTA upgrading. According to kernel log, filesystem
mount more than 5 minutes, causes locator service timed out.

After discussing with Qcom, they suggest to enlarge this timeout value.

Propagted: https://gerrit.mot.com/#/c/1538288/

Change-Id: I2457b452d21c7396d6a314ae5307c225c52d83da
Signed-off-by: zhouwl <zhouwl@mt.com>
Reviewed-on: https://gerrit.mot.com/1740479
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
(cherry picked from commit 9f2105e6420cf9871b3c4b494f70dc98a8449379)
Reviewed-on: https://gerrit.mot.com/1744516
Reviewed-by: Yunfei Guo <guoyf2@motorola.com>
Reviewed-by: Wang Wang <wangwang1@mt.com>
2022-03-23 14:54:22 +08:00
liujg6
49680fd360 arm/defconfig: Caprip: init kernel deconfig
add Caprip kernel config files
enable Caprip dtb

Change-Id: Ie14b901781594e032e7643dd003e0db35f28101e
Reviewed-on: https://gerrit.mot.com/1743872
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@mt.com>
Submit-Approved: Jira Key
2022-03-23 14:54:22 +08:00
liujg6
197db2f68e arm/defconfig: Capri: init kernel deconfig
add Capri kernel config files
enable Capri dtb

Change-Id: I8498875a67ac7d335dd58a034aae97192c5a72bf
Reviewed-on: https://gerrit.mot.com/1743605
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@mt.com>
Submit-Approved: Jira Key
2022-03-23 14:54:22 +08:00
Vikash Garodia
0835ebfc04 Revert "Revert "msm: media: uapi: Redefine NV12 format with different alignment""
This reverts commit f90529f1dec9bdf47082ed0c4d279918459b1be0.

This gerrit was temporarily reverted so as to align all the other
dependent gerrits to merge together.

Mot-CRs-Fixed:(CR)

Change-Id: Idcb99939488d6d83aee1a9c9af4e613820a3a181
Signed-off-by: Vikash Garodia <vgarodia@codeaurora.org>
Reviewed-on: https://gerrit.mot.com/1730952
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zilong Zhang <zhangzl7@mt.com>
Reviewed-by: Ji Zhao <zhaoji1@mt.com>
Reviewed-by: Zhuoran Xu <xuzr3@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2022-03-23 14:54:22 +08:00
xiaojj1
ca4b4d3cf5 Revert "msm: media: uapi: Redefine NV12 format with different alignment"
Mot-CRs-Fixed: (CR)
This reverts commit cf7d4c0cc7eb9130ccac08cd7f4e08cfe0d267b3.

Change-Id: I187977996b5ffc483c4ff2eba0e625717d7a2b5c
Signed-off-by: xiaojj1 <xiaojj1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1730949
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zilong Zhang <zhangzl7@mt.com>
Reviewed-by: Ji Zhao <zhaoji1@mt.com>
Reviewed-by: Zhuoran Xu <xuzr3@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
2022-03-23 14:54:22 +08:00
xieqiong2
bbb4e4409f clear SDAM for new battery profile loading.
QCOM KBA-191111223725
[Platform]:
SM6150, SM7150, SM7250, Any platforms use PMI632
[Issue Description]:
If ever use a mismatched temporary profile before receive the matched profile, it may lead to
unexpected inaccurate/nonlinear soc issue, even though you have replaced the correct one, issue
still remains.
[Solution]:
The reason of this issue is because of the saving of incorrect battery info in SDAM, Qcom battery
gauge save the calculated battery info(like ESR, Capacity...) into the SDAM of PMIC, when reload
a new battery profile, these info will not be cleared, in other words, device will use the incorrect
data to calculate the Soc even though you have loaded a correct matched profile.
To solve this issue, there're two options, one is to re-plug the battery, so that SDAM data will be
cleared. The other option is to merge below workaround, and add device tree property "qcom,
oem-batt-profile-ver" to identify profile change, then driver code will do SDAM clear.

Change-Id: I9fa176cb75da6f9b584553888afa66453576db4e
Signed-off-by: xieqiong2 <xieqiong2@mt.com>
Reviewed-on: https://gerrit.mot.com/1732309
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@mt.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-03-23 14:54:22 +08:00
huangzq2
d9484dbeee disable DEBUG_PANIC_ON_OOM on 3G ram device
3G ram device has bigger memory pressure than 4G ram device, hence it
has more misreport bugs if we enabled DEBUG_PANIC_ON_OOM. Though we
disable this on 3G ram device, we still can catch oom once device has
no killable process.

Change-Id: Ie12e7c96bac3049031e1e73ce22207df5ae2a8b1
Signed-off-by: huangzq2 <huangzq2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1732467
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-03-23 14:54:22 +08:00
xieqiong2
68f868a654 driver:qg:enale QG_DEBUG_SOC.
Enable QG_DEBUG_SOC debug mask in QCOM
qg module for soc related issue.

Change-Id: Ia7546a9bcea3d71b1b7a5dfd65a675e06b932e4c
Signed-off-by: xieqiong2 <xieqiong2@mt.com>
Reviewed-on: https://gerrit.mot.com/1728275
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@mt.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-03-23 14:54:22 +08:00
chailu1
8a6240c29b Charge: fix slab out of bounds risk
There is a risk if mmi->pres_temp_zone value >= num_temp_zones.
This will casue pointer point to a illegal memory address.

Change-Id: Ic7c3d62c5c59bd41d9fd4f77cd537782c734a486
Reviewed-on: https://gerrit.mot.com/1725712
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@mt.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-03-23 14:54:22 +08:00
chailu1
8abf148f18 charge: qc2.0 adapter charge slow
resolve qc2.0 adapter charge slow
refer to https://gerrit.mot.com/947317

Change-Id: I97a133b2661e31b816e1f97e1b66d31bd6ca52f9
Signed-off-by: chailu1 <chailu1@mt.com>
Reviewed-on: https://gerrit.mot.com/1716838
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-03-23 14:54:22 +08:00
chailu1
10c958db07 charge: Handle QC2.0 charger vbus rise 12V
some non-standard QC2.0 charger (e.g. Tronsmart) will rise
vbus to 12V when phone do HVDCP3 detect protocol.
So when vbus reach 12V, we disable HVDCP to workaround it.

refer to (CR)

Change-Id: I1a1fbf1715ac6fbd12a9cd550207b210f16a951d
Signed-off-by: chailu1 <chailu1@mt.com>
Reviewed-on: https://gerrit.mot.com/1709435
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-03-23 14:54:22 +08:00
chailu1
8048e9c650 BCL: Enable charge bcl feature
When SOC < 10% will mitigate CPU,for improved
performance at turbo charGing scene, will not
mitigate CPU.

Change-Id: I2b88806781fa1dae0f0ce2c15d2a9f1b74d00298
Reviewed-on: https://gerrit.mot.com/1707400
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-03-23 14:54:22 +08:00
huangzq2
8ec3bfddf9 arm: setup: support mem= memory limit
Change-Id: I7d5e5e7f9b2d97fc6a0d1c0ea3e4e767e9730a7f
Signed-off-by: huangzq2 <huangzq2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1704937
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@mt.com>
Submit-Approved: Jira Key
2022-03-23 14:54:22 +08:00
zhaoxp3
da5790a977 arm: call idle notifiers in CPU idle
When CPU idle is enabled, the idle call should also notifiy the
idle_notifier_call_chain of the change in status. Otherwise some
processes will think the CPU is always active.
Then it will cause some tasks occupy more cpu

Change-Id: Ie11770330bee93ce0e4622a3127ca4850abfb4ba
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1688959
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@mt.com>
Submit-Approved: Jira Key
2022-03-23 14:54:21 +08:00
xuwei9
6a5b3fb1fc charger:improve micro-b input current to 1.9A per HW
Per HW evaluation, improve micro-b input current to 1.9A
for charGing time optimization

Change-Id: Ib538118ff78b8605f979701e9a88769f814905b5
Signed-off-by: xuwei9 <xuwei9@mt.com>
Reviewed-on: https://gerrit.mot.com/1680936
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-03-23 14:54:21 +08:00
liujg6
405a3c7f8d Capri bring up
fix compile erro on r due to qcom api changes

Change-Id: I0730df353be93f6f1f06193ddad651b18c399cc1

add R kernel compatibility requirement configs

Change-Id: If67721ab5abd57ad78160d59364e4ed9dd708fbc

config guam R

Change-Id: I1ecb8583728776be53a580c3251a2456713a3723

temp export kallsyms_lookup_name for fail loading some moto kos

Change-Id: I0f22aabb249219a587e696db3d1853a5dcd01afc
2022-03-23 14:54:21 +08:00
xuwei9
cdcc623a8d kernel:distinguish type-c and microb cdp input setting
Distinguish type-c and micro-b
input setting

Change-Id: Ibe01d2ea82821fe813389d6d861276f96021f800
Signed-off-by: xuwei9 <xuwei9@mt.com>
Reviewed-on: https://gerrit.mot.com/1670666
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
2022-03-23 14:54:21 +08:00
huangzq2
2ad253dbf2 disable SPLIT_RSS_COUNTING to fix zero RSS issue
Change-Id: Iee0bdf2534fee660e64d8e8221c4dc571e13921e
Signed-off-by: huangzq2 <huangzq2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1668699
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Bingqian Yang <yangbq1@mt.com>
2022-03-23 14:54:21 +08:00
xieqiong2
3754d45181 charger:add battery test mode support for cebu.
Porting from https://gerrit.mot.com/#/c/1434780/
Add battey test mode in smbchg for simulate the battery
temperature and battery soc.

Change-Id: I23cd23dd686b144ed26ba9f5c55df83986c57690
Signed-off-by: xieqiong2 <xieqiong2@mt.com>
Reviewed-on: https://gerrit.mot.com/1666808
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
2022-03-23 14:54:21 +08:00
Haijian Ma
5fca917d89 spi: disable_depth > 0 when pm runtime get sync
when unit suspend, pm_runtime_disalbe() would be called. And
then dev.power.disable_depth number will +1. And its value
will be -1 when pm_runtime_enable() is called.
And if spi bus want to work as soon as system resume, it will call
pm_runtime_get_sync(), which would check the value of
disable_depth. If its value is not 0, spi operation will fail.
The sequence is as following:

runtime_suspend
pm_runtime_disable()-> disable_depth +1
rumtime_resume
pm_runtime_eanble() -> disable_depth -1
spi_sync()
pm_runtime_get_sync -> check the value of disable_depth

But for sometimes, spi operation will earlier than pm_runtime_enable()
called. Then spi_sync() will fail duel to non-zero disable_depth value.
So we add a checking logic before pm_runtime_get_sync() to make sure
disable_depth is 0.
(pick from https://gerrit.mot.com/#/c/1500296/)

Change-Id: I69a0ee3d728ffe3c13d95208f203bd9ed22249b2
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1654438
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-03-23 14:54:21 +08:00
weiweij
8d8f779621 driver/spi: spi driver suspend changes
Port the spi changes from bq-6125.
- Do not force suspend for all spi bus.
This will not cause power issue, and can fix clock is closed when SPI
sync message.
- SPI driver missed to check spi runtime status in device suspend.
This may cause spi clocks not closed before device enter deep sleep
So check this status in spi suspend function, if bus not suspened,
break device suspend.
(pick from https://gerrit.mot.com/#/c/1498807/)

Change-Id: Id31492702506361a4ae5e2ccb9c5d381d321e143
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1654409
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-03-23 14:54:21 +08:00
wangyq13
94ebe54a60 kernel: panel_notifier: Add new panel notify event type
panel_notifier:
Add new panel notify event type, after panel reset, before
sending panel on init commands.

Change-Id: I9cc37530ca610060fd122da52bd2edba995ceee4
Signed-off-by: wangyq13 <wangyq13@mt.com>
Reviewed-on: https://gerrit.mot.com/1651425
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Dezhen Hou <houdz1@motorola.com>
Submit-Approved: Jira Key
2022-03-23 14:49:30 +08:00
a17671
d512f6a281 mmc:host:sdhci:Fix host->claimer NULL pointer problem
Once the SD card is removed,
MMC core will set the the host->claimer=NULL & host->claimer->task=NULL 
So sdhci_dump_state shall check this condition
To avoid using the host->claimer pointer directly
Below shows the parsed call stack and logs:
Unable to handle kernel NULL pointer dereference at virtual address 0000
<6> Mem abort info:
<6>   ESR = 0x96000005
<6>   Exception class = DABT (current EL), IL = 32 bits
<6>   SET = 0, FnV = 0
<6>   EA = 0, S1PTW = 0
<6> Data abort info:
<6>   ISV = 0, ISS = 0x00000005
<6>   CM = 0, WnR = 0
<6> user pgtable: 4k pages, 39-bit VAs, pgdp = 000000000e17a57e
6> [0000000000000000] pgd=0000000000000000, pud=0000000000000000
<6> Internal error: Oops: 96000005 [#1] PREEMPT SMP
<2> pstate: 60000085 (nZCv daIf -PAN -UAO)
<2> pc : sdhci_dumpregs+0xf1c/0x1250
<2> lr : sdhci_dumpregs+0xef0/0x1250
<2> sp : ffffff8008003d60
<2> x29: ffffff8008003dc0 x28: 0000000000000012 
<2> x27: ffffffc0f76b47c0 x26: ffffff800aebc038 
<2> x25: 0000000003ff100b x24: ffffffc0f76b47b8 
<2> x23: ffffff800aebc058 x22: 0000000000000000 
<2> x21: 0000000000000003 x20: ffffffc0f76b4000 
<2> x19: ffffffc0f76b4780 x18: 0000000000000090 
<2> x17: ffffff800abb8598 x16: 3030303030307830 
<2> x15: 0000000000000040 x14: 0000000000000048 
<2> x13: 0000000000000008 x12: 0000000000000000 
<2> x11: 0000000000000001 x10: 0000000000000007 
<2> x9 : 7c9075bd256d4900 x8 : 0000000000000000 
<2> x7 : 0000000000000000 x6 : ffffff800a35f428 
<2> x5 : 0000000000000000 x4 : 000000000000000c 
<2> x3 : 0000000000000000 x2 : 000000000c0a4680 
<2> x1 : ffffffc0f764c100 x0 : ffffff800994b313   

Call stack:-
-012|sdhci_dump_state(inline)
-012|sdhci_dumpregs([X19] host = 0xFFFFFFC0F76B4780 = end+0x40ECFA2780)
-013|sdhci_data_irq(inline)
-013|sdhci_irq()
-014|__read_once_size(inline)
-014|static_key_count(inline)
-014|static_key_false(inline)
-014|trace_irq_handler_exit(inline)
-014|__handle_irq_event_percpu()
-015|handle_irq_event_percpu(inline)
-015|handle_irq_event([X19] desc = 0xFFFFFFC0FA892200 = end+0x40F0180200)
-016|cond_unmask_eoi_irq(inline)
-016|handle_fasteoi_irq([X21] desc = 0xFFFFFFC0FA892200 = end+0x40F0180200)
-017|__handle_domain_irq([X20] domain = 0xFFFFFFC005FF9800 = end+0x3FFB8E7800, ?, [X22] lookup = TRUE, [X
---|end of frame

Instruction set:-
NSX:FFFFFF8008B04A98|F942CA88 ldr x8,[x20,#0x590] ; x8,[mmc,#1424] 
-->>x8 = 0xFFFFFFC0F76B4000+0x590
= 0xFFFFFFC0F76B4590 (correct address)
NSX:FFFFFF8008B04A9C|F0007220 adrp x0,0xFFFFFF800994B000
NSX:FFFFFF8008B04AA0|B9432662 ldr w2,[x19,#0x324] ; w2,[host,#804]
NSX:FFFFFF8008B04AA4|910C4C00 add x0,x0,#0x313 ; x0,x0,#787
NSX:FFFFFF8008B04AA8|394CA264 ldrb w4,[x19,#0x328] ; w4,[host,#808]
NSX:FFFFFF8008B04AAC|F9400108 ldr x8,[x8] ---->> point of crash //x8=0x0

Change-Id: I9f8edc96c2da93caf423a78610dead0d30921542
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/1635488
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-03-23 14:49:30 +08:00
huangzq2
88533503ce Change ION fill mark from 100M to 16M to reduce the Lost RAM
Change-Id: I81823f124b16a6ba3a2fa232b47e1877d816cd9b
Signed-off-by: huangzq2 <huangzq2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1638222
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-03-23 14:49:29 +08:00
liujg6
902526ccb8 arm/defconfig: cebu: init kernel deconfig
add cebu kernel config files
enable cebu dtb

Change-Id: Ie7b8d3db3211d58353f92173d8b4bbf7f84bea8b
Reviewed-on: https://gerrit.mot.com/1630565
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-03-23 14:49:29 +08:00
jake.liang
b864cd776b NFC VEN pin startup and shutdown sequence
for NFC certification case 5.3.2.2.3
    need pull down VEN
    
Change-Id: I2312114e2adfddd9fb47a2e63f470aaa9000Montana0
Signed-off-by: zhangj10 <zhangj10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1626245
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Liang Guangxiang <tnnliang@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-03-23 14:49:29 +08:00
huangzq2
b971d49de0 disable watermark boost
Change-Id: I7f13f763382f1a54616079bc8258997c7f732d91
Signed-off-by: huangzq2 <huangzq2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1625704
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-03-23 14:49:29 +08:00
chailu1
538e3cb7ad charge:Config DCP 2A charge current
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@mt.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
2022-03-23 14:49:29 +08:00
huangzq2
60fa9f788c tune memory configs
Change-Id: I062a526a14d54f084dd65c15b3e73c4c8f2f627a
Signed-off-by: huangzq2 <huangzq2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1614187
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-03-23 14:49:29 +08:00
xuwei9
b37e72059d charger:limit typec high to medium when hvdcp disabled
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@mt.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
2022-03-23 14:49:29 +08:00
xuwei9
825204afcd charger:support 2A dcp charger
For non-support turbo charger project.
allow max 1.8A charGing current of DCP.

Change-Id: I2c98600bc4e258df485de79d0201ca86ff89394a
Signed-off-by: xuwei9 <xuwei9@mt.com>
Reviewed-on: https://gerrit.mot.com/1611260
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-03-23 14:49:29 +08:00
zhaoxp3
87c73b2b71 arm64/defconfig: enable external usb camera
add external usb camera support
+CONFIG_MEDIA_USB_SUPPORT=y
+CONFIG_USB_VIDEO_CLASS=y

Change-Id: I013e59d85923e0b8ccb8818afccbab8a2cdb3908
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1610884
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@mt.com>
Submit-Approved: Jira Key
2022-03-23 14:49:29 +08:00
Qing Chang
39a49f03db power: reset: Use warm reset for dload mode
dload mode requires memory contents to be maintained, so we have to use
warm reset during reboot.

Change-Id: Idb4a01685e7164cc6a5272d0287934bc6fe6307f
Signed-off-by: Qing Chang <a21550@motorola.com>
Reviewed-on: https://gerrit.mot.com/1520641
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dong-Hua Yan <a18317@motorola.com>
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1606396
Reviewed-by: Wang Wang <wangwang1@mt.com>
2022-03-23 14:49:29 +08:00
wanggl3
eac2016fd4 Update kernel config of userdebug on Guam/GuamP to improve performance
To improve the userdebug build performance
Need to remove some debug kernel config

Change-Id: I2965d41e7bbe0f1aa013d08de596b444efdef29a
Reviewed-on: https://gerrit.mot.com/1599892
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhangqing Huang <huangzq2@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-03-23 14:49:29 +08:00
xuwei9
47bd757ad5 charger:duplicated apsd detection at pmi632
Pmic632 conduct apsd detection twice
which influence performance.

Change-Id: I94d49e763f889c7e5daaa4da2f8c49b929179b3b
Signed-off-by: xuwei9 <xuwei9@mt.com>
Reviewed-on: https://gerrit.mot.com/1592845
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-03-23 14:49:29 +08:00
sunyue5
0e4c675905 expose ssr_reason to ss_ramdump
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
2022-03-23 14:49:29 +08:00
fuxm1
463a64339a SD: print SD interrupt log
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@mt.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
2022-03-23 14:49:29 +08:00
xuwei9
e38042296c charger:SW_ICL do not used at moto
SW_ICL used at qcom base,
moto have own ICL setting.
Conflict with moto ICL control algorithm.

Change-Id: Ic00e3a671c16039c651e7cafc985c46330612349
Signed-off-by: xuwei9 <xuwei9@mt.com>
Reviewed-on: https://gerrit.mot.com/1593101
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-03-23 14:49:29 +08:00
xuwei9
b3eeb2b95d charger:factory image charGing soc over 75%
Trigger heatbeat immediately when factory image flag
setted in case battery soc over 75%

Change-Id: I86720e23b99611c9ba1279d26df7adccd62a2fbf
Signed-off-by: xuwei9 <xuwei9@mt.com>
Reviewed-on: https://gerrit.mot.com/1592730
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-03-23 14:49:29 +08:00
niuli1
81b3bba5a3 usb audio: Let the usb sound card index from 1
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@mt.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>
2022-03-23 14:49:29 +08:00
xuwei9
d13872d167 kernel:USB DRP connect debug accessory test
USB type-c Compliance Test: TD 4.8.2
DRP Connect Debug Accessory Test

Change-Id: I7ca4de5e6bee392cba24b34d8a474c0b879bcba4
Signed-off-by: xuwei9 <xuwei9@mt.com>
Reviewed-on: https://gerrit.mot.com/1587288
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-03-23 14:49:29 +08:00
chailu1
d2c2df7a7d charge: config: config batt NTC for bornr NA
bornr battery NTC using 100k
So remove 10K configure.

Change-Id: I0cc2cbb29102b2f83f077206a685ecece70e5ae0
Signed-off-by: chailu1 <chailu1@mt.com>
Reviewed-on: https://gerrit.mot.com/1586648
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2022-03-23 14:49:28 +08:00
zhanggb
4bca501fd4 Kernel: add sys node for panel supplier
Moto hardware revision need panel supplier info. Add sys node for
in drm connector to support it.

Change-Id: I81342a7edbf32b87a67f0ff3c9b3cf00cedbd020
Reviewed-on: https://gerrit.mot.com/1540960
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Dezhen Hou <houdz1@motorola.com>
Reviewed-by: Shanshan Dai <daiss1@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1583969
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
2022-03-23 14:49:28 +08:00
Bang Nguyen
b37175d2d5 gpu/drm: Create panelRegDA sysfs to expose panel's reg
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@mt.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>
2022-03-23 14:49:28 +08:00
xizx
bd3d88a29c pwrkey: change printk level to output to console
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>
2022-03-23 14:49:28 +08:00
xizx
1256ceba04 Reboot: trigger warm reset when receive hw_warmreset cmd
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>
2022-03-23 14:49:28 +08:00
huangzq2
b3a25aab18 disable CONFIG_DEBUG_CONSOLE_UNHASHED_POINTERS for sts test
Change-Id: I82cbba3df1b17688f57db81b9d13b40d73dda2e0
Signed-off-by: huangzq2 <huangzq2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1562120
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-03-23 14:49:28 +08:00