ipq40xx: dont panic on PSGMII calibration fail main master
authorRobert Marko <robimarko@gmail.com>
Wed, 22 May 2024 14:55:51 +0000 (16:55 +0200)
committerRobert Marko <robimarko@gmail.com>
Wed, 22 May 2024 15:24:17 +0000 (17:24 +0200)
Currently, in case that PSGMII calibration fails it will panic the kernel
which is not ideal and is preventing any debugging to be done.

So, since PGMII calibration failing only means that wired networking wont
work lets convet the panic() call to dev_error.

Link: https://github.com/openwrt/openwrt/pull/15542
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/ipq40xx/patches-6.6/706-net-dsa-qca8k-add-IPQ4019-built-in-switch-support.patch

index e0331d28ab99345771d0ddf192221170182c4861..20dd345c6997a413c65d15eda64f8fccd23d73d8 100644 (file)
@@ -654,7 +654,7 @@ Signed-off-by: Robert Marko <robert.marko@sartura.hr>
 +              }
 +      }
 +
-+      panic("PSGMII work is unstable !!! "
++      dev_err(priv->dev, "PSGMII work is unstable !!! "
 +              "Repeated recalibration attempts did not help(0x%x) !\n",
 +              test_result);
 +