Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp5215920ybl; Tue, 27 Aug 2019 00:57:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqyS/lNdzln/97FYV5DuaR0ftnoDiaIwDQePkLT+kDwEK+jOqLWiXmqbvw5TyrXi9qVZyT4J X-Received: by 2002:aa7:9713:: with SMTP id a19mr24691859pfg.64.1566892620561; Tue, 27 Aug 2019 00:57:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566892620; cv=none; d=google.com; s=arc-20160816; b=t7BPTLsNQ1pfOSEYWuDnbPzZ4h8XjJYZGVX6w/MHz9KsK3YlFCM7TzwB/QNJUqB8dm 0vWQV/Quo5I9FppqXsVkR/V8AopT1LKmNllhtTAU6IUVwuafCh+imYIQLSUghkA818wc BC17kZZ+3TjeTGjFvndJsZGgWhh+5cuMTThTjgqWgynMbTOCSWq19/bI9wNDdGLAmV+1 kKSwiwhfY4T2B8mVmnL7zk6u8D0LZs7ZyyWlUPrqleivPiAqoL6Z7rZLWadoa5W9ofjX JnEfDUgpWJ1qUM0OScVSKwSJhDaxTQTWiYM/IvtU0iGMSiD6gsQJ7RPCh2Nz4hgnNqxw Ex7w== 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=XWiNNspbYlarAwy0z6TYr832THVkYWEmyf8m68ZcyNU=; b=uDpn5Tchr/pFQe2E5Aso0yWOqZ1BMfonZuqzCGtr6e/I0/KyS1WeFzC/DlOA04CewR eIx4Xj0ChQxwfm3KgODhiqGwn/+9wW54UheBNjW7ke+HYXs6LrQS6P2iyPz+TxIfeTkP bLPX7zUkgEHZOJl1FY5gqkuRfiQIjUpz9Qwqf01v5fEW81JMV8wPZThIf7ME1O0YAOQB s6ZQPpXtQ0WXLvtwdc2y74Lgikb9dAiB8mpbTLQ6ejyj3FbADNlVtnLvFWLpk/0HO6i5 rFLcAzwuJFmTtqDSAev4PJ6Yeokxn6+O9Hy9DV+mgizOCAmUHCVMig26gM02Idcj8irj xI2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Ee5xcfIO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l70si11146826pge.446.2019.08.27.00.56.45; Tue, 27 Aug 2019 00:57:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Ee5xcfIO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729960AbfH0HyD (ORCPT + 99 others); Tue, 27 Aug 2019 03:54:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:45566 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729361AbfH0Hx7 (ORCPT ); Tue, 27 Aug 2019 03:53:59 -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 1EF3D206BF; Tue, 27 Aug 2019 07:53:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566892438; bh=iIPdtioa6VJqh1JiZmHvzr5AJKPyqSAxW9VvwPEVqYQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ee5xcfIOGfUVtm8CssPtjJ46n4ihz3j6+sWuDJRrLFsTnenqyO25C78PfM+3cig4f uKXbhqBYQZsh5ex0luZCjlJQdjbGVZjSJZtNHQuilu5ompWx7q7g1d3NAE5TwdqJ+C 0LBQOZQjWJNx2NtSDwtEck1rU2fkBfeSLSZGjbOA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michal Kalderon , "David S. Miller" , Sasha Levin Subject: [PATCH 4.14 13/62] qed: RDMA - Fix the hw_ver returned in device attributes Date: Tue, 27 Aug 2019 09:50:18 +0200 Message-Id: <20190827072701.144567158@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190827072659.803647352@linuxfoundation.org> References: <20190827072659.803647352@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 [ Upstream commit 81af04b432fdfabcdbd2c06be2ee647e3ca41a22 ] The hw_ver field was initialized to zero. Return the chip revision. This is relevant for rdma driver. Signed-off-by: Michal Kalderon Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/qlogic/qed/qed_rdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/qlogic/qed/qed_rdma.c b/drivers/net/ethernet/qlogic/qed/qed_rdma.c index 1e13dea66989e..c9258aabca2d4 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_rdma.c +++ b/drivers/net/ethernet/qlogic/qed/qed_rdma.c @@ -398,7 +398,7 @@ static void qed_rdma_init_devinfo(struct qed_hwfn *p_hwfn, /* Vendor specific information */ dev->vendor_id = cdev->vendor_id; dev->vendor_part_id = cdev->device_id; - dev->hw_ver = 0; + dev->hw_ver = cdev->chip_rev; dev->fw_ver = (FW_MAJOR_VERSION << 24) | (FW_MINOR_VERSION << 16) | (FW_REVISION_VERSION << 8) | (FW_ENGINEERING_VERSION); -- 2.20.1