| 
      
      
      From: Geert U. <ge...@li...> - 2001-06-14 18:07:05
      
     | 
| On Thu, 14 Jun 2001, Jouko Pynn=F6nen wrote:
> On Thu, 14 Jun 2001, I wrote:
> > The kernel hangs after detecting a PCMCIA card.
>=20
> It looks like the problem was in include/asm-m68k/amipcmcia.h, which
> has some minor but fatal changes after 2.2:=20
>=20
> [diff 2.2.3-pre1 -> 2.4.5]
>=20
>  static inline void pcmcia_ack_int(u_char intreq)
>  {
> -       gayle.intreq =3D ((intreq & 0x2c) ^ 0x2c) | 0xc0;
> +       gayle.intreq =3D 0xf8;
>  }
>=20
>  static inline void pcmcia_enable_irq(void)
>  {
> -       gayle.inten =3D GAYLE_IRQ_IDE|GAYLE_IRQ_IRQ;
> +       gayle.inten |=3D GAYLE_IRQ_IRQ;
>  }
>=20
>  static inline void pcmcia_disable_irq(void)
>  {
> -       gayle.inten =3D GAYLE_IRQ_IDE;
> +       gayle.inten &=3D ~GAYLE_IRQ_IRQ;
>  }
>=20
>=20
> After replacing the amipcmcia.h file with one taken from 2.2.3-pre1
> source, the problem is gone and PCMCIA ethernet seems to work (at least
> during this half an hour i've been using it). Does anyone know why the
> file was been changed that way?
IIRC, Kars changed that to fix a problem on his machine.
Gr{oetje,eeting}s,
						Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m6=
8k.org
In personal conversations with technical people, I call myself a hacker. =
But
when I'm talking to journalists I just say "programmer" or something like=
 that.
							    -- Linus Torvalds
 |