From patchwork Tue Jun 6 13:36:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antoine Tenart X-Patchwork-Id: 9768907 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 043D66034B for ; Tue, 6 Jun 2017 13:39:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F07BD20700 for ; Tue, 6 Jun 2017 13:39:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E21F728358; Tue, 6 Jun 2017 13:39:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 684CF20700 for ; Tue, 6 Jun 2017 13:39:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=4tNKM51etJrKiL2Al+KMMlYkeuVkM+DLZFohQd3PrRU=; b=LgT 80OBHn8Qt50uYEvi2tGFYkcjS+oGhn85USzxX5aBJ3+9dOF3J6onOv+mcKs2sRuRBNn1zzpK7C0dr A2laICINyVpBFZ5Lf4f7u6/D/PJRO8K3HqAbTaLGuTjcJS/ZkFC4H2YTPjfL7DhmiuW17OYw/Y4wo TOPT4FryzJAIWk66RR5pmOTW5YVsITxX1L6D0MJXIFWOOXkT55fIF5TYZ/IvqgUrKBpdKKJ7Be3DB y231CAwBYZamjFqfXZHyxaMShpJHTvQSU7tRqzLx5l1gr8/KTe4mQdN4ziv3FYHcGlqzG3gdxQGY4 ZnYFXZbnKizXLBP49OBm2L5Q/Jj7ITQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dIEhW-0001lh-H6; Tue, 06 Jun 2017 13:39:14 +0000 Received: from mail.free-electrons.com ([62.4.15.54]) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dIEhS-0001j3-HA for linux-arm-kernel@lists.infradead.org; Tue, 06 Jun 2017 13:39:13 +0000 Received: by mail.free-electrons.com (Postfix, from userid 110) id 63DDA207D4; Tue, 6 Jun 2017 15:38:47 +0200 (CEST) Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id 33AAE203F7; Tue, 6 Jun 2017 15:38:37 +0200 (CEST) From: Antoine Tenart To: davem@davemloft.net, netdev@vger.kernel.org, thomas.petazzoni@free-electrons.com Subject: [PATCH] net: mvpp2: do not bypass the mvpp22_port_mii_set function Date: Tue, 6 Jun 2017 15:36:15 +0200 Message-Id: <20170606133615.20747-1-antoine.tenart@free-electrons.com> X-Mailer: git-send-email 2.9.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170606_063910_718432_F9C20731 X-CRM114-Status: UNSURE ( 9.58 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: gregory.clement@free-electrons.com, Antoine Tenart , mw@semihalf.com, linux@armlinux.org.uk, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The mvpp22_port_mii_set() function was added by 2697582144dd, but the function directly returns without doing anything. This return was used when debugging and wasn't removed before sending the patch. Fix this. Signed-off-by: Antoine Tenart Acked-by: Thomas Petazzoni --- drivers/net/ethernet/marvell/mvpp2.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/ethernet/marvell/mvpp2.c b/drivers/net/ethernet/marvell/mvpp2.c index 9b875d776b29..70bca2a6fb02 100644 --- a/drivers/net/ethernet/marvell/mvpp2.c +++ b/drivers/net/ethernet/marvell/mvpp2.c @@ -4186,8 +4186,6 @@ static void mvpp22_port_mii_set(struct mvpp2_port *port) { u32 val; - return; - /* Only GOP port 0 has an XLG MAC */ if (port->gop_id == 0) { val = readl(port->base + MVPP22_XLG_CTRL3_REG);