mediatek: minor fix to eip97 driver
authorJohn Crispin <john@phrozen.org>
Thu, 16 Jul 2020 07:14:49 +0000 (09:14 +0200)
committerJohn Crispin <john@phrozen.org>
Thu, 16 Jul 2020 07:14:49 +0000 (09:14 +0200)
This patch makes the driver work on the newer v2.3 core.

Signed-off-by: John Crispin <john@phrozen.org>
target/linux/mediatek/patches-5.4/0501-crypto-add-eip97-inside-secure-support.patch

index 98cb0b16ff89698854e9b5fa34ceb087be6e082f..3eda4f291aa4cd1c766120426d06b97ea7fb5c24 100644 (file)
@@ -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);
 +      }