summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Marangi2025-12-04 23:54:38 +0000
committerChristian Marangi2026-05-14 18:21:12 +0000
commit62dc186272e3757d02e9cb43e530158b56e26cd2 (patch)
treec82afe39670c47f96c89830365f16cae8c8e7d85
parent6f66bee6ba189d014c9fb5f7834161d157037491 (diff)
downloadopenwrt-62dc186272e3757d02e9cb43e530158b56e26cd2.tar.gz
airoha: fix kernel panic from I2S driver
Commit 8f1914053b24 ("airoha: replace I2S patch with upstream pending version") introduced a kernel panic with I2S driver. Add the fixed patch to fix the kernel panic. Fixes: 8f1914053b24 ("airoha: replace I2S patch with upstream pending version") Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> (cherry picked from commit cc57e155a60891631c5040b9c4a3a2c0d1dbf38f)
-rw-r--r--target/linux/airoha/patches-6.6/123-02-ASoC-airoha-Add-AFE-and-I2S-driver-for-Airoha-AN7581.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/airoha/patches-6.6/123-02-ASoC-airoha-Add-AFE-and-I2S-driver-for-Airoha-AN7581.patch b/target/linux/airoha/patches-6.6/123-02-ASoC-airoha-Add-AFE-and-I2S-driver-for-Airoha-AN7581.patch
index c30791a500..70561f450a 100644
--- a/target/linux/airoha/patches-6.6/123-02-ASoC-airoha-Add-AFE-and-I2S-driver-for-Airoha-AN7581.patch
+++ b/target/linux/airoha/patches-6.6/123-02-ASoC-airoha-Add-AFE-and-I2S-driver-for-Airoha-AN7581.patch
@@ -482,6 +482,10 @@ Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
+ if (!afe->platform_priv)
+ return -ENOMEM;
+
++ afe_priv = afe->platform_priv;
++ afe->dev = &pdev->dev;
++ dev = afe->dev;
++
+ reset = devm_reset_control_get_exclusive(dev, NULL);
+ if (IS_ERR(reset))
+ return PTR_ERR(reset);
@@ -491,10 +495,6 @@ Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
+ usleep_range(10, 20);
+ reset_control_deassert(reset);
+
-+ afe_priv = afe->platform_priv;
-+ afe->dev = &pdev->dev;
-+ dev = afe->dev;
-+
+ afe->base_addr = devm_platform_ioremap_resource(pdev, 0);
+ if (IS_ERR(afe->base_addr))
+ return PTR_ERR(afe->base_addr);