RE: [PATCH 3/5] omap:hwspinlock-added hwspinlock driver

2010-08-11 Thread Que, Simon
Nishanth, just a curious question: Is there no h/w spinlock implementation for other architectures in linux? I mean the concept does not seem unique for a heterogenous processor environments now a days.. if it does exist, maybe we have two options: * extend standard spinlock architecture

RE: [PATCH 3/5] omap:hwspinlock-added hwspinlock driver

2010-08-01 Thread Kanigeri, Hari
driver Hari, -Original Message- From: Kanigeri, Hari Sent: Thursday, July 29, 2010 6:44 PM To: Marathe, Yogesh; Premi, Sanjeev; Linux Omap; Tony Lindgren Cc: Shilimkar, Santosh; Cousson, Benoit; Que, Simon Subject: RE: [PATCH 3/5] omap:hwspinlock-added hwspinlock driver

RE: [PATCH 3/5] omap:hwspinlock-added hwspinlock driver

2010-07-30 Thread Marathe, Yogesh
Hari, -Original Message- From: Kanigeri, Hari Sent: Thursday, July 29, 2010 6:44 PM To: Marathe, Yogesh; Premi, Sanjeev; Linux Omap; Tony Lindgren Cc: Shilimkar, Santosh; Cousson, Benoit; Que, Simon Subject: RE: [PATCH 3/5] omap:hwspinlock-added hwspinlock driver Yogesh, Nice

RE: [PATCH 3/5] omap:hwspinlock-added hwspinlock driver

2010-07-29 Thread Kanigeri, Hari
Yogesh, Nice to see your email. +/* Release a spinlock */ +int hwspinlock_unlock(struct hwspinlock *handle) +{ + if (WARN_ON(handle == NULL)) + return -EINVAL; + + /* Release it by writing 0 to it */ + writel(0, handle-lock_reg); [[Yogesh

Re: [PATCH 3/5] omap:hwspinlock-added hwspinlock driver

2010-07-29 Thread Cousson, Benoit
On 7/29/2010 3:14 PM, Kanigeri, Hari wrote: Yogesh, Nice to see your email. +/* Release a spinlock */ +int hwspinlock_unlock(struct hwspinlock *handle) +{ + if (WARN_ON(handle == NULL)) + return -EINVAL; + + /* Release it by writing 0 to it */ + writel(0,

RE: [PATCH 3/5] omap:hwspinlock-added hwspinlock driver

2010-07-29 Thread Kanigeri, Hari
Sanjeev, Thanks for your comments. -Original Message- From: Premi, Sanjeev Sent: Wednesday, July 28, 2010 11:58 AM To: Kanigeri, Hari; Linux Omap; Tony Lindgren Cc: Shilimkar, Santosh; Cousson, Benoit; Que, Simon Subject: RE: [PATCH 3/5] omap:hwspinlock-added hwspinlock driver

Re: [PATCH 3/5] omap:hwspinlock-added hwspinlock driver

2010-07-29 Thread Nishanth Menon
Kanigeri, Hari had written, on 07/19/2010 11:50 AM, the following: From: Simon Que s...@ti.com Created driver for OMAP hardware spinlock. This driver supports: - Reserved spinlocks for internal use - Dynamic allocation of unreserved locks - Lock, unlock, and trylock functions, with or without

RE: [PATCH 3/5] omap:hwspinlock-added hwspinlock driver

2010-07-28 Thread Premi, Sanjeev
-Original Message- From: linux-omap-ow...@vger.kernel.org [mailto:linux-omap-ow...@vger.kernel.org] On Behalf Of Kanigeri, Hari Sent: Monday, July 19, 2010 10:20 PM To: Linux Omap; Tony Lindgren Cc: Shilimkar, Santosh; Cousson, Benoit; Que, Simon; Kanigeri, Hari Subject: [PATCH 3/5]

RE: [PATCH 3/5] omap:hwspinlock-added hwspinlock driver

2010-07-28 Thread Marathe, Yogesh
: [PATCH 3/5] omap:hwspinlock-added hwspinlock driver -Original Message- From: linux-omap-ow...@vger.kernel.org [mailto:linux-omap-ow...@vger.kernel.org] On Behalf Of Kanigeri, Hari Sent: Monday, July 19, 2010 10:20 PM To: Linux Omap; Tony Lindgren Cc: Shilimkar, Santosh; Cousson

RE: [PATCH 3/5] omap:hwspinlock-added hwspinlock driver

2010-07-26 Thread Kanigeri, Hari
, Simon Subject: Re: [PATCH 3/5] omap:hwspinlock-added hwspinlock driver Hi Simon and Hari, On 7/19/2010 6:50 PM, Kanigeri, Hari wrote: From: Simon Ques...@ti.com Created driver for OMAP hardware spinlock. This driver supports: - Reserved spinlocks for internal use - Dynamic allocation

Re: [PATCH 3/5] omap:hwspinlock-added hwspinlock driver

2010-07-24 Thread Cousson, Benoit
Hi Simon and Hari, On 7/19/2010 6:50 PM, Kanigeri, Hari wrote: From: Simon Ques...@ti.com Created driver for OMAP hardware spinlock. This driver supports: - Reserved spinlocks for internal use - Dynamic allocation of unreserved locks - Lock, unlock, and trylock functions, with or without