| To: | Wolfram Sang <w.sang@pengutronix.de> |
|---|---|
| Subject: | Re: [rtc-linux] [PATCH V1] MIPS: Add RTC support for loongson1B |
| From: | zhao zhang <zhzhl555@gmail.com> |
| Date: | Mon, 28 Nov 2011 13:06:33 +0800 |
| Cc: | rtc-linux@googlegroups.com, a.zummo@towertech.it, linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, ralf@linux-mips.org, keguang.zhang@gmail.com, wuzhangjin@gmail.com, r0bertz@gentoo.org, zhzhl555@gmail.com |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=7YKhc0UVSsOfdOiTL8lX03c+St5kuCsz8sxFiZNYKoE=; b=nzMf/Z30ETJC/Xs7sQkMkjPdG0nKUD3VO7kA9YwaOe9mfeoYm04JylFwqVZFsRGM30 ffdvtoQ+wf21L7sGSgp8FexTkQR7/Rs+7x1syXh6b/RV83W6ejcLuRfBpUswcAt8k8u2 gmsPGur1qa/Bh9EyYkmu64ftoO0+KD+/LzCUY= |
| In-reply-to: | <20111127091803.GD5263@pengutronix.de> |
| References: | <1322189527-4761-1-git-send-email-zhzhl555@gmail.com> <20111127091803.GD5263@pengutronix.de> |
| Sender: | linux-mips-bounce@linux-mips.org |
|
1: Here is a polling checking for TOY write status bit. if hardware done, the bit will be cleared. so if hardware has problem, the while loop will be infinite, it can never break out. Does i really need to add timeout checking code although have checked in probe code. 2: Just set the default value, the real return value will be set in the following code. Line 154, err information will be put into dev_err-block. 3: The minor, accept. 4: Because in probe, we can not assume the hardware is OK, so add a counter( v = 0x100000) to avoid infinite loop. 5: a): Since i have checked the RTC timing was OK, and toytrim write status was OK again, so i can sure, the next writing will be OK. b): Just following the Documentation/timers/timers-howto.txt. c): i can make sure. 6: agree. 在 2011年11月27日 下午5:18,Wolfram Sang <w.sang@pengutronix.de>写道:
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH-RFC 02/10] lib: add GENERIC_PCI_IOMAP, Michael S. Tsirkin |
|---|---|
| Next by Date: | Using NFS with HIGHMEM support, Jacky Lam |
| Previous by Thread: | Re: [rtc-linux] [PATCH V1] MIPS: Add RTC support for loongson1B, Wolfram Sang |
| Next by Thread: | [PATCH V3 4/6] MIPS: lantiq: add basic support for FALC-ON, John Crispin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |