From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:50792 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758298AbcEFRbL (ORCPT ); Fri, 6 May 2016 13:31:11 -0400 Subject: Patch "net/mlx5_core: Fix caching ATOMIC endian mode capability" has been added to the 4.5-stable tree To: leonro@mellanox.com, dledford@redhat.com, gregkh@linuxfoundation.org, saeedm@mellanox.com Cc: , From: Date: Fri, 06 May 2016 12:30:39 -0400 Message-ID: <146255223952244@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org List-ID: This is a note to let you know that I've just added the patch titled net/mlx5_core: Fix caching ATOMIC endian mode capability to the 4.5-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: net-mlx5_core-fix-caching-atomic-endian-mode-capability.patch and it can be found in the queue-4.5 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >>From 91d9ed8443b88cc50b81cf5ec900172515270f6f Mon Sep 17 00:00:00 2001 From: Leon Romanovsky Date: Tue, 23 Feb 2016 10:25:21 +0200 Subject: net/mlx5_core: Fix caching ATOMIC endian mode capability From: Leon Romanovsky commit 91d9ed8443b88cc50b81cf5ec900172515270f6f upstream. Add caching of maximum device capability of ATOMIC endian mode. Fixes: f91e6d8941bf ('net/mlx5_core: Add setting ATOMIC endian mode') Signed-off-by: Leon Romanovsky Reviewed-by: Saeed Mahameed Signed-off-by: Doug Ledford Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/mellanox/mlx5/core/main.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/drivers/net/ethernet/mellanox/mlx5/core/main.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/main.c @@ -423,6 +423,10 @@ static int handle_hca_cap_atomic(struct HCA_CAP_OPMOD_GET_CUR); if (err) return err; + err = mlx5_core_get_caps(dev, MLX5_CAP_ATOMIC, + HCA_CAP_OPMOD_GET_MAX); + if (err) + return err; } else { return 0; } Patches currently in stable-queue which might be from leonro@mellanox.com are queue-4.5/net-mlx5_core-fix-caching-atomic-endian-mode-capability.patch