> Date: Thu, 2 Jun 2011 20:25:23 +0200
> From: Michael Knudsen <[email protected]>
> 
> I enabled MSI for the wpi(4) in my X60:
> 
> wpi0 at pci2 dev 0 function 0 "Intel PRO/Wireless 3945ABG" rev 0x02: msi, 
> MoW2, address 00:13:02:9b:f4:89
> 
> It didn't blow up right away.  Anyone else feel lucky?

Reasonably confident that will work on all hardware, go ahead and commit.

> Index: if_wpi.c
> ===================================================================
> RCS file: /cvs/src/sys/dev/pci/if_wpi.c,v
> retrieving revision 1.109
> diff -u -p -r1.109 if_wpi.c
> --- if_wpi.c  7 Sep 2010 16:21:45 -0000       1.109
> +++ if_wpi.c  2 Jun 2011 18:25:03 -0000
> @@ -215,7 +215,7 @@ wpi_attach(struct device *parent, struct
>       }
>  
>       /* Install interrupt handler. */
> -     if (pci_intr_map(pa, &ih) != 0) {
> +     if (pci_intr_map_msi(pa, &ih) != 0 && pci_intr_map(pa, &ih) != 0) {
>               printf(": can't map interrupt\n");
>               return;
>       }
> 
> 
> -- 
> <moid> no, it's a recursive acronym. It means "gcc can't compile"

Reply via email to