Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2127537pxb; Thu, 11 Feb 2021 05:13:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJzWWnfNX/2dIiotM8T2zRxOkaSaU+DZY6lgWyLP89BSCHd2yr59GsEDyLdUvdiZdLQuPJE7 X-Received: by 2002:a50:c403:: with SMTP id v3mr8280731edf.217.1613049232126; Thu, 11 Feb 2021 05:13:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613049232; cv=none; d=google.com; s=arc-20160816; b=Z3H2gi6pdHmnCKkO1OA6nOCze73mi0ATagogm6BIaLF8u0Sqxk8bE8vRf+OaIZflxG lgywBSE2B4n9BmnZgDfgEddetDew5aTSXJdagbAd0U6ZYnUPxRjJoK2uTTVwTMOwY6YZ WTrmofUonInNUhYN8ZtARa+OyrWVKH9v4FyX0wGBp6yWPVt47IEabeyaeXlUQ/+9ay3t vxHCjU4FO9RdZkAHW1JQE2NBYiXW+plUTTOAVAkbLv+9h5RnzzWEVirNKVcyT3trs0/F /xm62DTQ/FJQBrqDN3TZJoTIfWdBUKTfWXQLSEvbQH3Ks30KmDOpWFRgGnVDUUlEHEJO roLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=b+d/UsRJbDcvXOU7lVKV60HeDxwwY/1A5/qcbhLE4dA=; b=jx7FrLIf/c/5+X7zAIULGxpIjaKr9MdJ554yRtZpvdXvlcjsp78JM+isY14FS4hv/u zdD5sLvrWgMdIfou8MzUsrzZ2/FEG3NFmeFUyXL/vt/Qdf8NJbZlW4iSCNy/M373rDO7 2ivowdy33H4liMN3dMt4IEvYbpt5gdsPUzVtOFG8etqfbuTUFijzfr0X7cDNx6D4q1NG c1n28rGhCkJHCaTHim37T6JnjVk+HO324WPLvXcDEyr5HjyFuWStfi3jhDGAq2FQyeZ8 XmjvpOxRibxt0ewBwHkdWV746gIFjrIFxz6E8+Bhk8HQeUnuHvrZdgsPOw0BhE5ndUJ6 qVAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=V+dTCIhJ; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n15si3758209eje.486.2021.02.11.05.13.28; Thu, 11 Feb 2021 05:13:52 -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=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=V+dTCIhJ; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231990AbhBKNMq (ORCPT + 99 others); Thu, 11 Feb 2021 08:12:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231437AbhBKMxU (ORCPT ); Thu, 11 Feb 2021 07:53:20 -0500 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD4CAC061756; Thu, 11 Feb 2021 04:52:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=b+d/UsRJbDcvXOU7lVKV60HeDxwwY/1A5/qcbhLE4dA=; b=V+dTCIhJyFvGttNB4GvsqDqTn KiA3/PTaORHH143rcJyJtmQ3iU3Z0x2jRMchnwyhG/0Oz0je0x4iOOG8sHXNCgNwzmJmiz0HLc01m y/dizdLNf4YwtM5TwL0rkF8UNLKN018NKuPq8W8UZ6YrhIvif/rLEO1BBVHmDZz7wB5Rcf+IowNxT 5BHlhkzJE0G7xvdzdSk8U4oYZihX5cToyljYh1l0pGWpV7GyZguqkAYwQC4Bmx4SkCrcz4MXsOvM5 IMjEAVvqiCxtMEa/j8xgZuyJz53Te60ZBxL8nIlR94Pm1B2JCW6JDpA+zcDBRTHt89SkxbDSI0xt1 5dYqTcltA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:42032) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lABSW-0006AO-P2; Thu, 11 Feb 2021 12:52:36 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1lABSV-00066Z-Oe; Thu, 11 Feb 2021 12:52:35 +0000 Date: Thu, 11 Feb 2021 12:52:35 +0000 From: Russell King - ARM Linux admin To: stefanc@marvell.com Cc: netdev@vger.kernel.org, thomas.petazzoni@bootlin.com, davem@davemloft.net, nadavh@marvell.com, ymarkman@marvell.com, linux-kernel@vger.kernel.org, kuba@kernel.org, mw@semihalf.com, 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 Subject: Re: [PATCH v13 net-next 09/15] net: mvpp2: enable global flow control Message-ID: <20210211125235.GG1463@shell.armlinux.org.uk> References: <1613040542-16500-1-git-send-email-stefanc@marvell.com> <1613040542-16500-10-git-send-email-stefanc@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1613040542-16500-10-git-send-email-stefanc@marvell.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: Russell King - ARM Linux admin Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 11, 2021 at 12:48:56PM +0200, stefanc@marvell.com wrote: > +static void mvpp2_cm3_write(struct mvpp2 *priv, u32 offset, u32 data) > +{ > + writel(data, priv->cm3_base + offset); > +} > + > +static u32 mvpp2_cm3_read(struct mvpp2 *priv, u32 offset) > +{ > + return readl(priv->cm3_base + offset); > +} > + Would it also make sense to have mvpp2_cm3_modify() ? You seem to be adding several instances of read-modify-write sequences to CM3 RAM in your series. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!