From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754430Ab2LCJtW (ORCPT ); Mon, 3 Dec 2012 04:49:22 -0500 Received: from caramon.arm.linux.org.uk ([78.32.30.218]:53698 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752359Ab2LCJtD (ORCPT ); Mon, 3 Dec 2012 04:49:03 -0500 Date: Mon, 3 Dec 2012 09:48:29 +0000 From: Russell King - ARM Linux To: Chao Xie Cc: Haojian Zhuang , Chao Xie , Alessandro Zummo , rtc-linux@googlegroups.com, "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH 1/4] rtc: sa1100: enable/disable rtc when probe/remove the device Message-ID: <20121203094828.GA14363@n2100.arm.linux.org.uk> References: <1354155670-6267-1-git-send-email-chao.xie@marvell.com> <20121129102519.GG19440@n2100.arm.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 03, 2012 at 10:53:07AM +0800, Chao Xie wrote: > I want to correct what i said. For the irq register/unregister i think > can be done at open/release. But for clock enable/disable, i do not > think so. If clock is disabled, as i think RTC will not work. User API > still use open->get_time->close for "date" command. It means that RTC > will not return correct date to user. "I think" is not good enough for patches like this. Please test it. On SA11x0 and PXA platforms, the clock for the sa1100-rtc is a dummy clock; it has no effect. For MMP, I don't have access to the TRMs so that's something you're going to have to find out.