From mboxrd@z Thu Jan 1 00:00:00 1970 From: Govindraj Subject: Re: [PATCH v8 19/20] OMAP2+: UART: Do not gate uart clocks if used for debug_prints Date: Tue, 3 Jan 2012 16:01:52 +0530 Message-ID: References: <1321005712-21871-1-git-send-email-govindraj.raja@ti.com> <1321005712-21871-5-git-send-email-govindraj.raja@ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from mail-ey0-f174.google.com ([209.85.215.174]:53174 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751477Ab2ACKcO convert rfc822-to-8bit (ORCPT ); Tue, 3 Jan 2012 05:32:14 -0500 In-Reply-To: Sender: linux-serial-owner@vger.kernel.org List-Id: linux-serial@vger.kernel.org To: "Bedia, Vaibhav" Cc: "R, Govindraj" , "linux-omap@vger.kernel.org" , "Hilman, Kevin" , Tony Lindgren , "Nayak, Rajendra" , "Basak, Partha" , "Shilimkar, Santosh" , "linux-serial@vger.kernel.org" , "Sripathy, Vishwanath" , "linux-arm-kernel@lists.infradead.org" On Tue, Jan 3, 2012 at 3:54 PM, Bedia, Vaibhav w= rote: > Hi Govindraj, > > On Mon, Jan 02, 2012 at 16:00:37, Govindraj wrote: >> >> currently runtime pm is available from omap-serial device and not fr= om tty_dev. >> Setting tty_dev wakeup is to use irq_wakeup from suspend available >> from serail_core layer which I think we are not using for omap-uart >> and we use pad wakeup from suspend path. >> >> Also omap-uart.x/power/wakeup is used to gate uart clocks using runt= ime >> PM api's in omap-serial driver. >> > > Thanks for clarifying. On AM335x, one of the UARTs is in a wakeup dom= ain > and swakeup from this is used to come out of suspend. > > I have basic suspend-resume working on it. Strangely this works irres= pective > of the value of tty_dev wakeup entry. Do you know if this is expected= on OMAP? > AFAIK yes. > The other issue concerning runtime PM is that as soon as I set a non-= zero to > the autosuspend_delay_ms I get some garbage characters and eventually= the > console stops responding. > > [root@arago /]# cat .../omap_uart.0/power/autosuspend_delay_ms > -1 > [root@arago /]# echo 3000 > =D6KW=EB=E9=AB+=D7=E9=AB+wU.=C9=D1=B9,z,=BD= =DD.=C9=BDosuspend_delay=D5=A3=BD=CD=D5=CD... > [root@arago /]# <- No response after some time > try enabling CONFIG_CPU_IDLE for pm qos_usage from uart driver. -- Thanks, Govindraj.R -- To unsubscribe from this list: send the line "unsubscribe linux-serial"= in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html