Commit Graph
821926 Commits
Author SHA1 Message Date
xieqiong2 e783fbe7aa 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@lenovo.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@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:47:13 -03:00
chailu1 2562e90500 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@lenovo.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:47:13 -03:00
chailu1 7fe85e21d3 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@lenovo.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
2023-06-01 00:47:13 -03:00
chailu1 fe183ea9c0 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@lenovo.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
2023-06-01 00:47:13 -03:00
chailu1 4a8fffaf9c 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
2023-06-01 00:47:13 -03:00
huangzq2 62fd3bc61c 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@lenovo.com>
Submit-Approved: Jira Key
2023-06-01 00:47:13 -03:00
zhaoxp3 f589f25f57 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@lenovo.com>
Submit-Approved: Jira Key
2023-06-01 00:47:13 -03:00
xuwei9 205e724ed6 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@lenovo.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
2023-06-01 00:47:12 -03:00
liujg6 9b096edd19 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
2023-06-01 00:47:12 -03:00
xuwei9 26fdb536dc 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@lenovo.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
2023-06-01 00:47:12 -03:00
huangzq2 dd4e38c2ee 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@lenovo.com>
2023-06-01 00:47:12 -03:00
xieqiong2 37abee060a 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@lenovo.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
2023-06-01 00:47:12 -03:00
Haijian Ma 676f8fd1e4 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
2023-06-01 00:47:12 -03:00
weiweij c3682b0adb 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
2023-06-01 00:47:12 -03:00
wangyq13 d97f64bdbe 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@lenovo.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
2023-06-01 00:47:12 -03:00
a17671 bcff10d535 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
2023-06-01 00:47:12 -03:00
huangzq2 4a736b3596 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
2023-06-01 00:47:12 -03:00
liujg6 fcadaaf1c2 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
2023-06-01 00:47:12 -03:00
jake.liang 85e2df0ef0 : 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
2023-06-01 00:47:12 -03:00
huangzq2 47a9fe2e54 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
2023-06-01 00:47:12 -03:00
chailu1 dcd5e33ba1 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@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
2023-06-01 00:47:12 -03:00
huangzq2 98215bb75e 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
2023-06-01 00:47:12 -03:00
xuwei9 8b67a37ae2 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@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
2023-06-01 00:47:12 -03:00
xuwei9 6483cdf58c 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@lenovo.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
2023-06-01 00:47:12 -03:00
zhaoxp3 0d4a9a5693 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@lenovo.com>
Submit-Approved: Jira Key
2023-06-01 00:47:12 -03:00
Qing Chang a267c67ad4 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@lenovo.com>
2023-06-01 00:47:12 -03:00
wanggl3 486ae8b8a3 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
2023-06-01 00:47:12 -03:00
xuwei9 76b9b7d23f charger:duplicated apsd detection at pmi632
Pmic632 conduct apsd detection twice
which influence performance.

Change-Id: I94d49e763f889c7e5daaa4da2f8c49b929179b3b
Signed-off-by: xuwei9 <xuwei9@lenovo.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
2023-06-01 00:47:11 -03:00
sunyue5 a71ce7f2a6 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
2023-06-01 00:47:11 -03:00
fuxm1 f7b523031b 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@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
2023-06-01 00:47:11 -03:00
xuwei9 eb55feb28c 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@lenovo.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
2023-06-01 00:47:11 -03:00
xuwei9 6f23c40cf3 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@lenovo.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
2023-06-01 00:47:11 -03:00
niuli1 0d73a54fe2 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@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>
2023-06-01 00:47:11 -03:00
xuwei9 bfee3cd8d5 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@lenovo.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
2023-06-01 00:47:11 -03:00
chailu1 217254f685 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@lenovo.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
2023-06-01 00:47:11 -03:00
zhanggb 17edefa33b 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>
2023-06-01 00:47:11 -03:00
Bang Nguyen 26d9c731a0 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@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>
2023-06-01 00:47:11 -03:00
xizx e6dfda2e39 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>
2023-06-01 00:47:11 -03:00
xizx 001270581f 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>
2023-06-01 00:47:11 -03:00
huangzq2 9e80af3bec 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
2023-06-01 00:47:11 -03:00
chailu1 a75a2aa78f Revert (CR): power: smb5: Clear HDC AICL
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
2023-06-01 00:47:11 -03:00
zhangly19 81eec63dad arm/defconfig: borneo: init kernel deconfig
add borneo kernel config

Change-Id: I58003116f99619025f1033cdf41a1d6fdc0851f3
Reviewed-on: https://gerrit.mot.com/1548517
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yiwen Liu <liuyw2@motorola.com>
Reviewed-by: Hongshu Lou <louhs1@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2023-06-01 00:47:11 -03:00
wangwang1 36f2d05926 guam serials: remove kernel config for PASR
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
2023-06-01 00:47:11 -03:00
zhaoxp3 b2f8ddf75a Revert "mm, vmstat: hide /proc/pagetypeinfo from normal users"
This reverts commit 6c944fc51f.

Change-Id: I92b732f1a3c51bada8db2d6e606344f3ead5cd0f
Moto-CRs-fixed: (CR)
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1543986
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:11 -03:00
zhaoxp3 ca75b9e966 arm/defconfig: guamna: init kernel deconfig
add guamna kernel config

Change-Id: I4523f7636d0043d54717b38a472baa37544dff03
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1540905
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:11 -03:00
zhaoxp3 43858f10e0 arm/defconfig: add 32bit debug config
define arm and arm64 specific debug config

Change-Id: Ib56827bf9550739f236b4a52b8e0f94b213ec060
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1539598
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:11 -03:00
zhaoxp3 2bb28e781c defconfig.mk: add arch specific debug
support 32bit device
and share common debug config
Change-Id: I00e0cecefaaa0b67e25276dde60ba9fb8a533969
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1539596
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:11 -03:00
lulei1 c0db61f2e7 enable psi for guam guamp
Change-Id: I62c1f54e33e59dd60bb35411e828f8e86a9ae199
Reviewed-on: https://gerrit.mot.com/1538649
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
2023-06-01 00:47:11 -03:00
huangzq2 a1f22e95d6 Revert "defconfig: disable MEMCG for bengal 32"
This reverts commit 6b4ee95cbd.

Change-Id: I5c1c09912e34909211cb13a914cf965117c8fa6e
Reviewed-on: https://gerrit.mot.com/1536521
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:10 -03:00
yanyh2 d1bb1a5c2c Fix QC rebase issue for dual role sysfs access issue
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>
2023-06-01 00:47:10 -03:00