From patchwork Fri Mar 3 10:47:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sunil Kovvuri X-Patchwork-Id: 9602533 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 E5C7460453 for ; Fri, 3 Mar 2017 10:49:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D78A0285AA for ; Fri, 3 Mar 2017 10:49:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CC03E285E6; Fri, 3 Mar 2017 10:49:30 +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 87170285AA for ; Fri, 3 Mar 2017 10:49:30 +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=nntWVCvq2J8vMTfCV5t23GVRCU nGRhU4lvZeGWv3OTdqVHmLKSDNAuqr2v4Exnoiw0ef8xW11uk0LjAWxsrU9f1fuh8tp35s/gzWPsO gpFSw6ngWCdJx7/YczM2EhQSJiNtPmUwc4uudmVoeYgXB4DshF3+/pYjTtvI012usuTh5E7OqIrw9 cZ4OKB80Vtxf2CI1JIBI+Z012ULdbtKxiZ2YP2taGzgz8PxbqxGzsqt3C2BFjyy76pAUVwsvaU2s1 60EPAz8x9KlmJMe9KsIaJNc2VKZtZSCrmlNi5dxTsYetxddDlBc4EyhUI+KqS+ypNIItu16hSiI6U RnEGYPqg==; 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 1cjkmA-0007W3-21; Fri, 03 Mar 2017 10:49:30 +0000 Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cjklM-0006qT-8V for linux-arm-kernel@lists.infradead.org; Fri, 03 Mar 2017 10:48:42 +0000 Received: by mail-pf0-x242.google.com with SMTP id j5so9616177pfb.3 for ; Fri, 03 Mar 2017 02:48:19 -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=BSusmxxOslefaKF1oXM7doy/o6oTIKzxogL3cKVsKSsr426L6Pq93uYRYgv/NrSh+8 YPI6NcpHOWMDgKe34BlHdz19IxQPfG5XXs87wjsUnqZ5jx0iHPO3iYC4Dv3oWxEEWkNu BlrO8QKL7Np7RGfniyC+j9b3c/82n2IS6L9TsRJ8Vn5yfOBbk232TxTETQMy/WV+YzKn wBb63fomP7CIDFgg3juQj7y0ghOlUnKtTmHPfB7gbS4yM3Kr45uJj3wKuswEmfGE4/gY VXkUAJxQZreARimarkXKPegCGFuiRVqJl2VF+w6/fv9FKx1Pt3hhLbACnSODC/NymJD2 YpkQ== 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=T26usHo9lP4KQa6o0khq7UGPchhk1Szi7aVP1JVowB1/nMlL1EvpH5sXRNutveMBcK colV1P4ay46W3Uoo19zu6pJPHyTWthcWHWNmDXNQXh1RMD6x8bTod6HS90asYkV3/Xc2 ua8X+mJq4Hw9Yr/mp/R+idfFErOK9Op4GtvqmEQ77WJuTBsK3NFc/V0BKbK0vqV2/AG0 nVtfRWhcAj6QTreYa9dNbmeJGgGx2QYKr5m8oA9cXJaBvyuFwUCFbiANPTPFluwTTkpK pTkm52Ppa1o4l/sRED6yff/QN62wwJmEtjROuLDnROU43dLqgntHrlYd4O+O/waWSTmo I6SA== X-Gm-Message-State: AMke39mE3DyzprCfS0V2PN5sIUZqbsMJuK+DAi0BpXHMmocPNsNxRH4NJfMprI+r3uUaWw== X-Received: by 10.84.128.100 with SMTP id 91mr3344229pla.94.1488538099528; Fri, 03 Mar 2017 02:48:19 -0800 (PST) Received: from machine421.in.caveonetworks.com ([14.140.2.178]) by smtp.googlemail.com with ESMTPSA id 78sm22609431pfm.122.2017.03.03.02.48.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Mar 2017 02:48:18 -0800 (PST) From: sunil.kovvuri@gmail.com To: netdev@vger.kernel.org Subject: [PATCH 2/4] net: thunderx: Fix LMAC mode debug prints for QSGMII mode Date: Fri, 3 Mar 2017 16:17:48 +0530 Message-Id: <1488538070-12549-3-git-send-email-sunil.kovvuri@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1488538070-12549-1-git-send-email-sunil.kovvuri@gmail.com> References: <1488538070-12549-1-git-send-email-sunil.kovvuri@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170303_024840_416955_96E793DA X-CRM114-Status: UNSURE ( 9.16 ) 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: