From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DA95EC43603 for ; Tue, 17 Dec 2019 20:17:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A33822176D for ; Tue, 17 Dec 2019 20:17:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576613861; bh=CX09ACSy+ujDPWvoi8qHy2pMKluoG/nigOQ/yiAg414=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=Zcec+PmdnD7HAev3UWpJDrXYKbJqtKyceLVyu8fs4GNJJMSOmhNr0lC0xbEpXXIdo 2Wt9qytUWfaSwWlNdDaZDWFqDoZvTp930ZJU/uChH8+rGt9tnnXs64uk70OHE67WiU itC0dHLTEzahbstLrGEVOmr7ghVK8KCP9fcaVB3I= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728901AbfLQURk (ORCPT ); Tue, 17 Dec 2019 15:17:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:42052 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728856AbfLQURa (ORCPT ); Tue, 17 Dec 2019 15:17:30 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5C6CD21D7D; Tue, 17 Dec 2019 20:17:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576613849; bh=CX09ACSy+ujDPWvoi8qHy2pMKluoG/nigOQ/yiAg414=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mXO229rkGouvSi3HxJUDWbnj/qVCiiUqPEXf/zyLv4LoMQXDoKXLbnmlcAGMgzEmC 2PwCnJUHkqI8Z8JvrPXtGAMioANiZpTUlm9MPYuERJiFIy0ZiQXAdCPyej8ggegORD /As5ywQy0B7U57lLBOxVNaSvTDvvyFZrlKIUbZ9k= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mian Yousaf Kaukab , Andrew Lunn , "David S. Miller" Subject: [PATCH 5.3 08/25] net: thunderx: start phy before starting autonegotiation Date: Tue, 17 Dec 2019 21:16:07 +0100 Message-Id: <20191217200907.200839480@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191217200903.179327435@linuxfoundation.org> References: <20191217200903.179327435@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mian Yousaf Kaukab [ Upstream commit a350d2e7adbb57181d33e3aa6f0565632747feaa ] Since commit 2b3e88ea6528 ("net: phy: improve phy state checking") phy_start_aneg() expects phy state to be >= PHY_UP. Call phy_start() before calling phy_start_aneg() during probe so that autonegotiation is initiated. As phy_start() takes care of calling phy_start_aneg(), drop the explicit call to phy_start_aneg(). Network fails without this patch on Octeon TX. Fixes: 2b3e88ea6528 ("net: phy: improve phy state checking") Signed-off-by: Mian Yousaf Kaukab Reviewed-by: Andrew Lunn Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/cavium/thunder/thunder_bgx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/ethernet/cavium/thunder/thunder_bgx.c +++ b/drivers/net/ethernet/cavium/thunder/thunder_bgx.c @@ -1115,7 +1115,7 @@ static int bgx_lmac_enable(struct bgx *b phy_interface_mode(lmac->lmac_type))) return -ENODEV; - phy_start_aneg(lmac->phydev); + phy_start(lmac->phydev); return 0; }