From patchwork Thu Nov 26 18:08:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Wojtas X-Patchwork-Id: 7708401 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BD1F89F2E9 for ; Thu, 26 Nov 2015 18:11:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CFD59206C0 for ; Thu, 26 Nov 2015 18:11:18 +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 651A720686 for ; Thu, 26 Nov 2015 18:11:17 +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 1a20z2-0004PZ-TR; Thu, 26 Nov 2015 18:09:28 +0000 Received: from mail-lf0-x22c.google.com ([2a00:1450:4010:c07::22c]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1a20yM-0003zJ-Du for linux-arm-kernel@lists.infradead.org; Thu, 26 Nov 2015 18:08:48 +0000 Received: by lffu14 with SMTP id u14so105855411lff.1 for ; Thu, 26 Nov 2015 10:08:24 -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=ieAM1qTZ0wgWbavkDEYNV4fwrp6aDYrVXBZQ80ZyKQs=; b=tN434INN7vekpfLQlwFr70QGh3aJLTBFk8wrphUe5j1J0EM4DbMwvg/y3YEgQTskOj X69jTPGrsm5RBPu+R0ubv3vpRu0HwxllmUoXEL3832SNSxCGKvEaddJPjVEKUAX1a9bs rJJNTsDwhxfuT2dwosfqYw4+Q/GSSlq1IFY8WLWVpj1VLFaqeajhFrNX+T6gnmci3W3H 31rVNxmd4feB0+J1ULFwKakjUyqKMhFiXNzx23VePEyu/BKNPp/25Tzr9A/FtrXKW42P cp8npnEuOOIX6FRnPXQXw+MWR7iQo+CqEMIB5ozIJhlpJ/hZYrPMJIyaOsv0uy+roGLH yiVg== 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=ieAM1qTZ0wgWbavkDEYNV4fwrp6aDYrVXBZQ80ZyKQs=; b=G5q3M61BKGtZz7FRgSNJSt631Uhhvxst2RHAKVcLBgD/qS7q9Gzytfl2sMjELdqMRT RliKz8DFTJfCRYNs3l36kYTXqnI7PPEV40b9tHKnlQ6A7JK3D72V3QbpYHgVLoRZv1KN 2pI630o3L7Hy6b4bhjPxJ/thsIbV8Y4SSB0fy64B04hqjIXuMendHMbF/n/qZ23fqL2+ Mg8tEJXnxVzw3AFgGbI3o82t/nbT2lXcHEKRB5iO45pfcBo+e/1N5MeHalHAURRxj2vK 5wNfiGkBx+mcKAxYuzreLy0pFT6uWGLVpy+mefZ7CCJYBKwq0oqsX+eeJUGYR2PPI9vB CeiA== X-Gm-Message-State: ALoCoQkBcqBx5VyP46oO2C7DU4+0XSICeOuPtxHR4Igh6byJuXHHNd07yQnn6zllXXxnMyvaOlAK X-Received: by 10.112.120.212 with SMTP id le20mr15143512lbb.134.1448561304272; Thu, 26 Nov 2015 10:08:24 -0800 (PST) Received: from enkidu.semihalf.local ([80.82.22.190]) by smtp.gmail.com with ESMTPSA id a190sm4297654lfa.32.2015.11.26.10.08.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Nov 2015 10:08:23 -0800 (PST) From: Marcin Wojtas To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org Subject: [PATCH v2 net 2/6] net: mvneta: fix bit assignment in MVNETA_RXQ_CONFIG_REG Date: Thu, 26 Nov 2015 19:08:09 +0100 Message-Id: <1448561293-16431-3-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1448561293-16431-1-git-send-email-mw@semihalf.com> References: <1448561293-16431-1-git-send-email-mw@semihalf.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151126_100846_833194_94FC65E5 X-CRM114-Status: GOOD ( 10.87 ) X-Spam-Score: -2.6 (--) 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=-5.1 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 Reviewed-by: Gregory CLEMENT Cc: # v3.8+ Fixes: c5aff18204da ("net: mvneta: driver for Marvell Armada 370/XP network unit") --- 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 c4327b9..d78edbb 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))