Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3924673pxj; Mon, 21 Jun 2021 09:29:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/QI3W35Yc85IOI6r0wdPDha+lbw3pt5jSTefEtNEND1ymd5T1Uf5WVMTIYVHqX2AVm6+T X-Received: by 2002:a17:906:3a8e:: with SMTP id y14mr25807846ejd.153.1624292970528; Mon, 21 Jun 2021 09:29:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624292970; cv=none; d=google.com; s=arc-20160816; b=nU2l9c8lkgEC2Y4TowFebGO3nqQn/F8rUqxtO8CBRsEsrF2kzh8tNWhk/4XiO2EYKh s+xA/i8ZCmnI+mNaGxCtKqDBLjvi9IiWWwKb9nz8W/rN2pEF1OMPhMMJ/uY2GYrV1zK/ qXq9KuTT1SABJqo1mbiKEvYm+G8xYhV/QabNQX7LdZTx3/Q8N4O4fLKqd+BZgudts5/v bH2Gj7g0JKqsWt1lokLe+9ZfC6YFK3iixLLW11CG9H1uRb/hGAURAjLcMB4uo0Mh/skx tdaD1awg16TepIt9ksn8rfcCfQD7uKjgwP+HVtef1ybs+fzrvG/eRrsCaYelIBiE8SxS bmYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=3rtW0NvoPyT7NljCU0OrnesxJjK5NUYPGc/TLI5Mwac=; b=GAsbPYLlZ7+UKJYuH2bfrM/OHUJPyV3rCELXB7g1TyHpxRhmqtU3Jr/rf7kK6G3aTf whDWksBwvianOpyroKrrM9hWeCER0SZn4bVM9YP/NvSXjE5Djttl/0zIonRC1LDnt4La xQfGz9GQr9GGisjE53TbMO4fajJoISX5gysH4Ikdont6hBCwiPHKe7k9xnmeojiK+M1h dciaUDAoILpkK/hRc/CGQRmJUmDq5Hl/9O6gnufkyswtPY0vAkIPdrPpd0tEONzKW0Uk sLujxwVzKXe1y1/y7Tu5/iYHG0zOD/oB97lEpAKbAshMelQ61z2lqZ5Ip41dOD5wJyxU UBDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=S4GYVCGZ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bh4si12286286ejb.56.2021.06.21.09.29.08; Mon, 21 Jun 2021 09:29:30 -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=@linuxfoundation.org header.s=korg header.b=S4GYVCGZ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232217AbhFUQa1 (ORCPT + 99 others); Mon, 21 Jun 2021 12:30:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:49598 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231416AbhFUQ2p (ORCPT ); Mon, 21 Jun 2021 12:28:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6E9EA613EE; Mon, 21 Jun 2021 16:23:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1624292625; bh=SNPrWWU3RGte8LAj5aYKfwS7X/DcWkB5HPd9raGVCdE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S4GYVCGZbqOfSqDg1H5Ze755jtaf3maIBEdwz3qddUSX9UaOcy7qr0HfnHgQ5BRX2 /L2kCUJEjZskdUvtMt3Vj0jeOpkmhZu0JTOcaFST/ZBii9S+1zzCzVKSzXb3Vh2XBj /Km0Q8ehrJDm2oilFzeLCBwpke8OT3H8CGrRrNQk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michael Chan , "David S. Miller" , Sasha Levin Subject: [PATCH 5.10 069/146] bnxt_en: Rediscover PHY capabilities after firmware reset Date: Mon, 21 Jun 2021 18:14:59 +0200 Message-Id: <20210621154915.212358007@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210621154911.244649123@linuxfoundation.org> References: <20210621154911.244649123@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Michael Chan [ Upstream commit 0afd6a4e8028cc487c240b6cfe04094e45a306e4 ] There is a missing bnxt_probe_phy() call in bnxt_fw_init_one() to rediscover the PHY capabilities after a firmware reset. This can cause some PHY related functionalities to fail after a firmware reset. For example, in multi-host, the ability for any host to configure the PHY settings may be lost after a firmware reset. Fixes: ec5d31e3c15d ("bnxt_en: Handle firmware reset status during IF_UP.") Signed-off-by: Michael Chan Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c index adfaa9a850dd..70c03c156e00 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c @@ -11353,6 +11353,8 @@ static void bnxt_fw_init_one_p3(struct bnxt *bp) bnxt_hwrm_coal_params_qcaps(bp); } +static int bnxt_probe_phy(struct bnxt *bp, bool fw_dflt); + static int bnxt_fw_init_one(struct bnxt *bp) { int rc; @@ -11367,6 +11369,9 @@ static int bnxt_fw_init_one(struct bnxt *bp) netdev_err(bp->dev, "Firmware init phase 2 failed\n"); return rc; } + rc = bnxt_probe_phy(bp, false); + if (rc) + return rc; rc = bnxt_approve_mac(bp, bp->dev->dev_addr, false); if (rc) return rc; -- 2.30.2