Commit Graph

24 Commits

Author SHA1 Message Date
hongyu.chen1 a1cd3269bc Wakeup: Clean up netflix wakeup reason. [1/1]
PD#SWPL-192039

Problem:
kernel6.12 need sync code.

Solution:
add clean netflix config.

Verify:
Compiled to pass

Change-Id: I1597831658b68f2e1db91d0c61519895bc8ccbd2
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2024-11-10 23:48:30 -08:00
changpeng.jiang b5ef43f2c9 suspend_debug: kernel suspend debug [1/1]
PD#SWPL-192304

Problem:
Add suspend debug mode function.

Solution:
Add suspend debug mode function.

Verify:
s7_bh201

Change-Id: I1ff1832756df9b0efc91516e97b2b8f97b945a9f
Signed-off-by: changpeng.jiang <changpeng.jiang@amlogic.com>
2024-11-08 06:03:14 -08:00
shufei.zhao 3afb9d9fec build: fix error for smarthome build [1/1]
PD#SWPL-189048

Problem:
support smarthome build for k6.12

Solution:
fix error

Verify:
A1

Test:
A1

Change-Id: I0b3450388e458c090a944ab220329bb4f1ecea55
Signed-off-by: shufei.zhao <shufei.zhao@amlogic.com>
2024-11-08 04:05:33 -08:00
Wanwei Jiang 911eeadc02 bringup: upgrade kernel from 6.6.10 to 6.6.11 [1/1]
PD#SWPL-183292

Problem:
upgrade kernel from 6.6.10 to 6.6.11

Solution:
1. modify auto patches
2. modify the code due to the change of
the remove function in struct platform_driver
3. modify the code due to the change of
the match function in struct bus_type
4. modify some page function to folio function
5. modify spi module due to some functions changed

Verify:
local

Change-Id: I92c266b6a1bbae363abd0ff50d7f3037e90bc624
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-09-26 15:05:50 +08:00
Dezhen Wang bcfa0ee2e4 bring up: revert compatibility code for kernel 6.6 [1/1]
PD#SWPL-151245

Problem:
kernel6.6 will not distinguish different versions of kernel.
so we do not make compatibility code in 6.6.

Solution:
revert compatibility code for kernel 6.6.

Verify:
local

Test:
local

Change-Id: I24b8acac62cec05ffb2f637a86f91789f1d0b905
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2024-01-11 18:46:45 -07:00
Wanwei Jiang c73f5afdef module: disable module_param [1/1]
PD#SWPL-151470

Problem:
many of module parameters are no longer in use, but have not been deleted,
which affects memory and performance. all module parameters are now
disabled and can only be used after the application is approved.

Solution:
disabled all module parameters

Verify:
a4 a5

Test:
none

Change-Id: I27ee98a0437542d7b8a3da437c1525e0afded6b1
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-01-09 19:58:31 +08:00
Wanwei Jiang 43461aec82 kernel6.6: bring up [1/1]
PD#SWPL-145682

Problem:
bring up kernel6.6

Solution:
1. porting kernel6.6
2. compatible with different kernel versions
3. bring up kernel6.6

Verify:
sc2 c2 a4 a5

Test:
None

Change-Id: Ie22af0abc8ea96261e8a8cc7804b58565aedd904
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-12-14 16:55:55 +08:00
Jianxiong Pan 455d10eff1 zapper: disable hdmitx20 and mbox. [1/1]
PD#SWPL-126879

Problem:
s1a memory optimization.

Solution:
disable hdmitx20 and mbox.

Verify:
s1a.

Test:
s1a.

Change-Id: I317718936fdc14ec3b30faae7672fea66ac4541c
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-12-03 04:25:04 -07:00
binbin.wang ac11432483 PM: Fix incorrect code logic [1/1]
PD#SWPL-141257

Problem:
This is a problem with the judgment of the return valule
in the store interface of Suspend_reason

Solution:
Fix incorrect code logic

Verify:
SC2 pass

Change-Id: I2c618a240202c369852cb5ee4bccdf5a0f21c8ec
Signed-off-by: binbin.wang <binbin.wang@amlogic.com>
2023-11-14 20:43:12 -07:00
yiting.deng e386a75a6f pm: fix kernel5.15 pm print log [1/1]
PD#SWPL-143117

Problem:
too much pm related print in suspend/resume

Solution:
add initcall_debug judgment before suspend/resume printing

Verify:
sc2

Change-Id: Ifbca9604ae008b188da408cd8c3cc353f0d3051f
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2023-11-09 03:13:27 -07:00
xia.jin b2abef4e16 C3: reboot -f crash [1/1]
PD#SH-15409

Problem:
reboot -f crash

Solution:
reboot -f crash

Verify:
c3

Change-Id: Ia9a04b34663999f9c426591f6dfd18432ee30a5f
Signed-off-by: xia.jin <xia.jin@amlogic.com>
2023-08-25 04:13:44 -07:00
xia.jin b520eaed57 C3: reboot -f crash [1/1]
PD#SH-15409

Problem:
reboot -f crash

Solution:
reboot -f crash

Verify:
c3

Change-Id: Idf18489cef5b6caa678c909a639d1a7bbd44a242
Signed-off-by: xia.jin <xia.jin@amlogic.com>
2023-08-24 03:53:57 -07:00
Yao Jie 97f9c7a57f pm: fix pm driver build error [1/1]
PD#SWPL-123365

Problem:
pm driver build error without CONFIG_AMLOGIC_LEGACY_EARLY_SUSPEND
enabled

Solution:
change pm driver to make it build success
without CONFIG_AMLOGIC_LEGACY_EARLY_SUSPEND
enabled

Verify:
Local Build Success

Change-Id: Iba223696c420e27fd6510a747a71c3d24a50e7ba
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
2023-05-14 23:49:15 -07:00
Yao Jie eaf422fb77 reboot: sm1 and g12b reboot bringup [1/1]
PD#SWPL-104276

Problem:
sm1 and g12b reboot bringup

Solution:
change dtsi, reboot driver and defconfig
to bringup reboot

Verify:
SM1-AN400
G12B-W400-A311D

Change-Id: Idcdff0a5b1643d60a79fe9021e20e4ec02c19c2b
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
2023-04-04 19:35:44 +08:00
Yao Jie 2b31d6669b reboot: extend reboot reason index to 128 [8/8]
PD#SWPL-100550

Problem:
Need to extend reboot reason index to 128 for
some chip like SC2/S4/T3/T7, etc.

Solution:
Add another 4 bits of sticky register for reboot
reason index storage, this will extend reboot
reason to 128 (0 ~ 127)

Verify:
SC2-AH212

Change-Id: Ia756d7640dc7caf0132c66b55deb0c263e198f3d
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
2023-01-11 22:10:28 -08:00
Hanjie Lin caa8b668c5 debug: gki optimize [2/4]
PD#SWPL-99365

Problem:
gki optimize

Solution:
1, code optimize
2, watchdog_hld to ko

Verify:
sc2_ah212

Change-Id: Ibb1b16bd61d794defb39d53f17ad86179ba4a661
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2022-12-27 04:32:55 -08:00
Yao Jie cb264b788b pm: extend wakeup reason index to 128 [7/7]
PD#SWPL-102505

Problem:
The wakeup reason can stores 16 types of reasons
(0 ~ 15), now need to extend wakeup reason index
to 128 (0 ~ 127)

Solution:
Add another 4 bits of sticky register for wakeup
reason index storage, this will extend wakeup
reason index to 128 (0 ~ 127)

Verify:
S4-S905Y4

Change-Id: I642851bbbb7490ebb2ea6cda93d710ab98d8c664
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
2022-12-26 03:24:15 -08:00
binbin.wang 125182a598 Thermal: Fix the typo issue [1/1]
PD#SWPL-103804

Problem:
Typo issue

Solution:
Fix the typo issue.

Verify:
None

Change-Id: Iec839dfd01f6ef1a78590e456825feb2ff6822ff
Signed-off-by: binbin.wang <binbin.wang@amlogic.com>
2022-12-19 02:27:13 -08:00
Yao Jie 4fb89e60e0 reboot: t7c silicon reboot bringup [1/1]
PD#SWPL-94152

Problem:
t7c silicon reboot bringup

Solution:
t7c silicon reboot bringup

Verify:
T7C-AN400-A311D2

Change-Id: I0b91e582c5e68bcf10e756e0a7d018759949c6b5
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
2022-12-02 14:04:53 +08:00
Wanwei Jiang 812361a4e9 pm: combine pm and reboot modules [1/1]
PD#SWPL-95684

Problem:
combine pm and reboot modules

Solution:
result: amlogic-pm.ko
original: amlogic-pm.ko amlogic-reboot.ko

Verify:
sc2

Change-Id: I25366f4413a7e7ec84131321e9b686b337358d70
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2022-11-05 12:06:33 +08:00
hongyu.chen1 ffe9eabf1b typo: fix typo issue in pm code [1/1]
PD#SWPL-89627

Problem:
typo check issue

Solution:
fix typo issue

Verify:
Typo

Change-Id: I212de191838a4b21dc3cbe7a4bb3df499fe7394e
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2022-09-13 22:04:56 -07:00
qinglin.li 7c6316bebd printk : printk optimization [2/2]
PD#SWPL-70486

Problem:
use common tag in driver when printf

Solution:
set common pr_fmt in driver

Verify:
s4d

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: Ieee271d289e4d2f81258875d36288046b996a5d2
2022-02-14 19:55:32 -07:00
wanwei.jiang d29afa69b3 pm: porting pm driver [2/2]
PD#SWPL-68037

Problem:
modify the code to meet the checkpatch requirements

Solution:
1. pr_info -> pr_debug
2. delete pr_info in probe function

Verify:
s4d

Change-Id: I033bc71d4e0a223047d2a7317af586aacac358f4
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2021-12-20 16:50:58 +08:00
wanwei.jiang 7c6fe06dc6 pm: porting pm driver [1/2]
PD#SWPL-68037

Problem:
porting pm driver

Solution:
1. porting pm driver
2. modify device attribute to class attribute

Verify:
s4d

Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
Change-Id: If5fa4dbdca1d77ba603d9b5f8374d3f8ac55db2a
2021-12-20 16:31:52 +08:00