All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Madhusudhan Chikkature" <madhu.cr@ti.com>
Cc: tony@atomide.com, johnpol@2ka.mipt.ru, felipe.balbi@nokia.com,
	linux-omap@vger.kernel.org
Subject: Re: [PATCH 7/9]HDQ driver:replace semaphore with mutex
Date: Wed, 24 Sep 2008 18:30:22 +0530	[thread overview]
Message-ID: <020a01c91e45$838ecb80$LocalHost@wipultra1303> (raw)
In-Reply-To: 20080924115031.GO24627@gandalf.research.nokia.com


----- Original Message ----- 
From: "Felipe Balbi" <felipe.balbi@nokia.com>
To: "ext Madhusudhan Chikkature" <madhu.cr@ti.com>
Cc: <tony@atomide.com>; <johnpol@2ka.mipt.ru>; <felipe.balbi@nokia.com>; <linux-omap@vger.kernel.org>
Sent: Wednesday, September 24, 2008 5:20 PM
Subject: Re: [PATCH 7/9]HDQ driver:replace semaphore with mutex


> On Wed, Sep 24, 2008 at 05:01:27PM +0530, ext Madhusudhan Chikkature wrote:
>> From: Madhusudhan Chikkature<madhu.cr@ti.com>
>> 
>> This patch replaces the usage of semaphore by mutex.
>> 
>> Signed-off-by: Madhusudhan Chikkature<madhu.cr@ti.com>
>> ---
>>  drivers/w1/masters/omap_hdq.c |   42 ++++++++++++++++++++++--------------------
>>  1 files changed, 22 insertions(+), 20 deletions(-)
>> 
>> Index: linux-omap-2.6/drivers/w1/masters/omap_hdq.c
>> ===================================================================
>> --- linux-omap-2.6.orig/drivers/w1/masters/omap_hdq.c 2008-09-24
>> 11:13:12.000000000 +0530
>> +++ linux-omap-2.6/drivers/w1/masters/omap_hdq.c 2008-09-24 11:49:45.000000000
>> +0530
>> @@ -55,7 +55,7 @@ static int w1_id;
>>  struct hdq_data {
>>  struct device *dev;
>>  void __iomem *hdq_base;
>> - struct semaphore hdq_semlock;
>> + struct  mutex hdq_mutex;
>>  int hdq_usecount;
>>  struct clk *hdq_ick;
>>  struct clk *hdq_fck;
> 
> Please, fix these two:
> 
> CHECK: struct  mutex definition without comment
> #58: FILE: w1/masters/omap_hdq.c:58:
> + struct  mutex hdq_mutex;
> 
> CHECK: spinlock_t definition without comment
> #63: FILE: w1/masters/omap_hdq.c:63:
> + spinlock_t hdq_spinlock;
> 
> total: 0 errors, 0 warnings, 2 checks, 732 lines checked

I dont see any such checks reported by checkpatch.pl?

Regards,
Madhu
> 
> -- 
> balbi
> 
>

  reply	other threads:[~2008-09-24 13:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-24 11:31 [PATCH 7/9]HDQ driver:replace semaphore with mutex Madhusudhan Chikkature
2008-09-24 11:50 ` Felipe Balbi
2008-09-24 13:00   ` Madhusudhan Chikkature [this message]
2008-09-24 13:05     ` Gadiyar, Anand
2008-09-24 13:17       ` Madhusudhan Chikkature
2008-09-24 23:01       ` Felipe Balbi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='020a01c91e45$838ecb80$LocalHost@wipultra1303' \
    --to=madhu.cr@ti.com \
    --cc=felipe.balbi@nokia.com \
    --cc=johnpol@2ka.mipt.ru \
    --cc=linux-omap@vger.kernel.org \
    --cc=tony@atomide.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.