From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752815Ab1BDPpO (ORCPT ); Fri, 4 Feb 2011 10:45:14 -0500 Received: from mail-fx0-f46.google.com ([209.85.161.46]:61650 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751835Ab1BDPpM (ORCPT ); Fri, 4 Feb 2011 10:45:12 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=TnKr4fgeTBvukzmetxwx1soSG7K03kVrrh9t3toUnH92mohG4lM9B3C3AMxrXsjckD DK69r4BZ1iVvnU6fqrSujXP5bDB/qzub0RvtEHWz9kYxN2sTc29xOW6p52meNHwXDUQt MpcRNdj6RM9nTliGd9NJPUhU2ArIQSqw8xf5o= Date: Fri, 4 Feb 2011 17:47:01 +0200 From: Jarkko Nikula To: linux-omap@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Tony Lindgren , "Govindraj.R" Subject: Re: [RFC] serial: omap-serial: Enable the UART wake-up bits always Message-Id: <20110204174701.4dcf290a.jhnikula@gmail.com> In-Reply-To: <1295884282-16562-1-git-send-email-jhnikula@gmail.com> References: <1295884282-16562-1-git-send-email-jhnikula@gmail.com> X-Mailer: Sylpheed 3.0.2 (GTK+ 2.20.1; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 24 Jan 2011 17:51:22 +0200 Jarkko Nikula wrote: > OMAP can do also dynamic idling so wake-up enable register should be set > also while system is running. If UART_OMAP_WER is not set, then for instance > the RX activity cannot wake up the UART port that is sleeping. > > This RX wake-up feature was working when the 8250 driver was used instead > of omap-serial. Reason for this is that the 8250 doesn't set the > UART_OMAP_WER and then arch/arm/mach-omap2/pm34xx.c ends up saving and > restoring the reset default which is the same than value > OMAP_UART_WER_MOD_WKUP here. > > Fix this by moving the conditional UART_OMAP_WER write from serial_omap_pm > into serial_omap_startup where wake-up bits are set unconditionally. > > Signed-off-by: Jarkko Nikula > Cc: Govindraj.R > --- > This problem has been here since 2.6.37 when the omap-serial was switched > into use so this patch is for 2.6.39. > --- For omap folks: 1. This patch is coming through tty tree http://git.kernel.org/?p=linux/kernel/git/gregkh/tty-2.6.git;a=commit;h=78841462d72fe7038cb7ea48adecc6fc395f2dc5 2. This patch helps those boards that don't have UART RTS signal (e.g. BeagleBoard) and thus padconf wakeup mechanism is not available. -- Jarkko