From patchwork Sat Mar 27 23:43:57 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcelo Roberto Jimenez X-Patchwork-Id: 48762 Return-Path: <3V5iuSwAACekceN-WTYfiRZZRWPRcZfad.NZX@groups.bounces.google.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-gx0-f201.google.com (mail-gx0-f201.google.com [209.85.217.201]) by ozlabs.org (Postfix) with ESMTP id F01F2B7CF5 for ; Sun, 28 Mar 2010 10:44:25 +1100 (EST) Received: by gxk25 with SMTP id 25sf16749876gxk.16 for ; Sat, 27 Mar 2010 16:44:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:mime-version:x-beenthere:received :received:received:received:received-spf:received:received:received :from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-original-authentication-results:x-original-sender:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :x-thread-url:x-message-url:sender:list-subscribe:list-unsubscribe :content-type; bh=HD2ADGx91+jI0gKvt6kJnErWtLnTvPjAlnrBb0ENtlk=; b=YHNWiVazi2aGt3Y28GzmQuOtfOfEwb2gLz56s2prmeAkH9rlxFTcmOHfwjNTAo28Xc CZWkrJ5YCFuq56GQU2gktnILCjqKqxNbyHdqMWejxQXE+NqIhwGPF9W0WRZxRWTknszW R2jJAOFThbHOtvKG8MjPCXMc/s5Zj4RM6AgrI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=mime-version:x-beenthere:received-spf:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references :x-original-authentication-results:x-original-sender:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :x-thread-url:x-message-url:sender:list-subscribe:list-unsubscribe :content-type; b=H67s+TzDV4VyTb49Gis+jcTxfloXF9fDk9e/NHFkN+BzG1douwI3aI6kOJ+jrTQfYG 9o9Df+Kg59TzchAwPccyXFUCQ9owmqGDKYhWDc9JlcytC4+IP7Ssh/sRYtlqqqaKDf8K Fh4WrfI8QRO+Oh/QKTh45CJU7pca5EDS7jjTs= Received: by 10.91.90.9 with SMTP id s9mr209611agl.13.1269733463302; Sat, 27 Mar 2010 16:44:23 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.91.91.8 with SMTP id t8ls329218agl.2.p; Sat, 27 Mar 2010 16:44:22 -0700 (PDT) Received: by 10.90.20.28 with SMTP id 28mr367113agt.7.1269733461797; Sat, 27 Mar 2010 16:44:21 -0700 (PDT) Received: by 10.90.20.28 with SMTP id 28mr367112agt.7.1269733461772; Sat, 27 Mar 2010 16:44:21 -0700 (PDT) Received: from mail-yw0-f200.google.com (mail-yw0-f200.google.com [209.85.211.200]) by gmr-mx.google.com with ESMTP id 18si231473ywh.9.2010.03.27.16.44.21; Sat, 27 Mar 2010 16:44:21 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.211.200 is neither permitted nor denied by best guess record for domain of mroberto@cpti.cetuc.puc-rio.br) client-ip=209.85.211.200; Received: by ywh38 with SMTP id 38so5301451ywh.29 for ; Sat, 27 Mar 2010 16:44:21 -0700 (PDT) Received: by 10.100.235.23 with SMTP id i23mr4937202anh.190.1269733461239; Sat, 27 Mar 2010 16:44:21 -0700 (PDT) Received: from localhost.localdomain ([139.82.178.36]) by mx.google.com with ESMTPS id 13sm1545698gxk.0.2010.03.27.16.44.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 27 Mar 2010 16:44:20 -0700 (PDT) From: Marcelo Roberto Jimenez To: mroberto@cpti.cetuc.puc-rio.br, rtc-linux@googlegroups.com, Alessandro Zummo Cc: linux@arm.linux.org.uk Subject: [rtc-linux] [PATCH 2/4] ARM: mach-sa1100: Print the value of RTSR on /proc/drivers/rtc. Date: Sat, 27 Mar 2010 20:43:57 -0300 Message-Id: <1269733439-11047-2-git-send-email-mroberto@cpti.cetuc.puc-rio.br> X-Mailer: git-send-email 1.7.0.3 In-Reply-To: <1269733439-11047-1-git-send-email-mroberto@cpti.cetuc.puc-rio.br> References: <1269733439-11047-1-git-send-email-mroberto@cpti.cetuc.puc-rio.br> X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 209.85.211.200 is neither permitted nor denied by best guess record for domain of mroberto@cpti.cetuc.puc-rio.br) smtp.mail=mroberto@cpti.cetuc.puc-rio.br X-Original-Sender: mroberto@cpti.cetuc.puc-rio.br Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: X-Thread-Url: http://groups.google.com/group/rtc-linux/t/67769b1e7a249b3f X-Message-Url: http://groups.google.com/group/rtc-linux/msg/84f9a7bc2b4a41b Sender: rtc-linux@googlegroups.com List-Subscribe: , List-Unsubscribe: , This patch adds a line to the output of /proc/drivers/rtc to show the value of the RTSR register. It will be used to demonstrate a nasty initialization bug that will be fixed in the sequence. Signed-off-by: Marcelo Roberto Jimenez --- drivers/rtc/rtc-sa1100.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/rtc/rtc-sa1100.c b/drivers/rtc/rtc-sa1100.c index e19ed0f..b04c837 100644 --- a/drivers/rtc/rtc-sa1100.c +++ b/drivers/rtc/rtc-sa1100.c @@ -334,6 +334,7 @@ static int sa1100_rtc_proc(struct device *dev, struct seq_file *seq) seq_printf(seq, "periodic_IRQ\t: %s\n", (OIER & OIER_E1) ? "yes" : "no"); seq_printf(seq, "periodic_freq\t: %ld\n", rtc_freq); + seq_printf(seq, "RTSR\t\t: 0x%08x\n", (u32)RTSR); return 0; }