Received: by 10.213.65.68 with SMTP id h4csp161392imn; Fri, 30 Mar 2018 03:07:24 -0700 (PDT) X-Google-Smtp-Source: AIpwx48Rbvsuqkl2x4t7xRoTgxv3ZfF0QpxXruz0Ub8ZHYymb/RT/9fzNZHTHLiqTcxWy4Iq7UEp X-Received: by 10.99.122.28 with SMTP id v28mr8176274pgc.128.1522404444555; Fri, 30 Mar 2018 03:07:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522404444; cv=none; d=google.com; s=arc-20160816; b=G713za6Je63rVxDsdqiq3lpX5rY8NHg2xM9V2SG/hJm1s9PlSTKelyy2MKJe8AESaH +Ty7eUE1Nlqm7DIGZmhhPhCxsnNSEQGpp5BvnB61aVfzNKbQVvLtmFEBU0UFAN/+KM4P pDI/HbESX5foHXY6PGy7Mn6sd+g8LTBj9Oxh6chXhYQEYyDSZs8vmXHyCQ7flCFN0uyR qVQi9LxdKzPOK5f04aa+zeJqOiYtHz0HaupZ1eSItWczOyWplm8vu3iNiwPTzPNQicfk It7qtevXYIyxsbCqqIm15S/LRbzBYyGqtsPH7030eagf2JwqDjPGgZ1Y9+X70GaXaOQ9 VDjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=aedLMpzfr075pT6YnD3iH5gN4BADNncFP9V71Xh1+z8=; b=zzvdXTuqT9zAwNVQEdfPcXah4eYztCPxA6LS2aCqVlgfumlDSdtiR0WuGPN1IcfHRp JEzNF2f5pdR06ojLpqbbWNYQMjtz6XRqsNoHmuW2COZCQz/ezUB5+SnsITBfb+PB3Z0n I3Mhvy72ocU5gXR7DG7A9ReQFh6fOodZ15HwWvaAbIikQzPTmYi48bGbjP3/VF8kQAAo bmmZnDy/j7k7ix5Crs6o7OKLIHalUEEgCepurPW6r9i9zb7FXN0wWxDXUjlAWVBSsFud LsPmg7bqP5FKdB3jlR1UeIuTiXX8pFMvlZ4GErXAdQXAYPKa4ROP2rFBptpl3DIYeZHX Rgtw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a5si5372384pgc.428.2018.03.30.03.07.10; Fri, 30 Mar 2018 03:07:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751282AbeC3KGF (ORCPT + 99 others); Fri, 30 Mar 2018 06:06:05 -0400 Received: from mail.bootlin.com ([62.4.15.54]:35183 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751053AbeC3KGD (ORCPT ); Fri, 30 Mar 2018 06:06:03 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 120222087E; Fri, 30 Mar 2018 12:06:02 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (242.171.71.37.rev.sfr.net [37.71.171.242]) by mail.bootlin.com (Postfix) with ESMTPSA id D5AE5208BC; Fri, 30 Mar 2018 12:05:51 +0200 (CEST) From: Gregory CLEMENT To: "David S. Miller" , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: Thomas Petazzoni , Antoine Tenart , =?UTF-8?q?Miqu=C3=A8l=20Raynal?= , Maxime Chevallier , stefanc@marvell.com, ymarkman@marvell.com, Yelena Krivosheev , Gregory CLEMENT Subject: [PATCH] net: mvneta: fix enable of all initialized RXQs Date: Fri, 30 Mar 2018 12:05:31 +0200 Message-Id: <20180330100531.5995-1-gregory.clement@bootlin.com> X-Mailer: git-send-email 2.16.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yelena Krivosheev In mvneta_port_up() we enable relevant RX and TX port queues by write queues bit map to an appropriate register. q_map must be ZERO in the beginning of this process. Signed-off-by: Yelena Krivosheev Signed-off-by: Gregory CLEMENT --- drivers/net/ethernet/marvell/mvneta.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c index 25e9a551cc8c..3f6fb635738c 100644 --- a/drivers/net/ethernet/marvell/mvneta.c +++ b/drivers/net/ethernet/marvell/mvneta.c @@ -1132,6 +1132,7 @@ static void mvneta_port_up(struct mvneta_port *pp) } mvreg_write(pp, MVNETA_TXQ_CMD, q_map); + q_map = 0; /* Enable all initialized RXQs. */ for (queue = 0; queue < rxq_number; queue++) { struct mvneta_rx_queue *rxq = &pp->rxqs[queue]; -- 2.16.2