From patchwork Tue Mar 7 12:39:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sunil Kovvuri X-Patchwork-Id: 9608735 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 864BF602B4 for ; Tue, 7 Mar 2017 12:41:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 703E3284DE for ; Tue, 7 Mar 2017 12:41:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6161F284E9; Tue, 7 Mar 2017 12:41:53 +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_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM 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 DBEB6284DE for ; Tue, 7 Mar 2017 12:41:52 +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:References: In-Reply-To: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:List-Owner; bh=99ohk5qvIIubngJlGwY8m+QCnF2NhMPbbTF5S6x2rQY=; b=Xxd92JvyzZuj9rzdLs5DjH9F/Q rcnqi8ybir30nSXNs/Rs+JctUkMGGU2+foTh1E0OPMseELwO4dRTAX8plas2IDkKC2iAFdnKcqJTp lcZErf1c3ISx3UwNUKyfN02dzSWi3autKMGvKXPwERvEOJ5jcpUUSFFC4EXteeHrz6et/K0HxYnVo Y1SASpMacN+q0D/zcy7vioRZb33mnGIa1r4Wabu6ZNr+XhHcLhIsoRISlR+UvIP5UyX/ZqkrEE6sq zITApGWIovoEeS4qwiOPyHRYBBwQLKzj6wzBei8Ls2/w/yU/eNiSbWT80xKz6xWfJIXFxkxZnDPD2 pEmmnoHQ==; 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 1clEQy-00070n-NQ; Tue, 07 Mar 2017 12:41:44 +0000 Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1clEPG-0004g1-57 for linux-arm-kernel@lists.infradead.org; Tue, 07 Mar 2017 12:40:00 +0000 Received: by mail-pg0-x241.google.com with SMTP id 77so48551pgc.0 for ; Tue, 07 Mar 2017 04:39:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=kT7GscAIGwmZADKhHw4h7ClzqXX7nLeTaOMBMkhAISE=; b=pw6nYe6d8t0WtE+GADWKjNOVqageeD7Gwer8ZIyFsxI3x39MIV9iOuegRr3N426yiF yaY3y6XLamSzaDVdFQSAm3v0Fpvy4jAuY7Ao1nuTHB/ssn7MMnMyaN5MrHB1WnPTbeCC JKDiA6MN9RCPjftGteqgqIUrJBrU0yjUXZFWpieIOx46NRd76KNkyGZizlq3OsgEK77k njzTr2ERY5FWGqJUDUjM+c8yeknEzV33SAqOU7B9j8ADjgC8ddLFyZtlKsCiZljeV4MK BzqqPJ47dQ/qjHO/RPNsxcS9H8tZDOV05Bz7TmeHgtj0Vnkaalo9BTPOIms5rX3YbYxd MqqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=kT7GscAIGwmZADKhHw4h7ClzqXX7nLeTaOMBMkhAISE=; b=GKQi1ZIVCZiltQwW6HRkVSuOneaLvd87o0s+M7/dhK+rMKc1/KrX0kqIcKfIkNo3/y 3FxQ7MUBnjc7PHqJGvVioLScGf04NcJmTu3KNT06fIIPmrITxprxP7w91DG7dJsJwCIQ EN0G5KfL/CJgaWsFYRts8o1dIE53U1hp6qaG34KkltFeGKoFMDLfPgerE47a/xe7JAsi qXAh4sQq8+nwccBp+de7goHNuK9r39XrHtxMjqWXkmeiPVP+KIj5dz42mIvrZn6U/AN/ qEjvqZh0x3HHvCud6v6iz6uJR0+fEpJqLRnkjg+VVLihlwrSc0JahijuUWjjX+RlVnrq w0cA== X-Gm-Message-State: AMke39no0KrZth9AbsvSIsEA5ar691qfLkf8Sxm+XX/28l3oFxFrgxoFUx5HByJxNivXeQ== X-Received: by 10.84.210.15 with SMTP id z15mr61840plh.11.1488890376466; Tue, 07 Mar 2017 04:39:36 -0800 (PST) Received: from machine421.in.caveonetworks.com ([14.140.2.178]) by smtp.googlemail.com with ESMTPSA id y5sm46214796pgy.28.2017.03.07.04.39.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 07 Mar 2017 04:39:35 -0800 (PST) From: sunil.kovvuri@gmail.com To: netdev@vger.kernel.org Subject: [PATCH v2 2/4] net: thunderx: Fix LMAC mode debug prints for QSGMII mode Date: Tue, 7 Mar 2017 18:09:09 +0530 Message-Id: <1488890351-18493-3-git-send-email-sunil.kovvuri@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1488890351-18493-1-git-send-email-sunil.kovvuri@gmail.com> References: <1488890351-18493-1-git-send-email-sunil.kovvuri@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170307_043958_236906_12CF4689 X-CRM114-Status: UNSURE ( 9.88 ) 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: Sunil Goutham , linux-kernel@vger.kernel.org, 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 From: Sunil Goutham When BGX/LMACs are in QSGMII mode, for some LMACs, mode info is not being printed. This patch will fix that. With changes already done to not do any sort of serdes 2 lane mapping config calculation in kernel driver, we can get rid of this logic. Signed-off-by: Sunil Goutham --- drivers/net/ethernet/cavium/thunder/thunder_bgx.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/net/ethernet/cavium/thunder/thunder_bgx.c b/drivers/net/ethernet/cavium/thunder/thunder_bgx.c index 4c8e8cf..9b8a53e 100644 --- a/drivers/net/ethernet/cavium/thunder/thunder_bgx.c +++ b/drivers/net/ethernet/cavium/thunder/thunder_bgx.c @@ -1011,12 +1011,6 @@ static void bgx_print_qlm_mode(struct bgx *bgx, u8 lmacid) dev_info(dev, "%s: 40G_KR4\n", (char *)str); break; case BGX_MODE_QSGMII: - if ((lmacid == 0) && - (bgx_get_lane2sds_cfg(bgx, lmac) != lmacid)) - return; - if ((lmacid == 2) && - (bgx_get_lane2sds_cfg(bgx, lmac) == lmacid)) - return; dev_info(dev, "%s: QSGMII\n", (char *)str); break; case BGX_MODE_RGMII: