From patchwork Sun Aug 21 19:11:44 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rafael Wysocki X-Patchwork-Id: 1083652 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p7LJBDm3012994 for ; Sun, 21 Aug 2011 19:11:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754791Ab1HUTKr (ORCPT ); Sun, 21 Aug 2011 15:10:47 -0400 Received: from ogre.sisk.pl ([217.79.144.158]:55722 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755766Ab1HUTKq (ORCPT ); Sun, 21 Aug 2011 15:10:46 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by ogre.sisk.pl (Postfix) with ESMTP id 0EEF71B76B0; Sun, 21 Aug 2011 20:30:36 +0200 (CEST) Received: from ogre.sisk.pl ([127.0.0.1]) by localhost (ogre.sisk.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31058-05; Sun, 21 Aug 2011 20:30:22 +0200 (CEST) Received: from ferrari.rjw.lan (220-bem-13.acn.waw.pl [82.210.184.220]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ogre.sisk.pl (Postfix) with ESMTP id E8FDF1B8AB7; Sun, 21 Aug 2011 20:30:21 +0200 (CEST) From: "Rafael J. Wysocki" To: linux-sh@vger.kernel.org Subject: [PATCH 2/2 v2] sh-sci / PM: Use power.irq_safe Date: Sun, 21 Aug 2011 21:11:44 +0200 User-Agent: KMail/1.13.6 (Linux/3.1.0-rc2+; KDE/4.6.0; x86_64; ; ) Cc: Linux PM mailing list , LKML , Magnus Damm , Alan Stern References: <201108202131.19479.rjw@sisk.pl> <201108212109.30399.rjw@sisk.pl> In-Reply-To: <201108212109.30399.rjw@sisk.pl> MIME-Version: 1.0 Message-Id: <201108212111.45012.rjw@sisk.pl> X-Virus-Scanned: amavisd-new at ogre.sisk.pl using MkS_Vir for Linux Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Sun, 21 Aug 2011 19:11:13 +0000 (UTC) From: Rafael J. Wysocki Since sci_port_enable() and sci_port_disable() may be run with interrupts off and they execute pm_runtime_get_sync() and pm_runtime_put_sync(), respectively, the SCI device's power.irq_safe flags has to be used to indicate that it is safe to execute runtime PM callbacks for this device with interrupts off. Signed-off-by: Rafael J. Wysocki --- drivers/tty/serial/sh-sci.c | 1 + 1 file changed, 1 insertion(+) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: linux/drivers/tty/serial/sh-sci.c =================================================================== --- linux.orig/drivers/tty/serial/sh-sci.c +++ linux/drivers/tty/serial/sh-sci.c @@ -1913,6 +1913,7 @@ static int __devinit sci_init_single(str port->dev = &dev->dev; + pm_runtime_irq_safe(&dev->dev); pm_runtime_enable(&dev->dev); }