linux-mips
[Top] [All Lists]

Re: [rtc-linux] [PATCH 3/4] rtc: Add rtc-tx4939 driver

To: alessandro.zummo@towertech.it
Subject: Re: [rtc-linux] [PATCH 3/4] rtc: Add rtc-tx4939 driver
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Fri, 21 Nov 2008 12:38:56 +0900 (JST)
Cc: rtc-linux@googlegroups.com, linux-mips@linux-mips.org, ralf@linux-mips.org
In-reply-to: <20081120172138.2de2da58@i1501.lan.towertech.it>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20081120164533.73ba1f7f@i1501.lan.towertech.it> <20081121.011744.103777651.anemo@mba.ocn.ne.jp> <20081120172138.2de2da58@i1501.lan.towertech.it>
Sender: linux-mips-bounce@linux-mips.org
On Thu, 20 Nov 2008 17:21:38 +0100, Alessandro Zummo 
<alessandro.zummo@towertech.it> wrote:
> > It is used to protect sysfs nvram access from rtc ops.
> > 
> > Hm, can I use rtc->ops_lock in sysfs read/write routine to achieve it?
> 
>  it should be doable, rtc-ds1305 uses it

But ops_lock is mutex, so it cannot protect from an interrupt handler.
I will try rtc->irq_lock.

---
Atsushi Nemoto

<Prev in Thread] Current Thread [Next in Thread>