From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from de01egw01.freescale.net (de01egw01.freescale.net [192.88.165.102]) by ozlabs.org (Postfix) with ESMTP id D73D267B77 for ; Sat, 18 Nov 2006 04:44:26 +1100 (EST) Message-ID: <455DF4F5.9030201@freescale.com> Date: Fri, 17 Nov 2006 11:44:21 -0600 From: Scott Wood MIME-Version: 1.0 To: Kumar Gala Subject: Re: RTC , ds1307 I2C driver and NTP does not work. References: <1163781539.21518.27.camel@gentoo-jocke.transmode.se> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Kumar Gala wrote: > On Nov 17, 2006, at 10:38 AM, Joakim Tjernlund wrote: > > >>I get this when I activathte NTP and ntp "sync" the time the I2C HW >>clock. > > > You may be better off posting this to lkml and copy the i2c list (and > rtc if one exists). Since its more a driver issue than anything > really ppc specific. Clearly we are doing schedules() in mpc_xfer() > and maybe we shouldn't be. It's interrupt unsafe before that; rtc_set_time calls mutex_lock_interruptible. If the RTC must be set from an interrupt, it should be via a workqueue. -Scott