[PATCH] [5/9] pasemi: Implement restart

Olof Johansson olof at lixom.net
Sat Feb 3 05:46:45 EST 2007


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



More information about the Linuxppc-dev mailing list