[SRU][F/J:linux-bluefield][PATCH v1 1/2] UBUNTU: SAUCE: mlxbf-gige: Fix kernel panic after reboot

Asmaa Mnebhi asmaa at nvidia.com
Tue Aug 8 14:00:24 UTC 2023


BugLink: https://bugs.launchpad.net/bugs/2030765

This reverts commit ece26b7a07b173f44e8397bda3219c38455bf3f4.

Signed-off-by: Asmaa Mnebhi <asmaa at nvidia.com>
---
 drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_main.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_main.c b/drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_main.c
index 7de778bd2e2e..7291ca6627f1 100644
--- a/drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_main.c
+++ b/drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_main.c
@@ -485,7 +485,10 @@ static int mlxbf_gige_remove(struct platform_device *pdev)
 
 static void mlxbf_gige_shutdown(struct platform_device *pdev)
 {
-	mlxbf_gige_remove(pdev);
+	struct mlxbf_gige *priv = platform_get_drvdata(pdev);
+
+	writeq(0, priv->base + MLXBF_GIGE_INT_EN);
+	mlxbf_gige_clean_port(priv);
 }
 
 static const struct acpi_device_id __maybe_unused mlxbf_gige_acpi_match[] = {
-- 
2.30.1




More information about the kernel-team mailing list