From patchwork Tue Aug 17 04:44:09 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 61856 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-pv0-f184.google.com (mail-pv0-f184.google.com [74.125.83.184]) by ozlabs.org (Postfix) with ESMTP id 5D62CB70A6 for ; Tue, 17 Aug 2010 14:44:07 +1000 (EST) Received: by mail-pv0-f184.google.com with SMTP id 4sf1077883pva.11 for ; Mon, 16 Aug 2010 21:44:07 -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:from:to:cc:subject :date:message-id:x-mailer:in-reply-to:references:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type; bh=FmZqfga/h26HdR6IWVkK+9gyBO+8DPOhkFv0mj5fBxc=; b=VpZfCSrwgQVp6Mwhdy8RlnHXbua5V5oxBPcwAtwjerPYYpIeCxrSmZ1M7hKOrc3aSF BvROGGacSOxftBApYSmGWlBuFwPHvr7jzKJPIrukjO0L8tUW9aFDGb+HPQWtHj3O6yeh n1mmyNXiF35JqNwdxBB5lonefECHYOhM28nMc= 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-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type; b=UhuL/JoD25wCh2ktATGTZXwuACmgNT7gDs6t3XlG//DnD2cO4gdZcCqqg2IKE4uOL3 71axjF1oXHLwxBcA7MOtxUo5+5U3UpbVYadrHV1sW6rQXWWiVL8QT60Ryht1FzSOkKBZ rE0QYqX8/uOQ9rIknrxpfhAQNRzdbpexHLI5g= Received: by 10.115.100.20 with SMTP id c20mr417905wam.9.1282020246589; Mon, 16 Aug 2010 21:44:06 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.115.67.12 with SMTP id u12ls4913218wak.3.p; Mon, 16 Aug 2010 21:44:05 -0700 (PDT) Received: by 10.114.89.11 with SMTP id m11mr1706778wab.25.1282020244647; Mon, 16 Aug 2010 21:44:04 -0700 (PDT) Received: by 10.114.89.11 with SMTP id m11mr1706777wab.25.1282020244626; Mon, 16 Aug 2010 21:44:04 -0700 (PDT) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by gmr-mx.google.com with ESMTP id k37si9490394wae.2.2010.08.16.21.44.04; Mon, 16 Aug 2010 21:44:04 -0700 (PDT) Received-SPF: pass (google.com: domain of vapier@gentoo.org designates 140.211.166.183 as permitted sender) client-ip=140.211.166.183; Received: from vapier-m.hsd1.ma.comcast.net. (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 00AE31B40FC; Tue, 17 Aug 2010 04:44:03 +0000 (UTC) From: Mike Frysinger To: rtc-linux@googlegroups.com, Alessandro Zummo Cc: uclinux-dist-devel@blackfin.uclinux.org, Andrew Morton Subject: [rtc-linux] [PATCH 4/4] rtc-bfin: add debug markers to suspend/resume paths Date: Tue, 17 Aug 2010 00:44:09 -0400 Message-Id: <1282020249-8807-4-git-send-email-vapier@gentoo.org> X-Mailer: git-send-email 1.7.2 In-Reply-To: <1282020249-8807-1-git-send-email-vapier@gentoo.org> References: <1282020249-8807-1-git-send-email-vapier@gentoo.org> X-Original-Sender: vapier@gentoo.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of vapier@gentoo.org designates 140.211.166.183 as permitted sender) smtp.mail=vapier@gentoo.org 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: Sender: rtc-linux@googlegroups.com List-Subscribe: , List-Unsubscribe: , The rest of the driver had debug markings already. This also standardizes the usage of "dev" a bit. Signed-off-by: Mike Frysinger --- drivers/rtc/rtc-bfin.c | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/rtc/rtc-bfin.c b/drivers/rtc/rtc-bfin.c index 3506f33..b4b6087 100644 --- a/drivers/rtc/rtc-bfin.c +++ b/drivers/rtc/rtc-bfin.c @@ -2,7 +2,7 @@ * Blackfin On-Chip Real Time Clock Driver * Supports BF51x/BF52x/BF53[123]/BF53[467]/BF54x * - * Copyright 2004-2009 Analog Devices Inc. + * Copyright 2004-2010 Analog Devices Inc. * * Enter bugs at http://blackfin.uclinux.org/ * @@ -427,9 +427,13 @@ static int __devexit bfin_rtc_remove(struct platform_device *pdev) #ifdef CONFIG_PM static int bfin_rtc_suspend(struct platform_device *pdev, pm_message_t state) { - if (device_may_wakeup(&pdev->dev)) { + struct device *dev = &pdev->dev; + + dev_dbg_stamp(dev); + + if (device_may_wakeup(dev)) { enable_irq_wake(IRQ_RTC); - bfin_rtc_sync_pending(&pdev->dev); + bfin_rtc_sync_pending(dev); } else bfin_rtc_int_clear(0); @@ -438,7 +442,11 @@ static int bfin_rtc_suspend(struct platform_device *pdev, pm_message_t state) static int bfin_rtc_resume(struct platform_device *pdev) { - if (device_may_wakeup(&pdev->dev)) + struct device *dev = &pdev->dev; + + dev_dbg_stamp(dev); + + if (device_may_wakeup(dev)) disable_irq_wake(IRQ_RTC); /*