projects
/
openwrt
/
staging
/
rmilecki.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
kernel: 5.10: fix busy wait loop in mediatek PPE code
[openwrt/staging/rmilecki.git]
/
target
/
linux
/
generic
/
pending-5.10
/
770-15-net-ethernet-mtk_eth_soc-add-support-for-initializin.patch
diff --git
a/target/linux/generic/pending-5.10/770-15-net-ethernet-mtk_eth_soc-add-support-for-initializin.patch
b/target/linux/generic/pending-5.10/770-15-net-ethernet-mtk_eth_soc-add-support-for-initializin.patch
index fa4803211ab2477dac6e7d8f57f312b23060633c..09282175b0cccae1202720e245b9d1465b46329f 100644
(file)
--- a/
target/linux/generic/pending-5.10/770-15-net-ethernet-mtk_eth_soc-add-support-for-initializin.patch
+++ b/
target/linux/generic/pending-5.10/770-15-net-ethernet-mtk_eth_soc-add-support-for-initializin.patch
@@
-185,7
+185,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;
+