Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4823325pxj; Wed, 9 Jun 2021 02:44:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwte6IrKLnVXJUcWoHH1jXQmqPN7jh6UO14tMs1Gh/D9frDFV1eeRZJ7g1OKoFFIG2eTHby X-Received: by 2002:a5d:9694:: with SMTP id m20mr21953823ion.185.1623231890230; Wed, 09 Jun 2021 02:44:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623231890; cv=none; d=google.com; s=arc-20160816; b=EBV1Cmt5l4xWahoq8iXKYVwtSz/wLO3OzeqYjpEhg/j5BJtriRtIMJWZ3TiXJn5iy8 f98EXv/T+Dqs0I9I3dK3b+Bc9fNLayg+0wspi7yKOs+hmeO1zU7GoFlCHzSpW8z+e2YC yQhtD7r8ur2+rY/c1fsBwQSjSK7G7d5EfvxJzBSVOg2+bwPGRliJ2VjBxSz3J2VBgYix 47Kt16EdNHgEx8qNYW5zY2plFyb+KJ2+JJtc7DUV/wiCZH0d2tF3bNoT/qyREboGW4WR RukRvyBmGElmHxsE8wmhl/HNSBU1xqgfIPckG7gkGe7mEOe8/3gZHnHZk5iGE9BzygM3 rhrA== 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=rSiFqewwYNFpwxC5WPiB4bOY3Z0s5apl3ERqkNzZfpo=; b=ZMTlUVT/IxwdZMzFIDAZ447xYNlNr//rUmUdPwISgVvVniopCZ55qoTbCbdTPetIJy i0VASYTvVuzNMFuvfOB9c97Hzh5svpO7k3z1ghjhzc8eDoGwDyxw3H/hgSjMXIa7YcpO r4trsH/Ho0r69iknsj2jxMqPIz/vp8/q3GfXijuEraRt7lEFJXllDIsdB3fH8ExcAjkC ICDg4sThlTWxYnL2majI/0AmUVRIYG4al7jmbwIg21F1a6IxMcuvQpe5ocuz5DHg1QjS Y3Y//hZqSwwkmlETVp4TTxLKLtBGTe4VTmoX3F/RH65vxKdEFVDPHjlXRuSCuOx+iAz6 6EJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Ol0OMuoK; 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 i10si2855821ioo.56.2021.06.09.02.44.38; Wed, 09 Jun 2021 02:44:50 -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=Ol0OMuoK; 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 S235567AbhFHSo1 (ORCPT + 99 others); Tue, 8 Jun 2021 14:44:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:37490 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234451AbhFHSkI (ORCPT ); Tue, 8 Jun 2021 14:40:08 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9986461437; Tue, 8 Jun 2021 18:34:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623177266; bh=yPtKWMWo7kM/5S8rQ6Z4ur1Kt93A49PMqdCvRwMRGAo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ol0OMuoKje3/5b2EZO5bKyxp9R8z7kjbbp/HKmpjD56UuSgFYp/0GgvPdZpjNu9G3 tG5Syg6uts1v9jzGwmtngzqv4+eMAiAZlfkBLrnlONYPljdBPTigUGIsTnTNBUOhgh 4zGq1obQAOrgEvGNOAYM8BN9hjaxd/QmgBKbiXME= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michael Chan , "David S. Miller" , Krzysztof Kozlowski Subject: [PATCH 4.19 49/58] bnxt_en: Remove the setting of dev_port. Date: Tue, 8 Jun 2021 20:27:30 +0200 Message-Id: <20210608175933.892776465@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210608175932.263480586@linuxfoundation.org> References: <20210608175932.263480586@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 commit 1d86859fdf31a0d50cc82b5d0d6bfb5fe98f6c00 upstream. The dev_port is meant to distinguish the network ports belonging to the same PCI function. Our devices only have one network port associated with each PCI function and so we should not set it for correctness. Signed-off-by: Michael Chan Signed-off-by: David S. Miller Signed-off-by: Krzysztof Kozlowski Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c @@ -5252,7 +5252,6 @@ static int __bnxt_hwrm_func_qcaps(struct pf->fw_fid = le16_to_cpu(resp->fid); pf->port_id = le16_to_cpu(resp->port_id); - bp->dev->dev_port = pf->port_id; memcpy(pf->mac_addr, resp->mac_address, ETH_ALEN); pf->first_vf_id = le16_to_cpu(resp->first_vf_id); pf->max_vfs = le16_to_cpu(resp->max_vfs);