[openwrt/openwrt] mediatek: minor fix to eip97 driver

LEDE Commits lede-commits at lists.infradead.org
Thu Jul 16 03:18:52 EDT 2020


blogic pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/ea2884e018a61a1d45ed9b7cfc916be35c3198e1

commit ea2884e018a61a1d45ed9b7cfc916be35c3198e1
Author: John Crispin <john at phrozen.org>
AuthorDate: Thu Jul 16 09:14:49 2020 +0200

    mediatek: minor fix to eip97 driver
    
    This patch makes the driver work on the newer v2.3 core.
    
    Signed-off-by: John Crispin <john at phrozen.org>
---
 .../patches-5.4/0501-crypto-add-eip97-inside-secure-support.patch     | 4 ++--
 1 file 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);
 +	}
  



More information about the lede-commits mailing list