Port-sparc64 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port/sparc64 known working on Netra X1?



On Sun, 9 May 2010, Jochen Kunz wrote:

> +++ psycho.c  9 May 2010 08:17:29 -0000
> @@ -103,6 +103,8 @@
>  
>  #include "ioconf.h"
>  
> +extern char machine_banner[];
> +
>  static pci_chipset_tag_t psycho_alloc_chipset(struct psycho_pbm *, int,
>       pci_chipset_tag_t);
>  static struct extent *psycho_alloc_extent(struct psycho_pbm *, int, int,
> @@ -527,9 +529,14 @@
>               psycho_set_intr(sc, 15, psycho_bus_a,
>                       &sc->sc_regs->pciaerr_int_map,
>                       &sc->sc_regs->pciaerr_clr_int);
> -             psycho_set_intr(sc, 15, psycho_powerfail,
> -                     &sc->sc_regs->power_int_map,
> -                     &sc->sc_regs->power_clr_int);
> +             /*
> +              * The X1 hangs when the powerfail interrupt is enabled.
> +              */
> +             if (strcmp( machine_banner, "Sun Netra X1") != 0) {
> +                     psycho_set_intr(sc, 15, psycho_powerfail,
> +                             &sc->sc_regs->power_int_map,
> +                             &sc->sc_regs->power_clr_int);
> +             }
>               psycho_register_power_button(sc);

You should not use the banner name.  That is designed to be overridden by 
OEMs.  You should use the "model" property instead.

Eduardo


Home | Main Index | Thread Index | Old Index