On Mon, 2005-03-28 at 18:23 +1000, Benjamin Herrenschmidt wrote:
> On Mon, 2005-03-28 at 02:20 -0500, Marc Heckmann wrote:
> > Hi,
> > 
> > I just wanted to confirm that on a PowerBook5,6 (post feb. 15"), the
> > cpu speed patch from the thread:
> > 
> > http://lists.debian.org/debian-powerpc/2005/03/msg00554.html 
> > 
> > does not work work. It crashes the machine after "openpic: exit" is
> > displayed (even with video=ofonly) as Jochen Voss describes.
> > 
> > Is there any other patch that I can help test?
> 
> Ah, I missed Jochen comments. Can you add checking for a NULL property ?
> and let me know if that makes a difference ? Also, do you have
> CONFIG_XMON ? If not, try enabling it and let me know if you get into
> the debugger at the time of the crash.

Hrm... Indeed, the code looks bogus. Try replacing:

        reg = (u32 *)get_property(volt_gpio_np, "reg", NULL);
        voltage_gpio = *reg;

With

        if (volt_gpio_np)
                voltage_gpio = read_gpio(volt_gpio_np);

And let me know if it helps.

Ben.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to