From patchwork Mon Nov 30 12:27:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Wojtas X-Patchwork-Id: 7723791 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 6DA759F39B for ; Mon, 30 Nov 2015 12:30:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8B4AE20529 for ; Mon, 30 Nov 2015 12:30:31 +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 C004C2053A for ; Mon, 30 Nov 2015 12:30:30 +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 1a3NZQ-0003pj-IK; Mon, 30 Nov 2015 12:28:40 +0000 Received: from mail-lf0-x22a.google.com ([2a00:1450:4010:c07::22a]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1a3NYp-0003VO-WB for linux-arm-kernel@lists.infradead.org; Mon, 30 Nov 2015 12:28:06 +0000 Received: by lfaz4 with SMTP id z4so194180331lfa.0 for ; Mon, 30 Nov 2015 04:27:42 -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=vw6MdU/KrIB1EpAqv4fMg/7qeavg1yt+BasdtGU6gmI=; b=cmsmih7D8ByjMJLJk+Bbp/0LzPy5mgkvzSrLEfKd7JyeDK1kAMQ9nUqcdbrI+ddMTn h8jz5zYc+1nem9eYBQFp4lp+Gf1xh3byFOGUMKmRHnTxtMkti72LQvnC4ZT12z2f33AN 5UHfnxW4Gx1mNADMyXUfKis1DbkYvu5QWfH6d4umYYAh+V1reM03ohT9WEUSYaOg9nUh G/U3d32li76bqBIxmz/tvyFPAn3btojzchZCOF4AnHcTDWa8iu6yCaMI3FhDuhfWWZEL TZFtJpt20WvVAcbv8SHnlxsZ5P7A66T879lEbzOiswQRoje2N8u67NgJfTpErVSF6LLk 22sQ== 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=vw6MdU/KrIB1EpAqv4fMg/7qeavg1yt+BasdtGU6gmI=; b=mnKSiC1YzwB7GkhS3v05lhPQdj5qIHBE/vKx9cOX4dXV6OmsTz6H5r1ngs5XGx+mVE owmmCTzK7Uv52frjHR+MhbhZ38RhYBMbbN/Wc2Go0vQkfL/b6vJPjjmtEt+hvQIRjyCR ZHn9pc6/FVx2uNec62DYreGmKD6dSfmXEUHuF/AN5pY6sGHP4XKY4ZulKmEVgMx0yCAF 0z0wKVit8QcygeDvC886zKZBBAiNX8cXK15wDEZnv0Rt+XBQSPmDSjtgYgcaAG9K5PE0 3TJjtxbie7622sjZzFn5r4UP60C/y6Wo+uRKWRheGWKB/c+X3mXbMA1Il6dAbOZJIYGQ yEzQ== X-Gm-Message-State: ALoCoQmgvrdT0Ltc78a+cWjMYOIC7CYtsTr4GSm+cmjpR2WyBQNbxSkcIFOggrOZHqJtaFUcIdgj X-Received: by 10.112.130.138 with SMTP id oe10mr25365398lbb.54.1448886462074; Mon, 30 Nov 2015 04:27:42 -0800 (PST) Received: from enkidu.semihalf.local ([80.82.22.190]) by smtp.gmail.com with ESMTPSA id l67sm7325249lfl.26.2015.11.30.04.27.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Nov 2015 04:27:41 -0800 (PST) From: Marcin Wojtas To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org Subject: [PATCH v4 net 2/6] net: mvneta: fix bit assignment in MVNETA_RXQ_CONFIG_REG Date: Mon, 30 Nov 2015 13:27:42 +0100 Message-Id: <1448886466-31538-3-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1448886466-31538-1-git-send-email-mw@semihalf.com> References: <1448886466-31538-1-git-send-email-mw@semihalf.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151130_042804_363394_ECDEAA92 X-CRM114-Status: GOOD ( 10.51 ) 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, 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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, 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 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 2d80256..64c46f0 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))