Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2131867pxb; Thu, 11 Feb 2021 05:20:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJw1Py/EUtbDAapVesXCreBZdzM/RdnDo1M9YvgBwszBDxYZnGkj2I6gTm1cLjZeX9K84fXK X-Received: by 2002:a17:906:a246:: with SMTP id bi6mr8556343ejb.267.1613049600360; Thu, 11 Feb 2021 05:20:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613049600; cv=none; d=google.com; s=arc-20160816; b=PK4Dgc1gKwijpsuLzYTVXHmqzTn8tC6V9lgubpNZgAh9mzVZmCEsHlibiFWsU3sLHf /bq2pGfa8sC9Ks/wEBpBx10c1xPjbo/GHI5goAhGT4HFhMYl9JaRyDTWNtpQidKrF6b3 d0dohqFNWLFnYX08JF4oi5wOFik9NBWVnS410SjuWEl9admlAPWkAZ3599wISOjSu8u9 RwgN8XUPAKgVUOlFTkO0skiCza1dAPjJa2SunV0GUJuytEKu04jvAwNkjCFAptmZ/d5y k+XgyBxvxT05gbr1znOc75jrO1fd7HlOO4qHDDpoPacMIXgm/4Om6mVvyWtx1+NKN/J7 sesQ== 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=P/fbYJLfIiMUlzLH/CM3SF7lHDzXC2EAX4Nohl28cUU=; b=m6vEp4FKnQW7ouCYJHtzeO4XfacIoqqQjyAo2mJP8FI/pR3aeiD8LhKwPh4Mj/zKjE yUIC58OxnEP+6g3bO1DjRfnhlwB7PvBIXuGn56p6oSmqHxUC56XUCqD7INtUkZjx2NKq ATzIw1vgxlqUwlv2lV5tVU0b3NgJTn4X6znUQInQQUULRB29smdCchhsbRcLSMhkDh5W h0l8FgQxVHMoTVWJ/A823TGdHP6JeDgG2WAN1aT3CQIIs1DqzKDtujOJZEWiRypW5EvO tbdhOFl8D/miRpo42zdc7GlavTQrC3oYbAEOM8QvFhLV527apYOG0vMa0hYyMGCBHg42 AX0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=gESxwmAX; 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 y2si3836632eju.432.2021.02.11.05.19.37; Thu, 11 Feb 2021 05:20:00 -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=gESxwmAX; 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 S231519AbhBKNRQ (ORCPT + 99 others); Thu, 11 Feb 2021 08:17:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231504AbhBKM5V (ORCPT ); Thu, 11 Feb 2021 07:57:21 -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 61063C061756; Thu, 11 Feb 2021 04:56:09 -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=P/fbYJLfIiMUlzLH/CM3SF7lHDzXC2EAX4Nohl28cUU=; b=gESxwmAXcXpBCH9mYag7eU0Fy 31Wx62ZhmqfD/7kLgefAaPVhC9BMcUlJzieQoTCzoVURLeCbuuOcbAfO17grnbSfmLSaNJzi7RHN7 gEucuWxan/R0AgfG/bs5fpdZ8deoFn5VeQYvdINO1hnxkx81Ei6vtfcH01ahemeIY6CO0Zpec3day X9UeudPCSNgaOFoMMuaCJIt+pfidBvkHs/9NxStlsy8It1HsDSAEw+w340rn3wTW8ZCRiDf5OaxTz wFgf+06aKGk3E7C4qZsBOeqqFJTtw25wAJxNf5Q/ZjcNepTOTPM0ly72TMVwxXhLce/Xi2XfKEXMK wcn0Cd0xA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:42034) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lABVv-0006As-IM; Thu, 11 Feb 2021 12:56:07 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1lABVu-00066i-Kb; Thu, 11 Feb 2021 12:56:06 +0000 Date: Thu, 11 Feb 2021 12:56:06 +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 13/15] net: mvpp2: add PPv23 RX FIFO flow control Message-ID: <20210211125606.GH1463@shell.armlinux.org.uk> References: <1613040542-16500-1-git-send-email-stefanc@marvell.com> <1613040542-16500-14-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-14-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:49:00PM +0200, stefanc@marvell.com wrote: > +/* Configure Rx FIFO Flow control thresholds */ > +void mvpp23_rx_fifo_fc_en(struct mvpp2 *priv, int port, bool en) > +{ > + int val; u32 ? > + > + val = mvpp2_read(priv, MVPP2_RX_FC_REG(port)); > + > + if (en) > + val |= MVPP2_RX_FC_EN; > + else > + val &= ~MVPP2_RX_FC_EN; > + > + mvpp2_write(priv, MVPP2_RX_FC_REG(port), val); if (en) val = MVPP2_RX_FC_EN; else val = 0; mvpp2_modify(priv + MVPP2_RX_FC_REG(port), MVPP2_RX_FC_EN, val); ? -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!