Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2408531pxb; Thu, 11 Feb 2021 11:31:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJxxfRA0TSbrPNgLloDM14jIwIJNhwLkXiwJUqIwkj21TxMGodhMJM2A25ifF5PIb3kgMGtJ X-Received: by 2002:a17:906:9a06:: with SMTP id ai6mr9935529ejc.463.1613071903709; Thu, 11 Feb 2021 11:31:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613071903; cv=none; d=google.com; s=arc-20160816; b=0mBNtdlWB7PHogthIG4EmVxXMXaIRX9MpB/OuGqsU+okxKNkqLgHB9ffQK2QDTESP2 k4WziZnjIq5O6izwJEQNP7M6bQu4FezJPV2yHTR+xqDp4zsafSaaH6F0/zMe7OIf0SqK cmHCeEQ7UuRHGlm1DIKW7EqN+qugHeVeIcHFRCVNqu/XqV6A7TbrEhg74k4HTBkM1WLb s1Cx97R4ZTR5t58O5rTzxxwHXKdmuxT4geqi6Ux+7yAtsmCk1D040BzbOr7xPtFhhj+Z ZiI64ehDFid3q0GsVl/IO6fq20jHr47jUfMFiWDTXx2jiGNGgQSoeXkfDq+j1QibmVjf N/2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=SPfnsSxHjOU0EO90H+0z4pIXdOqXdbqu3ojr4t/JMSA=; b=JJsYzu8x6D8qmICYwuh/P0SpgbrS9Vti/DbDDoW1GvB4/dR84GwQimIYW2GZ1uNbh3 7EPbfAAo0e8gUvoB86Kp4/UwNbHVIpXqWtA/X7wx0oytTaYJ+g9K1rGe97Udk7G75bsq SpKJ1T9FsAQJMGyRFAMhxrN/sW2FU8/HuSA0bgsZas+i4pzSoDoqEfR+peJf7VWEWPhL kUtZ6JbkTIdIbgRLL9/cNT909Y/dpjFxDTVqgrOIV/ZxhWl90uMyYFke980aHKpRH4KX cSJbMxWNplGaQoRMzY62ltZa8BTpNLoSw59F1zMpw/TkYh5EFsNW19GMz3BuvcAEdqU/ 424A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=KJXpTn4F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f7si4556525eja.553.2021.02.11.11.31.08; Thu, 11 Feb 2021 11:31:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=KJXpTn4F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230185AbhBKT1I (ORCPT + 99 others); Thu, 11 Feb 2021 14:27:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229928AbhBKT1E (ORCPT ); Thu, 11 Feb 2021 14:27:04 -0500 Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43A04C0613D6 for ; Thu, 11 Feb 2021 11:26:24 -0800 (PST) Received: by mail-qt1-x831.google.com with SMTP id e11so5002262qtg.6 for ; Thu, 11 Feb 2021 11:26:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=SPfnsSxHjOU0EO90H+0z4pIXdOqXdbqu3ojr4t/JMSA=; b=KJXpTn4FoVCntABO/wHHn91KO2J+Q+z3ozOL0wPxCTOjdE3VwScClNNzKmgw9b1O9K SsKKc4aBwTmqZLu1Z0dtK1uLD2pUi4vpQP7RLAl6yOTn5IzB9u0vlnzySrLNd/9yYHLR RM0PjSKru9EVccJRkScy6P7b0LV2YqV0qZxIGHf31cZ7CkdpU/aq6+VC4Z97kHMkq43s Gs6lvKKqdTofYDWogH66RAcLlQ1JmAsuMcnF49XkAmJd21Gf5Bd6Lmx9sd0Z3ihstj8F X/l8J91WVLv7vNhA/TO+iWkqahCakyNOxhYuGbTYUClGFoAoilFB4pDZ25PdfEld9P3j lvAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=SPfnsSxHjOU0EO90H+0z4pIXdOqXdbqu3ojr4t/JMSA=; b=sei5EvkUeuSYodYb4RZR6fs//jqvaO3B6Dnl5Bf9OsaQx3lkuw4qowWP3qBX5F2Yp5 5QKg435IxNh9ZbpG7v15HF1P/GeVkblv1vv3fu2cmrydjohgjxKBRr/1q3ofLY7QtxZv QtdU/SPzZRXl0i0IkPkMiYOf1kxbyptHxWUc4OWZd7nlOiPdV6gdM7DzLH6q5qJmuSz+ RkSHmdZd1/xoEhuEjDGn+IVLVSDQiauws515ehbFnO/wKuwKIdHuONsIKeHvH7M5wr8U YUcJq9qTLm3DUY74AfrmriP7Nz7vOtXypbw+5yC27I29klqC78aG+GgYIJyC3LrJPthh XZ1g== X-Gm-Message-State: AOAM533DuTF5WxuMNl8ne/SSm37pJ+t7Lux6dSPyYUuQyY+HoVqKy4kW xP7/EJw/9e01fEIXhoq+CdgMKppCblDJTVYQXy5bHA== X-Received: by 2002:ac8:a82:: with SMTP id d2mr8771145qti.343.1613071583329; Thu, 11 Feb 2021 11:26:23 -0800 (PST) MIME-Version: 1.0 References: <1613040542-16500-1-git-send-email-stefanc@marvell.com> <1613040542-16500-6-git-send-email-stefanc@marvell.com> <20210211114238.GD1463@shell.armlinux.org.uk> In-Reply-To: From: Marcin Wojtas Date: Thu, 11 Feb 2021 20:26:10 +0100 Message-ID: Subject: Re: [EXT] Re: [PATCH v13 net-next 05/15] net: mvpp2: add PPv23 version definition To: Stefan Chulski Cc: Russell King - ARM Linux admin , "netdev@vger.kernel.org" , "thomas.petazzoni@bootlin.com" , "davem@davemloft.net" , Nadav Haklai , Yan Markman , "linux-kernel@vger.kernel.org" , "kuba@kernel.org" , "andrew@lunn.ch" , "atenart@kernel.org" , "devicetree@vger.kernel.org" , "robh+dt@kernel.org" , "sebastian.hesselbarth@gmail.com" , "gregory.clement@bootlin.com" , "linux-arm-kernel@lists.infradead.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org czw., 11 lut 2021 o 12:49 Stefan Chulski napisa=C5=82= (a): > > > ---------------------------------------------------------------------- > > On Thu, Feb 11, 2021 at 12:48:52PM +0200, stefanc@marvell.com wrote: > > > From: Stefan Chulski > > > > > > 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 > > > Acked-by: Marcin Wojtas > > > > Reviewed-by: Russell King > > > > > @@ -7049,6 +7049,11 @@ static int mvpp2_probe(struct platform_device > > *pdev) > > > priv->port_map |=3D BIT(i); > > > } > > > > > > + if (priv->hw_version !=3D MVPP21) { > > > + if (mvpp2_read(priv, MVPP2_VER_ID_REG) =3D=3D > > MVPP2_VER_PP23) > > > + priv->hw_version =3D MVPP23; > > > + } > > > + > > > > The only minor comment I have on this is... the formatting of the above= . > > Wouldn't: > > > > if (priv->hw_version >=3D MVPP22 && > > mvpp2_read(priv, MVPP2_VER_ID_REG) =3D=3D MVPP2_VER_PP23) > > priv->hw_version =3D 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) =3D=3D MVPP2_VER_PP23) > priv->hw_version =3D 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