Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp4877029pjb; Mon, 27 Jul 2020 07:24:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtt/xH3UMS0nVltDQ76g9zwrTClNW5Du80Zikp0udQ6PoctlzVceyhNuBoMbjuLhdfI/rT X-Received: by 2002:a17:906:270d:: with SMTP id z13mr21131237ejc.281.1595859847823; Mon, 27 Jul 2020 07:24:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595859847; cv=none; d=google.com; s=arc-20160816; b=JZ3tD+RubsA02FVS3ZtC7xq1WVduP/JCJEF75UJQ/iodIAdkrwhJP09wLkVvv0VeBa iW9zffackdF7IlLsuCT1FjesXjHTcMmmxzQOkZ0M99TE/iIy/amtao5QCO6WANNwazTj OVQzjrngEI1IQjQFdUpdHXg98y1QPizPOmiEnt7FVKKhmG/zwSqx3FAUMsrY2bEZ6tYO rv4c6lRaMoqELi6yLizRCMZE1RxWrciK5C7M6SYYYjooA3Tz90p9NjvFQl7+K3y2Zqk1 THm4qsNrd6iytDUSnzfzriT+PwH1y5Ev5O1xsiQlJuw7gG4u8FFmwf0FI0+n4mz1IgK1 uVfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=4JCs0DnsqZFqG5r6/etuweZye8guY/A7eWTBdQHhqe4=; b=FryU9C3QxjIXcqmsslyD4gUhVfxZdNHsghljsPZ4QPNgswhHdo8CPgtcLU/wfGhE6C N1+5HiJQ1h4nxgjhKv9ZDNCQYgI8W3F2vnUy7SgdhYE1kDOUO0lo0J5+B3ZZ4R6AuNu9 IBWLwL9MkpxVmfZgc6hBCwreUSsJvAFRznk71COHwTjBHWjpdQzIoBZqdNOYpnF81fnK ua6lcOzqlDaxirpn8EJvOlG8OuvFjvr2p2B0GcwafNwIWn/y3x9qCLTNq06uQGVR9PAG Uyso16R3g4tbOI2j+JpXj5UO0cGRJFZaCM/HnyCmcuFySf7+GVtl04tOswls87Mxv52V ZnQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0X2CU7cX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a90si5219012edf.486.2020.07.27.07.23.45; Mon, 27 Jul 2020 07:24:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0X2CU7cX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731571AbgG0OUf (ORCPT + 99 others); Mon, 27 Jul 2020 10:20:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:48798 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731556AbgG0OUb (ORCPT ); Mon, 27 Jul 2020 10:20:31 -0400 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 BDD6A2070A; Mon, 27 Jul 2020 14:20:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595859630; bh=AjMYgoWuwLdnddB2k/SjLHWHh4EXgQvwQv/pxzTpU/A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0X2CU7cXDG4GMj/Ggo7QUbUI9Y5TOik/aoMCW7iqgw+6YRu4uHkT4zYuoWf32Pd0i qmzBMG6wGu+Tta+IzsKffaydGpl6SMbq06LBzW55HwURCQV695PHpCN+xvn41CoEbz JX600RXCtTcqorOeHqRJR5voMXws5LuVBLLq6ilc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vasundhara Volam , Michael Chan , "David S. Miller" , Sasha Levin Subject: [PATCH 5.7 044/179] bnxt_en: Init ethtool link settings after reading updated PHY configuration. Date: Mon, 27 Jul 2020 16:03:39 +0200 Message-Id: <20200727134934.826510479@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200727134932.659499757@linuxfoundation.org> References: <20200727134932.659499757@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: Vasundhara Volam [ Upstream commit ca0c753815fe4786b79a80abf0412eb5d52090b8 ] In a shared port PHY configuration, async event is received when any of the port modifies the configuration. Ethtool link settings should be initialised after updated PHY configuration from firmware. Fixes: b1613e78e98d ("bnxt_en: Add async. event logic for PHY configuration changes.") Signed-off-by: Vasundhara Volam Signed-off-by: Michael Chan Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c index b6fb5a1709c01..198bca9c1e2df 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c @@ -10362,15 +10362,15 @@ static void bnxt_sp_task(struct work_struct *work) &bp->sp_event)) bnxt_hwrm_phy_qcaps(bp); - if (test_and_clear_bit(BNXT_LINK_CFG_CHANGE_SP_EVENT, - &bp->sp_event)) - bnxt_init_ethtool_link_settings(bp); - rc = bnxt_update_link(bp, true); - mutex_unlock(&bp->link_lock); if (rc) netdev_err(bp->dev, "SP task can't update link (rc: %x)\n", rc); + + if (test_and_clear_bit(BNXT_LINK_CFG_CHANGE_SP_EVENT, + &bp->sp_event)) + bnxt_init_ethtool_link_settings(bp); + mutex_unlock(&bp->link_lock); } if (test_and_clear_bit(BNXT_UPDATE_PHY_SP_EVENT, &bp->sp_event)) { int rc; -- 2.25.1