commit | 767ce42f8f9ebe5e37d5179121f23482606919b2 | [log] [tgz] |
---|---|---|
author | developer <developer@mediatek.com> | Thu Jul 25 21:50:05 2024 +0800 |
committer | developer <developer@mediatek.com> | Fri Jul 26 10:18:54 2024 +0800 |
tree | 654c627cb3a2d2ca216984a22d19ae80cc32d856 | |
parent | f2fbad60d1344c173a925777e5bc34ff79bdb45c [diff] |
[][kernel][common][eth][Refactor phylink pcs_enable and pcs_disable methods] [Description] Refactor phylink pcs_enable and pcs_disable methods. In the scenario where 'pcs' is not present, the temporary memory 'pcs' might remain uninitialized. However, if pl->pcs is not a NULL pointer, it will cause the CPU to unexpectedly execute pcs_enable, leading to the kernel dereferencing a non-NULL pointer. Without this patch, the kernel might encounter a panic issue when calling the pcs_enable function. [Release-log] N/A Change-Id: I454c1e5cf15ce5ac00f08c73abfae4f1d9e47f47 Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/9406030
Currently two release branches are supported:
21.02 This is the current in-use branch
git clone -b openwrt-21.02 https://git.openwrt.org/openwrt/openwrt.git
master (will be 24.0x branch later) The next version in development
git clone https://git.openwrt.org/openwrt/openwrt.git
cd openwrt echo "src-git mtk_openwrt_feed https://git01.mediatek.com/openwrt/feeds/mtk-openwrt-feeds" >> feeds.conf.default ./scripts/feeds update -a ./scripts/feeds install -a
21.02 branch
cp -af ./feeds/mtk_openwrt_feed/21.02/files/* . cp -af ./feeds/mtk_openwrt_feed/tools . for file in $(find ./feeds/mtk_openwrt_feed/21.02/patches-base -name "*.patch" | sort); do patch -f -p1 -i ${file}; done for file in $(find ./feeds/mtk_openwrt_feed/21.02/patches-feeds -name "*.patch" | sort); do patch -f -p1 -i ${file}; done
master branch
cp -af ./feeds/mtk_openwrt_feed/master/files/* . for file in $(find ./feeds/mtk_openwrt_feed/master/patches-base -name "*.patch" | sort); do patch -f -p1 -i ${file}; done
make menuconfig
21.02 branch
Target System -> MediaTek Ralink ARM Subtarget -> MT7981 / MT7986 / MT7988 Target Profile -> select as needed
master branch
Target System -> MediaTek Ralink ARM Subtarget -> Filogic 8x0 (MT798x) Target Profile -> select as needed
make V=s -j$(nproc)