From: John Crispin Date: Thu, 16 Jul 2020 07:14:49 +0000 (+0200) Subject: mediatek: minor fix to eip97 driver X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=ea2884e018a61a1d45ed9b7cfc916be35c3198e1;p=openwrt%2Fstaging%2Fynezz.git mediatek: minor fix to eip97 driver This patch makes the driver work on the newer v2.3 core. Signed-off-by: John Crispin --- 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); + }