Thread (36 messages) 36 messages, 4 authors, 2021-02-12

Re: [EXT] Re: [PATCH v13 net-next 05/15] net: mvpp2: add PPv23 version definition

From: Marcin Wojtas <hidden>
Date: 2021-02-11 19:27:38
Also in: linux-devicetree, lkml, netdev

czw., 11 lut 2021 o 12:49 Stefan Chulski [off-list ref] napisał(a):
quoted
----------------------------------------------------------------------
On Thu, Feb 11, 2021 at 12:48:52PM +0200, stefanc@marvell.com wrote:
quoted
From: Stefan Chulski <redacted>

This patch add PPv23 version definition.
PPv23 is new packet processor in CP115.
Everything that supported by PPv22, also supported by PPv23.
No functional changes in this stage.

Signed-off-by: Stefan Chulski <redacted>
Acked-by: Marcin Wojtas <redacted>
Reviewed-by: Russell King <redacted>
quoted
@@ -7049,6 +7049,11 @@ static int mvpp2_probe(struct platform_device
*pdev)
quoted
                    priv->port_map |= BIT(i);
    }

+   if (priv->hw_version != MVPP21) {
+           if (mvpp2_read(priv, MVPP2_VER_ID_REG) ==
MVPP2_VER_PP23)
quoted
+                   priv->hw_version = MVPP23;
+   }
+
The only minor comment I have on this is... the formatting of the above.
Wouldn't:

      if (priv->hw_version >= MVPP22 &&
          mvpp2_read(priv, MVPP2_VER_ID_REG) == MVPP2_VER_PP23)
              priv->hw_version = MVPP23;

read better?

Do we need to even check priv->hw_version here? Isn't this register
implemented in PPv2.1 where it contains the value zero?
Yes, we can just:
        if (mvpp2_read(priv, MVPP2_VER_ID_REG) == MVPP2_VER_PP23)
                priv->hw_version = MVPP23;
I checked the A375 specs and cannot see this particular register. Can
you please double check whether this register is in the old version of
the IP and the Functional Spec is incomplete?

Thanks,
Marcin

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help