Subject: Re: Libretto L2 USB IRQ Mapping
To: Masanori Kanaoka <kanaoka@ann.hi-ho.ne.jp>
From: Lennart Augustsson <lennart@augustsson.net>
List: tech-kern
Date: 04/21/2002 05:05:10
Does the Libretto have ACPI? I found that using ACPI was the only
way to get interrupts properly routed on my Vaio. I have some code
for it, but it's not committed.
-- Lennart
Masanori Kanaoka wrote:
> Hi,
>
> I have got Libretto L3. I also have same problem.
> Next patch seems fixed USB problem.After I applied it,
> USB mouse works with X.
>
> I think next patch is adhoc.
> How about trying next patch?
>
> Regards
> ---
> Masanori Kanaoka kanaoka@ann.hi-ho.ne.jp
>
> Index: sys/arch/i386/pci/pci_intr_fixup.c
> ===================================================================
> RCS file: /ftp/cvs/syssrc/sys/arch/i386/pci/pci_intr_fixup.c,v
> retrieving revision 1.19
> diff -u -r1.19 pci_intr_fixup.c
> --- sys/arch/i386/pci/pci_intr_fixup.c 2001/12/07 08:07:57 1.19
> +++ sys/arch/i386/pci/pci_intr_fixup.c 2002/04/21 06:32:24
> @@ -442,6 +442,16 @@
> #endif
> continue;
> }
> +
> + /* for Libretto L2/L3 USB hack */
> + if (l->clink == 6) {
> + l->irq = 7;
> + pciirq |= 1 << l->irq;
> + printf("pciitr_link_fixup: PIRQ 0x%02x already "
> + "connected to IRQ %d\n", l->clink, l->irq);
> + continue;
> + }
> +
> /*
> * Interrupt isn't connected. Attempt to assign it to an IRQ.
> */