Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753994AbYJ1QUb (ORCPT ); Tue, 28 Oct 2008 12:20:31 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752055AbYJ1QUW (ORCPT ); Tue, 28 Oct 2008 12:20:22 -0400 Received: from smtp125.sbc.mail.sp1.yahoo.com ([69.147.65.184]:32118 "HELO smtp125.sbc.mail.sp1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752016AbYJ1QUW (ORCPT ); Tue, 28 Oct 2008 12:20:22 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=pacbell.net; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:From:To:Subject:Date:User-Agent:Cc:References:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-Disposition:Message-Id; b=Ss0n7MMFdJIXT5L7RhsFaf+XJQSZtu5LCiJ49i+3tZO0igb+f4xuh71ki71V1cqTq6zdz7/m/sOPCd00uxddEPCXUdDWfK3ORwIqzJcRUNuKW0TaMp9NTwKRgO9HFIcoDWoxGPpdy/hbfSLNywne4tbugd/6emCGjp0dE3Hut50= ; X-YMail-OSG: sG_92TgVM1noJQjnKbn14LUIkir_.im9yS9EFm5T9y_yGJf4wSeN6ZOrK9cl606jaUeUqabnLQPlHrcRmCY6ruEOAWVcM6O8qPs2tJ2CDKfhw2HFygXR6m_NWVwD1Z_V4YxljVPen1ptqSzJ7sq3Fofm X-Yahoo-Newman-Property: ymail-3 From: David Brownell To: Haavard Skinnemoen Subject: Re: [patch 2.6.28-rc2] atmel_serial: keep clock off when it's not needed Date: Tue, 28 Oct 2008 09:20:19 -0700 User-Agent: KMail/1.9.10 Cc: lkml , Haavard Skinnemoen , Nicolas Ferre , Andrew Victor References: <200810271406.24110.david-b@pacbell.net> <20081028124526.6b9ccdf5@hskinnemo-gx745.norway.atmel.com> In-Reply-To: <20081028124526.6b9ccdf5@hskinnemo-gx745.norway.atmel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200810280920.19864.david-b@pacbell.net> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1340 Lines: 41 On Tuesday 28 October 2008, Haavard Skinnemoen wrote: > David Brownell wrote: > > From: David Brownell > > > > The atmel_serial driver is mismanaging its clock by leaving it on > > at all times ... the whole point of clock management is to leave > > it off unless it's actively needed, which conserves power!! > > > > Signed-off-by: David Brownell > > Hmm...the only remaining clk_enable() is in atmel_serial_pm(). Is that > really enough? > > It looks like the serial core calls ->pm() to power the port up before > doing anything that might touch the registers, but I can't see that the > console layer does the same thing... I verified it on AT91, where the console is normally DBGU and the other USARTs do get an open(). Didn't verify on AVR32, since 2.6.28-rc can't see the root FS because of that NOR flash problem. Though I suppose I can try it on an older kernel. As a rule the boot loader will be using that USART, and thus will have enabled its clock. :) - Dave > > Haavard > > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/