]> git.ipfire.org Git - thirdparty/openwrt.git/commit
ramips: improve MT7621S core detection 18015/head
authorMieczyslaw Nalewaj <namiltd@yahoo.com>
Tue, 18 Feb 2025 09:18:41 +0000 (10:18 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 25 Feb 2025 22:20:05 +0000 (23:20 +0100)
commit652fe915dee521a3d3b2aee4cd6efd8f0a3ff1f7
tree4ffcb1566e0d9831798b77d479ed76738e3d842c
parent22943245a5154ea64aed4b850181ab1297917704
ramips: improve MT7621S core detection

The proposed detection method was based on reading the LAUNCH_FREADY core flag.
However, this method only works before the cores are launched.
For this reason, the core number detection method has been changed to a simpler one.
For mt6721s the 17th revision bit is zero, hence we know that it is this chip,
so the number of cores is 1.

Fixes: https://github.com/openwrt/openwrt/issues/17764
Tested-by: Enrico Mioso <mrkiko.rs@gmail.com>
Tested-by: Simon Etzlstorfer <simon@etzi.at>
Tested-by: Mauri Sandberg <maukka@ext.kapsi.fi>
Co-authored-by: Shiji Yang <yangshiji66@qq.com>
Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/17834
(cherry picked from commit bb84c256e701a21a97443ffe9dd1d510bd6c1c40)
Link: https://github.com/openwrt/openwrt/pull/18015
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/ramips/patches-6.6/320-MIPS-add-support-for-buggy-MT7621S-core-detection.patch