Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932978AbcLHWtK (ORCPT ); Thu, 8 Dec 2016 17:49:10 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:35789 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932401AbcLHWtI (ORCPT ); Thu, 8 Dec 2016 17:49:08 -0500 MIME-Version: 1.0 In-Reply-To: <20161207090610.GB14742@kroah.com> References: <1481076574-54711-1-git-send-email-christopher.lee.bostic@gmail.com> <20161207090610.GB14742@kroah.com> From: Christopher Bostic Date: Thu, 8 Dec 2016 16:49:06 -0600 Message-ID: Subject: Re: [PATCH 04/16] drivers/fsi: Add fsi master definition To: Greg KH Cc: Rob Herring , Mark Rutland , linux@armlinux.org.uk, sre@kernel.org, Michael Turquette , geert+renesas@glider.be, Open List OF Flattened dev tree bindings , "Moderated list: ARM PORT" , Jeremy Kerr , Joel Stanley , Linux open list , Andrew Jeffery , Alistair Popple , Benjamin Herrenschmidt , Chris Bostic Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1038 Lines: 38 On Wed, Dec 7, 2016 at 3:06 AM, Greg KH wrote: > On Tue, Dec 06, 2016 at 08:09:30PM -0600, Chris Bostic wrote: >> From: Jeremy Kerr >> >> Signed-off-by: Jeremy Kerr >> Signed-off-by: Chris Bostic >> --- >> drivers/fsi/fsi-core.c | 20 ++++++++++++++++++++ >> drivers/fsi/fsi-master.h | 37 +++++++++++++++++++++++++++++++++++++ >> 2 files changed, 57 insertions(+) >> create mode 100644 drivers/fsi/fsi-master.h >> >> diff --git a/drivers/fsi/fsi-core.c b/drivers/fsi/fsi-core.c >> index 3d55bd5..ce9428d 100644 >> --- a/drivers/fsi/fsi-core.c >> +++ b/drivers/fsi/fsi-core.c >> @@ -17,6 +17,26 @@ >> #include >> #include >> >> +#include "fsi-master.h" >> + >> +static atomic_t master_idx = ATOMIC_INIT(-1); > > You don't really want/need an atomic variable, please use the simple ida > interface instead. Greg, Will make the change to simple ida interface. Thanks for your feedback, Chris > > thanks, > > greg k-h