From patchwork Sun Nov 22 07:53:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Wojtas X-Patchwork-Id: 7675481 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2338EBF90C for ; Sun, 22 Nov 2015 07:56:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4A0DB2064C for ; Sun, 22 Nov 2015 07:56:47 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 57BF52064B for ; Sun, 22 Nov 2015 07:56:46 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1a0PTR-00009g-36; Sun, 22 Nov 2015 07:54:13 +0000 Received: from mail-lf0-x229.google.com ([2a00:1450:4010:c07::229]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1a0PTN-0008G4-Lj for linux-arm-kernel@lists.infradead.org; Sun, 22 Nov 2015 07:54:10 +0000 Received: by lfdl133 with SMTP id l133so10117592lfd.2 for ; Sat, 21 Nov 2015 23:53:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=YYmHedRPNMCBIwYyxWj4ytGsMuleJPZ90en5BhZ1C2c=; b=QU6/OdGajUxbyS1FFqKBkzPr/eyF3YegbQvd8qIprj4M1R9PBq7PBt3LZzNrTbc5yx nvkJ2OHI5c5HVEwjKo07sh0FgManf6SPEuIBkQJHqMu3AWpIdD4pD7IZbJnPnSZE5Dic 2nOw0emlKEt6E/WJ9UTqukg2acPp31nQ2JPCD3gdZRYZUezwaWinBcq7LUuA7AhID+P6 ul7G3HLFouJuSF68/U1DdtNY9i3YhQ0kfkck0mlHOjocutz6rvKbHs8Y5t12bley4gUT CaazeQRKTBroR1bQuUh63HUJR/itDjKAPB1ACg5Whz7GHZQ1rYdDyvhNectsO5S03l8h 3JVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=YYmHedRPNMCBIwYyxWj4ytGsMuleJPZ90en5BhZ1C2c=; b=DSnv8W2i11USJt31KdGIR0O7MYBjspVb3jH6mAyYfajq08HeoAneV2PPoQdprvIprX FQ3i7uj+rFwQsANEsusuaFqngiT7Dq07aeLi/Vtxew7n/J9RzXBUvvVDwYNVFyDM2LOx 7vqMVwen6OxQ1QgmRpJByRjlFfjXprClKl8sT/gUf2D4v6V8e6QaGzT9sR017UKedkqC u6iltoP7g34lTAWcUuDjigHmK7d2mi6mG7in5lrn51+EhZ0kKS52qcgkC0uUVhubj/2S bTiCHa2ASUZAI/aya5STI44I8qJ2y9jNr/l+n1kXLrfc5AJtYKK8i/g7SWSz1XUG5QJT 2PZA== X-Gm-Message-State: ALoCoQmdYQTbFyJKvcjZZOHg2PHLS0N3zSXYKP3PQbV7GV+4yEP/g7YLPzXYCqJKznB4wYy9l8AU X-Received: by 10.25.157.85 with SMTP id g82mr7366709lfe.104.1448178831457; Sat, 21 Nov 2015 23:53:51 -0800 (PST) Received: from enkidu.semihalf.local (cardhu.semihalf.com. [213.17.239.108]) by smtp.gmail.com with ESMTPSA id y79sm1010840lfd.45.2015.11.21.23.53.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Nov 2015 23:53:50 -0800 (PST) From: Marcin Wojtas To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org Subject: [PATCH 03/13] net: mvneta: fix bit assignment in MVNETA_RXQ_CONFIG_REG Date: Sun, 22 Nov 2015 08:53:49 +0100 Message-Id: <1448178839-3541-4-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1448178839-3541-1-git-send-email-mw@semihalf.com> References: <1448178839-3541-1-git-send-email-mw@semihalf.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151121_235409_974867_C91CBE28 X-CRM114-Status: UNSURE ( 9.94 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: thomas.petazzoni@free-electrons.com, andrew@lunn.ch, linux@arm.linux.org.uk, jason@lakedaemon.net, myair@marvell.com, jaz@semihalf.com, simon.guinot@sequanux.org, xswang@marvell.com, nadavh@marvell.com, alior@marvell.com, stable@vger.kernel.org, tn@semihalf.com, gregory.clement@free-electrons.com, nitroshift@yahoo.com, mw@semihalf.com, davem@davemloft.net, sebastian.hesselbarth@gmail.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP MVNETA_RXQ_HW_BUF_ALLOC bit which controls enabling hardware buffer allocation was mistakenly set as BIT(1). This commit fixes the assignment. Signed-off-by: Marcin Wojtas Cc: # v3.8+ Reviewed-by: Gregory CLEMENT --- drivers/net/ethernet/marvell/mvneta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c index 0f30aaa..d12b8c6 100644 --- a/drivers/net/ethernet/marvell/mvneta.c +++ b/drivers/net/ethernet/marvell/mvneta.c @@ -36,7 +36,7 @@ /* Registers */ #define MVNETA_RXQ_CONFIG_REG(q) (0x1400 + ((q) << 2)) -#define MVNETA_RXQ_HW_BUF_ALLOC BIT(1) +#define MVNETA_RXQ_HW_BUF_ALLOC BIT(0) #define MVNETA_RXQ_PKT_OFFSET_ALL_MASK (0xf << 8) #define MVNETA_RXQ_PKT_OFFSET_MASK(offs) ((offs) << 8) #define MVNETA_RXQ_THRESHOLD_REG(q) (0x14c0 + ((q) << 2))