From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.lixom.net (lixom.net [66.141.50.11]) by ozlabs.org (Postfix) with ESMTP id 25934DDF29 for ; Sat, 3 Feb 2007 05:39:40 +1100 (EST) Date: Fri, 2 Feb 2007 12:46:45 -0600 To: Kumar Gala Subject: Re: [PATCH] [5/9] pasemi: Implement restart Message-ID: <20070202184644.GA30912@lixom.net> References: <20070202045448.145851000@lixom.net>> <20070202045508.643066000@lixom.net>> <9C45758A-F748-43B2-97F6-E27FE0AC0530@kernel.crashing.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <9C45758A-F748-43B2-97F6-E27FE0AC0530@kernel.crashing.org> From: olof@lixom.net (Olof Johansson) Cc: linuxppc-dev@ozlabs.org, Paul Mackerras List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, Feb 02, 2007 at 12:07:42AM -0600, Kumar Gala wrote: > >- pas_power_off(); > >+ void __iomem *sdcreg; > >+ printk("Restarting...\n"); > >+ /* XXXOJN This should maybe come out of the device tree */ > >+ sdcreg = ioremap(0xfc101100, 4); > > You can't do the ioremap here, restart may get call an oops from > interrupt context. Oh, that's right. Will do it in setup instead. Thanks, -Olof