aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2020-07-16 09:14:49 +0200
committerJohn Crispin <john@phrozen.org>2020-07-16 09:14:49 +0200
commitea2884e018a61a1d45ed9b7cfc916be35c3198e1 (patch)
tree2bc6c3a98b09d7233c1cc5891425553adbe6f484
parent9f3415d30bda1cdeef484d6f179f70d95295c9e2 (diff)
downloadupstream-ea2884e018a61a1d45ed9b7cfc916be35c3198e1.tar.gz
upstream-ea2884e018a61a1d45ed9b7cfc916be35c3198e1.tar.bz2
upstream-ea2884e018a61a1d45ed9b7cfc916be35c3198e1.zip
mediatek: minor fix to eip97 driver
This patch makes the driver work on the newer v2.3 core. Signed-off-by: John Crispin <john@phrozen.org>
-rw-r--r--target/linux/mediatek/patches-5.4/0501-crypto-add-eip97-inside-secure-support.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/mediatek/patches-5.4/0501-crypto-add-eip97-inside-secure-support.patch b/target/linux/mediatek/patches-5.4/0501-crypto-add-eip97-inside-secure-support.patch
index 98cb0b16ff..3eda4f291a 100644
--- a/target/linux/mediatek/patches-5.4/0501-crypto-add-eip97-inside-secure-support.patch
+++ b/target/linux/mediatek/patches-5.4/0501-crypto-add-eip97-inside-secure-support.patch
@@ -5,11 +5,11 @@
writel(val, EIP197_HIA_AIC(priv) + EIP197_HIA_MST_CTRL);
}
+ /*
-+ * Set maximum number of TX commands to 2^5 = 32 for EIP97 HW2.1
++ * Set maximum number of TX commands to 2^4 = 16 for EIP97 HW2.1/HW2.3
+ */
+ else {
+ val = 0;
-+ val |= EIP97_MST_CTRL_TX_MAX_CMD(5);
++ val |= EIP97_MST_CTRL_TX_MAX_CMD(4);
+ writel(val, EIP197_HIA_AIC(priv) + EIP197_HIA_MST_CTRL);
+ }