projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
kernel: fix busy wait loop in mediatek PPE code
[openwrt/openwrt.git]
/
target
/
linux
/
generic
/
pending-5.4
/
770-15-net-ethernet-mediatek-mtk_eth_soc-add-support-for-in.patch
diff --git
a/target/linux/generic/pending-5.4/770-15-net-ethernet-mediatek-mtk_eth_soc-add-support-for-in.patch
b/target/linux/generic/pending-5.4/770-15-net-ethernet-mediatek-mtk_eth_soc-add-support-for-in.patch
index d679e30bea657e5c4100d49fcfb0d0e120c19af7..2614502f5ac418302d9c2f72ce7a7edc733329d7 100644
(file)
--- a/
target/linux/generic/pending-5.4/770-15-net-ethernet-mediatek-mtk_eth_soc-add-support-for-in.patch
+++ b/
target/linux/generic/pending-5.4/770-15-net-ethernet-mediatek-mtk_eth_soc-add-support-for-in.patch
@@
-183,7
+183,7
@@
Signed-off-by: Felix Fietkau <nbd@nbd.name>
+{
+ unsigned long timeout = jiffies + HZ;
+
-+ while (time_is_
before
_jiffies(timeout)) {
++ while (time_is_
after
_jiffies(timeout)) {
+ if (!(ppe_r32(ppe, MTK_PPE_GLO_CFG) & MTK_PPE_GLO_CFG_BUSY))
+ return 0;
+