25749 Commits

Author SHA1 Message Date
hanwckf
929cd0f9d2 mediatek: rax3000m: remove ksmbd packages 2024-01-31 11:30:25 +08:00
hanwckf
c07c4b30a6 kernel: mtd: add support for foresee spi nand 2024-01-31 10:15:34 +08:00
hanwckf
1ee9a8b732 mediatek: mtk_eth_soc: enable admav2 for mt7986 only 2024-01-26 19:15:02 +08:00
hanwckf
dabfebc9a0 mediatek: image.mk: fix fw file name 2024-01-23 23:30:38 +08:00
hanwckf
78e01d8729 mediatek: hnat: set ppe num to 1 for GMAC1 mode 2024-01-23 22:06:18 +08:00
hanwckf
31c2a045db mediatek: hnat: set default ppe num to 2 2024-01-19 12:50:49 +08:00
hanwckf
f518559c0f mediatek: hnat: fix wifi->ext hnat support 2024-01-19 12:50:49 +08:00
hanwckf
fcbff49bcc mediatek: mtk_eth_soc: change mt798x adma from v2 to v1 2024-01-19 12:50:49 +08:00
hanwckf
f7aecec1da mediatek: hnat: fix match ext dev by prefix 2024-01-18 22:13:44 +08:00
hanwckf
02e53453a3 Revert "[Description]"
This reverts commit cb8d930879726d51161e612d48b5c3dba7aa494a.
2024-01-18 22:13:44 +08:00
developer
f137a9ece7 [Description]
Fix BIND entry with DP=0 issue for Wifi Tx

Without this patch, the PPE entry state could be set to BIND
unexpectedly, adds a check to confirm if the copied entry
state is UNBIND.

[Release-log]
N/A

Change-Id: I49825572617eb804cda18e8f054b9106f26926bb
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/8498669
2024-01-17 10:56:10 +08:00
hanwckf
c430f7b29d Revert "[Description]"
This reverts commit efef901d06e9193fc283cc601aee26c8ca59d640.
2024-01-16 23:28:00 +08:00
developer
efef901d06 [Description]
Change qdma dmad from sram to dram

[Release-log]
-dmad in sram and payload in dram may probabilistic cause control
 path is incoherent with payload path
-causing the actual packet sent is not the one
 you really want

Change-Id: Ieeca5093f3cb24e07d659c8bec10fbaa0bbb336a
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7912387
2024-01-16 21:34:35 +08:00
developer
19f2e53562 [Description]
Fix panic issue for mtk_pending_work.

If without this patch, mtk_pending_work might cause kernel panic
in the one gmac system.

[Release-log]
N/A

Change-Id: I9d2940645d738bac8888a7410c5ad5586a08c115
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/6814894
2024-01-16 21:29:08 +08:00
developer
daba7b9a2d [Description]
Fix GMAC data corruption issue.

If without this patch, kernel might receive invalid packets that are corrupted by GMAC.

[Release-log]
N/A

Change-Id: I8a9f00402e4b8d9181a8c4c518665a16619cdc0a
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/6398721
2024-01-16 21:24:34 +08:00
developer
f81f1d5ffc [Description]
Remove QDMA global configuration for PKT_RX_WDONE
-- customer corner test case may occur qmda rx hang
-- DE confirm this item may cause qdma rx hang, it is hw bug

[Release-log]

Change-Id: I104ffbcdf140f8f7bf66d20b3f2ad349d733158f
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/6270079
2024-01-16 21:23:58 +08:00
developer
2a758ab185 [Description]
Change code for memory free which may cause memory leak
-- memory leak occurs when user use DRAM for DMAD
   -- SRAM ==1, no need free ring->dma
   -- SRAM ==0, DMAD memory should be freed in mtk_rx_clean

[Release-log]
N/A

Change-Id: I599d3e38c66d67c0e9bfd7afc3e8f773258f97db
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/6182630
2024-01-16 21:22:09 +08:00
developer
9c0d04cab0 [Description]
Change ADMA RX HANG condition
-- ADMA RX HANG condition
   - PSE p0 output queue is not zero
   - CDM1 FSM indication CDM is from PSE to ADMA status
   - ADMA DBG MONITOR show CURR_STAT is zero
   - CDM_FIFO_RDY is zero
   - remove check RX_FIFO_WCNT is zero because sometimes it is not zero

[Release-log]
N/A

Change-Id: I666d3df5eddc128f6f2fc4df44b9c76aa8b64254
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/6182238
2024-01-16 21:21:50 +08:00
developer
cb8d930879 [Description]
Add configurations to enable WDMA Rx ring full drop for
solving Panther AX7800/AX8400 5G(MT7915) WA CPU bound issue.

If without this patch, system might run into WiFi Tx/Rx
deadlock issue or WiFi Tx small packet low throughput issue.

[Release-log]
N/A

Change-Id: I57cd4a8e3ae19bdcb34d7d042989b7c1327ea08e
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/6193220
2024-01-16 21:21:22 +08:00
developer
5ead770db2 [Description]
Fix the issue of mistakenly deleting entries in foe_clear_entry.
When packets are forwarded in the 6RD scenario,
HNAT entry is mistakenly deleted.

This patch fix it.

[Release-log]
N/A

Change-Id: I7ece4115f07eaca354d2c0301d6cafb2ba6e539c
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7531312
2024-01-16 21:18:02 +08:00
developer
f189c50ef1 [Description]
Fix QDMA TX queue page error issue.

If the TX queue page is changed before hnat_qos_shaper_ebl function,
it may cause the function to set queue config on wrong TX queue page.

In order to avoid this situation, we will check queue ID to
switch to correct TX queue page.

If without this patch, QDMA TX queue config will be wrong
when the numbers of TX queue is greater than 16.

[Release-log]
N/A

Change-Id: I42b013982885830355b4108d6bc49f2feac1ef08
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/8203881
2024-01-16 21:16:26 +08:00
Aes64X
02df69b2d5
修复时区问题 (#226)
某些docker容器会因缺少时区组件导致无法启动
例如:Home Assistant
2024-01-14 20:44:28 +08:00
hanwckf
35722caede mediatek: tune smp settings 2024-01-14 20:32:23 +08:00
hanwckf
302556c1ac mediatek: rax3000m: add usb/wwan nic to hnat ext devices 2024-01-14 10:54:44 +08:00
hanwckf
fb1028fa8c mediatek: hnat: add ext-devices-prefix prop to match ext devices 2024-01-14 10:54:44 +08:00
hanwckf
42fbe2ced3 mediatek: add usb/wwan ext devices rps settings 2024-01-14 10:54:44 +08:00
hanwckf
6e8fc28275 mediatek: hnat: add hnat support for ext devices 2024-01-14 10:54:44 +08:00
hanwckf
6ceb43f640 mediatek: remove useless mtk-lro setting 2024-01-14 10:54:44 +08:00
hanwckf
b0c2ac27a3 mediatek: add mtk-smp package to exec smp.sh
mtk-smp: add usb smp settings
2024-01-13 13:53:22 +08:00
hanwckf
8ff4cfb0e5 kernel: mtd: add support for xmc xm25qh128c 2024-01-12 18:32:28 +08:00
hanwckf
bf70fb42de Merge branch 'openwrt-21.02' of https://github.com/immortalwrt/immortalwrt into openwrt-21.02 2024-01-10 01:29:58 +08:00
Tianling Shen
fc9fe90e5a
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-01-03 14:52:53 +08:00
hanwckf
363788550f mediatek: hnat: add hnat statistics 2023-12-31 22:44:42 +08:00
hanwckf
be2b71c18c luci-app-turboacc-mtk: add ppe_num setting 2023-12-31 11:17:37 +08:00
hanwckf
e0fa787d3e mediatek: hnat: remove "mtketh-ppe-num" prop 2023-12-31 11:16:38 +08:00
hanwckf
55789251dc mediatek: hnat: auto set hnat alg for pptp/l2tp/gre tunnel 2023-12-27 20:45:53 +08:00
hanwckf
0e595386ae mediatek: hnat: add ppe_cnt module param 2023-12-23 12:06:06 +08:00
padavanonly
d310f779b3 Mediatek:add ipv6 speed limit support for eqos-mtk 2023-12-15 01:15:24 +08:00
padavanonly
b7ac35dbc6 Mediatek:hnat add support for macvlan wan dev 2023-12-15 01:15:24 +08:00
padavanonly
1c7a824799 Mediatek:adjust bind rate when using hqos 2023-12-15 01:15:24 +08:00
padavanonly
e257e518d9 Mediatek:gmac2 use queue 32 2023-12-15 01:15:24 +08:00
padavanonly
781e1a0b4f Mediatek: Hqos support using dscp tag 2023-12-15 01:15:24 +08:00
padavanonly
6327b205f1 Mediatek:enable ppe update nf stat by default 2023-12-15 01:15:24 +08:00
padavanonly
15bdc19d95 mediatek:eqos support mtk hqos 2023-12-15 01:15:24 +08:00
padavanonly
7fbc4d0d0b add luci-eqos-mtk(fork from tianling's version) 2023-12-15 01:15:07 +08:00
padavanonly
9a719b3eb7 Mediatek:add support for disable second ppe fwd 2023-12-15 01:15:07 +08:00
padavanonly
c5668fe082 Mediatek:add dual ppe support for mt798x 512RAM devices 2023-12-15 01:15:07 +08:00
coolsnowwolf
a760d1b0cd
mediatek: fix gl mt6000 usb3 power regulator (#188) 2023-12-10 10:35:00 +08:00
developer
e66d976488 [Description]
Fix refcount underflow issue in the pending_work.

If one of the Ethernet interface is down, the pending_work should not
call to mtk_stop() function again to avoid a refcount underflow.

Without this patch, the ETH may experience the kernel panic which
caused by a refcount underflow.

[Release-log]
N/A

Change-Id: I4e1f40640c09372cddad57994da03f70107f133a
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/8324564
2023-12-08 19:31:17 +08:00
hanwckf
ebf353ff63 Merge branch 'openwrt-21.02' of https://github.com/immortalwrt/immortalwrt into openwrt-21.02 2023-12-05 23:14:26 +08:00
potatoigit
72034420c2
mediatek: add BPI-R3MINI-NAND 110M Layout (#185) 2023-12-05 23:06:06 +08:00
Tianling Shen
cbfb74a070
mediatek: add JDCloud RE-CP-03 support (#183)
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-12-05 17:31:06 +08:00
hanwckf
b298e36452 update defconfig 2023-11-23 19:48:01 +08:00
padavanonly
b4316271e8
Mediatek:Fix GL.inet mt2500 hnat port setting (#172) 2023-11-23 18:19:51 +08:00
hanwckf
ea37177e3a mediatek: platform.sh: remove unused mtk_mmc_do_upgrade 2023-11-21 22:25:31 +08:00
padavanonly
850894a6e6 mediatek:correct nums of lan ports 2023-11-21 22:20:20 +08:00
padavanonly
7edbdbbf68 mediatek:add suport for gl-mt6000 and tp-xdr608x 2023-11-21 22:20:20 +08:00
padavanonly
bcd46e3b1d mediatek:add support for rtl8221x 2023-11-21 22:20:20 +08:00
potatoigit
a5c5eef119
mediatek: fix emmc sysupgrade on MT7986 (#169) 2023-11-20 14:48:14 +08:00
padavanonly
1e3e270dca
mediatek:fix netcore n60 lan (#166) 2023-11-20 14:48:06 +08:00
hanwckf
4a1f0eb31b mediatek: fix asr3000 lan order
fix #159
2023-11-16 21:41:12 +08:00
padavanonly
65fb5f0767
mediatek: add support for Netcore N60 (#165)
* add netcore n60 support

* revert to old wifi firmware

---------

Co-authored-by: padavanonly <padavanonly@github.com>
2023-11-16 21:33:32 +08:00
secd4ck
d63a69e0d2
fixed mt7981 platform.sh introduced Tabs by Aabandon (#163) 2023-11-16 18:52:35 +08:00
Aabandon
194443120a
mediatek: add support for Xiaomi AX3000T (#160) 2023-11-15 20:38:11 +08:00
abettmr
ea63ce92bc
asr3000: fix mesh-led gpio 2023-11-15 15:07:20 +08:00
potatoigit
e1b4487fbc
mediatek: fix BPI-R3 EMMC support (#157) 2023-11-11 22:32:43 +08:00
Zy143L
1814465e22
add C8-660(WT9103) 512M Flash && fixs DTS (#155)
* add nradio wt9103 support

* add C8-660(WT9103) 512M Flash && fixs DTS
2023-11-11 21:25:03 +08:00
potatoigit
c915c12f5c mediatek: BPI-R3 EMMC support 2023-11-11 21:24:29 +08:00
potatoigit
38c8c837fc mediatek: initial Banana Pi R3 Mini support 2023-11-11 21:24:29 +08:00
Rafał Miłecki
4a1d8ef55c bcm53xx: refresh kernel config
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2023-11-06 13:29:45 +01:00
benboguan
358c1fa651
mediatek: fix clt-r30b1 (#148) 2023-10-31 11:28:39 +08:00
Rafał Miłecki
c31872bad8 bcm53xx: backport 1 more late DT patch accepted for v6.7
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit 732ae343ffb3ad19978b75a8105d55f5e6d1d435)
2023-10-26 13:43:33 +02:00
Rafał Miłecki
754dfab01c bcm53xx: disable unused switch ports in downstream patch
This makes Linux use correct switch ports again.

Fixes: fff279f4a712 ("bcm53xx: backport DT changes from v6.5")
Fixes: https://github.com/openwrt/openwrt/issues/13548
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit a912ee74d6ca08020933dcdb9ce791e74244c25b)
2023-10-26 13:43:33 +02:00
Rafał Miłecki
74212e7be3 bcm53xx: backport DT changes queued for v6.7
Among other changes this commit makes Linux use correct switch ports
again.

Fixes: fff279f4a712 ("bcm53xx: backport DT changes from v6.5")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit a67af19bc84e98588c307af9b08686bde9dd38d5)
2023-10-26 13:43:33 +02:00
Rafał Miłecki
ded99ab483 bcm53xx: simplify patch adding switch ports
We now have all raw ports defined in bcm-ns.dtsi. Leave only lables in
custom device files.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit 08ce0c76d7d7daad5e9382d51960d69f4b8b8f3a)
2023-10-26 13:43:33 +02:00
Rani Hod
c5cb4287b8 bcm53xx: build a single device per profile
So far every build of a single bcm53xx Target Profile (it means: when
NOT using CONFIG_TARGET_MULTI_PROFILE) resulted in all target devices
images being built. Now it only builds the one matching selected
profile.

Fixes: #13572

Suggested-by: Jonas Gorski <jonas.gorski@gmail.com>
Signed-off-by: Rani Hod <rani.hod@gmail.com>
[rmilecki: update commit subject + body & move PROFILES line]
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit 802a5f5cb4a7b42d25e82b787d7ab1323a20183f)
2023-10-26 13:43:33 +02:00
Arınç ÜNAL
66c2715a56 bcm53xx: add support for ASUS RT-AC3100
ASUS RT-AC3100 is ASUS RT-AC88U without the external switch.

OpenWrt forum users effortless and ktmakwana have confirmed that there are
revisions with either 4366b1 or 4366c0 wireless chips.

Therefore, include firmware for 4366b1 along with 4366c0. This way, all
hardware revisions of the router will be supported by having brcmfmac use
the firmware file for the wireless chip it detects.

Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
(cherry picked from commit 2214bab3503981fe6168746acd13044a9d5e89e7)
2023-10-26 13:43:33 +02:00
Arınç ÜNAL
b3baba3854 bcm53xx: backport DT changes for ASUS RT-AC3100 queued for v6.6
Backport the patch that adds the DT for ASUS RT-AC3100.

Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
(cherry picked from commit b7ee8c9f83ea0e3b861e6b71b08ed7a62066d149)
2023-10-26 13:07:30 +02:00
hanwckf
e6ea2ba32a mediatek: dts: fix typo 2023-10-26 11:21:06 +08:00
hanwckf
08c62ad2d0 mediatek: fix ct3003, jcg q30 hnat settings 2023-10-26 00:20:43 +08:00
Zy143L
33f15e3224 add nradio wt9103 support 2023-10-25 14:55:22 +08:00
Jan-Niklas Burfeind
90c8c47188
sunxi: ensure NanoPi R1 has unique MAC address
Ensure the MAC address for all NanoPi R1 boards is assigned uniquely for
each board.

The vendor ships the device in two variants; one with and one without
eMMC; but both without static mac-addresses.
In order to assign both board types unique MAC addresses, fall back on
the same method used for the NanoPi R2S and R4S in case the EEPROM
chip is not present by generating the board MAC from the SD card CID.

[0] https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R1#Hardware_Spec

Similar too and based on:

commit b5675f500daf ("rockchip: ensure NanoPi R4S has unique MAC address")

Co-authored-by: David Bauer <mail@david-bauer.net>
Signed-off-by: Jan-Niklas Burfeind <git@aiyionpri.me>
2023-10-22 12:44:55 +08:00
Tianling Shen
6f822de5e2 mediatek: initial cmcc a10 support
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-10-22 01:24:20 +08:00
Koen Vandeputte
18f12e6f69 ipq40xx: switch to performance governor by default
Doing a simple ping to my device shows this:

64 bytes from 10.0.253.101: icmp_seq=1 ttl=64 time=2.00 ms
64 bytes from 10.0.253.101: icmp_seq=2 ttl=64 time=2.02 ms
64 bytes from 10.0.253.101: icmp_seq=3 ttl=64 time=1.68 ms
64 bytes from 10.0.253.101: icmp_seq=4 ttl=64 time=1.91 ms
64 bytes from 10.0.253.101: icmp_seq=5 ttl=64 time=1.92 ms
64 bytes from 10.0.253.101: icmp_seq=6 ttl=64 time=2.04 ms

Some users even report higher values on older kernels:

64 bytes from 192.168.1.10: seq=0 ttl=64 time=0.612 ms
64 bytes from 192.168.1.10: seq=1 ttl=64 time=2.852 ms
64 bytes from 192.168.1.10: seq=2 ttl=64 time=2.719 ms
64 bytes from 192.168.1.10: seq=3 ttl=64 time=2.741 ms
64 bytes from 192.168.1.10: seq=4 ttl=64 time=2.808 ms

The problem is that the governor is set to Ondemand, which causes
the CPU to clock all the way down to 48MHz in some cases.

Switching to performance governor:

64 bytes from 10.0.253.101: icmp_seq=1 ttl=64 time=0.528 ms
64 bytes from 10.0.253.101: icmp_seq=2 ttl=64 time=0.561 ms
64 bytes from 10.0.253.101: icmp_seq=3 ttl=64 time=0.633 ms
64 bytes from 10.0.253.101: icmp_seq=4 ttl=64 time=0.526 ms

In theory, using the Performance governor should increase power draw,
but it looks like it really does not matter for this soc.

Using a calibrated precision DC power supply (cpu idle):

Ondemand
24.00V * 0.134A = 3.216 Watts
48.00V * 0.096A = 4.608 Watts

Performance
24.00V * 0.135A = 3.240 Watts
48.00V * 0.096A = 4.608 Watts

Let's simply switch to the Performance governor by default
to fix the general jittery behaviour on devices using this soc.

Tested on: MikroTik wAP ac

Fixes: #13649
Reviewed-by: Robert Marko <robimarko@gmail.com>
Reviewed-by: Thibaut VARÈNE <hacks@slashdirt.org>
Signed-off-by: Koen Vandeputte <koen.vandeputte@citymesh.com>
(cherry picked from commit b8e52852bd62236a2a84663b4592d221ebc64cb4)
2023-10-20 15:24:48 +02:00
Tianling Shen
8d8f0f3ec6 mediatek: update device title for cmcc rax3000m
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-10-19 17:43:37 +08:00
Tianling Shen
0713c653e7 mediatek: add ABT ASR3000 support
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-10-19 17:43:37 +08:00
Tianling Shen
508bcfdfc5 mediatek: fix target features for mt798x
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-10-16 15:00:51 +08:00
Tianling Shen
f78d2e13cf mediatek: initial cmcc rax3000m emmc support
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-10-16 15:00:51 +08:00
Tianling Shen
586d18ac5b mediatek: create shared dtsi for cmcc rax3000m
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-10-16 15:00:51 +08:00
Koen Vandeputte
42374bcee6 ath79: wpj563: enable 2nd USB controller
The compex WPJ563 actually has both usb controllers wired:

usb0 --> pci-e slot
usb1 --> pin header

As the board exposes it for generic use, enable this controller too.

fixes: #13650
Signed-off-by: Koen Vandeputte <koen.vandeputte@citymesh.com>
(cherry picked from commit 9188c77cbee55a933d0fa75c74e175fbc52c556d)
2023-10-13 18:02:25 +02:00
hanwckf
bacf9165dc
mediatek: hnat: set ipv6 local out skb with hnat_alg mark
fix #9
2023-10-06 09:17:17 +08:00
hanwckf
dd4312da3b Merge branch 'openwrt-21.02' of https://github.com/immortalwrt/immortalwrt into openwrt-21.02 2023-09-29 01:04:42 +08:00
Tianling Shen
0bd0306b05
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-09-28 11:02:31 +08:00
Enrico Mioso
7c89acbebf
base-files: add eMMC sysupgrade support
Adds generic support for sysupgrading on eMMC-based devices.

Provide function emmc_do_upgrade and emmc_copy_config to be used in
/lib/upgrade/platform.sh instead of redundantly implementing the same
logic over and over again.
Similar to generic sysupgrade on NAND, use environment variables
CI_KERNPART, CI_ROOTPART and newly introduce CI_DATAPART to indicate
GPT partition names to be used. On devices with more than one MMC
block device, CI_ROOTDEV can be used to specify the MMC device for
partition name lookups.

Also allow to select block devices directly using EMMC_KERN_DEV,
EMMC_ROOT_DEV and EMMC_DATA_DEV, as using GPT partition names is not
always an option (e.g. when forced to use MBR).

To easily handle writing kernel and rootfs make use of sysupgrade.tar
format convention which is also already used for generic NAND support.

Signed-off-by: Enrico Mioso <mrkiko.rs@gmail.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
CC: Li Zhang <li.zhang@gl-inet.com>
CC: TruongSinh Tran-Nguyen <i@truongsinh.pro>
(cherry picked from commit 57c1f3f9c5c699cc215bebde772552787c632570)
2023-09-26 15:36:54 +08:00
hanwckf
101adeccce mediatek: rax3000m: add usb-rndis packages 2023-09-25 22:35:22 +08:00
lgs2007m
ebd1ad3d16
mediatek: fix the incorrect network port sequence of CMCC RAX3000M (#123) 2023-09-22 18:00:36 +08:00
ssm1588
bc37b40aaf
mediatek: fix the incorrect network port sequence of the redmi AX6000 (#121) 2023-09-22 01:09:53 +08:00
Jonas Gorski
ac52e2013a x86: geode: fix hwrng register accesses
When the membase and pci_dev pointer were moved to a new struct in priv,
the actual membase users were left untouched, and they started reading
out arbitrary memory behind the struct instead of registers. This
unfortunately turned the RNG into a constant number generator, depending
on the content of what was at that offset.

To fix this, update geode_rng_data_{read,present}() to also get the
membase via amd_geode_priv, and properly read from the right addresses
again.

Closes #13417.

Reported-by: Timur I. Davletshin <timur.davletshin@gmail.com>
Tested-by: Timur I. Davletshin <timur.davletshin@gmail.com>
Suggested-by: Jo-Philipp Wich <jo@mein.io>
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
(cherry picked from commit 09d13cd8d87cc50fde67bbe81c6cca4b799b2724)
2023-09-14 11:36:57 +02:00
developer
e01037de5b [Description]
Add spinlock mechanism for mtk_rmw api.
1. When multiple threads operate on the same register resource
which include multiple pins, it will make the register resource
wrong to control. So we add spinlock to avoid this case.

[Release-log]
This patch adds spinlock mechanism to protect mtk_rmw. Without it,
you may suffer from some unexpected problems such as race conidtion
while interrupt occured. And this will lead to pin setting fail.
Hence, we strongly recommand you to merge this patch in your code
base.

Change-Id: I1128dc16cb683b89c2cd9f9138f32552abb00400
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7962757
2023-09-10 00:00:54 +08:00
developer
b4298172e7 [Description]
Change original pinctrl fix-up commit:
https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7007454

Convert patches-5.4 to file-5.4 format to prevent RDKB issue.

[Release-log]
N/A

Change-Id: Id534ae5244c7c52d2c50e468f8208ee1991421c0
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7021354
2023-09-09 23:50:05 +08:00