From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Lindgren Subject: Re: [PATCH] ARM: OMAP2: UART: fix console UART mismatched runtime PM status Date: Mon, 15 Oct 2012 17:01:04 -0700 Message-ID: <20121016000103.GG15569@atomide.com> References: <1350344998-16328-1-git-send-email-khilman@deeprootsystems.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mho-04-ewr.mailhop.org ([204.13.248.74]:29220 "EHLO mho-02-ewr.mailhop.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752398Ab2JPABJ (ORCPT ); Mon, 15 Oct 2012 20:01:09 -0400 Content-Disposition: inline In-Reply-To: <1350344998-16328-1-git-send-email-khilman@deeprootsystems.com> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Kevin Hilman Cc: linux-omap@vger.kernel.org, Russell King , Paul Walmsley , linux-arm-kernel@lists.infradead.org, Felipe Balbi , Sourav Poddar * Kevin Hilman [121015 16:51]: > From: Kevin Hilman > > The runtime PM framework assumes that the hardware state of devices > when initialized is disabled. For all omap_devices, we idle/disable > device by default. However, the console uart uses a "no idle" option > during omap_device init in order to allow earlyprintk usage to work > seamlessly during boot. > > Because the hardware is left partially enabled after init (whatever > the bootloader settings were), the omap_device should later be fully > initialized (including mux) and the runtime PM framework should be > told that the device is active, and not disabled so that the hardware > state is in sync with runtime PM state. > > To fix, after the device has been created/registered, call > omap_device_enable() to finialize init and use pm_runtime_set_active() > to tell the runtime PM core the device is enabled. > > Tested on 2420/n810, 3530/Overo, 3530/Beagle, 3730/OveroSTORM, > 3730/Beagle-xM, 4460/PandaES. > > Reported-by: Paul Walmsley > Suggested-by: Russell King > Cc: Felipe Balbi > Cc: Sourav Poddar > Signed-off-by: Kevin Hilman Seems to work for my n800: Tested-by: Tony Lindgren