Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2710880pxj; Mon, 31 May 2021 08:50:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTcz1WXr6fzw69Ay9CrZ6dQgmeHhhuUNDGpDyGGsoPa1u6TjYlKoquwaRsnmioQB/70Adb X-Received: by 2002:a17:907:d92:: with SMTP id go18mr5685749ejc.317.1622476201028; Mon, 31 May 2021 08:50:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622476201; cv=none; d=google.com; s=arc-20160816; b=BdBMXfOPIFTMqIcFqHm4O7dPL4tF8zeN6w1BB1o8fJhpxIYFCgn52Iv4+X/Cz4ZXHc 8SKo9D+Ts8P0DH3gXGryVr+TBZcsHqD66Ovn9k6GxC2fc2a8aBFhTUScwSeF7zBkSim/ OznP7cTo7b2sHbgCdkFuoR5kw1/Zk78hcU/XHFZ9Q1ZnsPceQICSVi+k7K3fB14mZKot hW+80AKr4HhZReKxtY7nr7879rLMqpHUedrC8VzlVVcKtPeaO4FwHTAiPNBajzKsMfZr zYVLisy2jX5dici4OwyeuNJybbEb1Q/nx9qTigmOOeLj5JxbWjG/FN9tWWUsVBImtUD9 3N1A== 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=Cvg6COvOS7TELId6Q6OV38PUKFw8l+BO/PwEjpNHPTU=; b=wUTcD+g7KlTa0Zr6EMuFziWpe/GIvX8aApqXm3SsuVEEK4eCQY2PYpF8IS88PKVzto fHOmHTQxRZl9PAv2lLuRz+ppJYE+Up8UPxLIBIq8ciM8KUjgCe1kQfgrZpDciQI9YnxA mnohVqKbUIgEDmhpDRiX+S1Q7hvzgDPJ1mFdxWRb/7GnsFKHn+FAM/D4RJqnJ9M5xXqn 8tSd5W99uFyHCo/r+c2894AH3zUJHt+LDCrgm98I5y08MMgjdgDtMCNWPyJJVdmQdoGs LL+ViafSN268rM+HqHb+u1ASr/+jW9sWvRHjZVdjSjFgMnUIuSzYeR5A0m33JrgdEQSz VOrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KQ4fyeJO; 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 t26si12723947ejd.446.2021.05.31.08.49.38; Mon, 31 May 2021 08:50:01 -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=KQ4fyeJO; 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 S232321AbhEaPuN (ORCPT + 99 others); Mon, 31 May 2021 11:50:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:56026 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232207AbhEaO1U (ORCPT ); Mon, 31 May 2021 10:27:20 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B13CD61580; Mon, 31 May 2021 13:47:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468845; bh=ZtNbghQJWtGQ8zRd12zVBehEKh1SjBVfofXe2nlYLeg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KQ4fyeJOMLsC9KxE1JMCkrDTzH1RaFDlwH6tOzfEeMY9noI0++RECVM4lT5RZFb+2 LaTTAKswGzgvnFyXFXspDCFZE3p4WPjrlMBplBLBdmt6ZiMXEDjqB8ymHx3L95gv40 hB+AxLdkFPVvMRYfCsBmrEnrvcSJFknvEqMcEgPk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Edwin Peer , Andy Gospodarek , Michael Chan , "David S. Miller" , Sasha Levin Subject: [PATCH 5.4 150/177] bnxt_en: Include new P5 HV definition in VF check. Date: Mon, 31 May 2021 15:15:07 +0200 Message-Id: <20210531130653.114045445@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130647.887605866@linuxfoundation.org> References: <20210531130647.887605866@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: Andy Gospodarek [ Upstream commit ab21494be9dc7d62736c5fcd06be65d49df713ee ] Otherwise, some of the recently added HyperV VF IDs would not be recognized as VF devices and they would not initialize properly. Fixes: 7fbf359bb2c1 ("bnxt_en: Add PCI IDs for Hyper-V VF devices.") Reviewed-by: Edwin Peer Signed-off-by: Andy Gospodarek Signed-off-by: Michael Chan Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c index 106f2b2ce17f..0dba28bb309a 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c @@ -280,7 +280,8 @@ static bool bnxt_vf_pciid(enum board_idx idx) { return (idx == NETXTREME_C_VF || idx == NETXTREME_E_VF || idx == NETXTREME_S_VF || idx == NETXTREME_C_VF_HV || - idx == NETXTREME_E_VF_HV || idx == NETXTREME_E_P5_VF); + idx == NETXTREME_E_VF_HV || idx == NETXTREME_E_P5_VF || + idx == NETXTREME_E_P5_VF_HV); } #define DB_CP_REARM_FLAGS (DB_KEY_CP | DB_IDX_VALID) -- 2.30.2