cvs commit: src/sys/dev/ipw if_ipw.c

Nate Lawson nate at root.org
Sun May 22 23:33:39 GMT 2005


Damien Bergamini wrote:
> damien      2005-05-22 18:31:08 UTC
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sys/dev/ipw          if_ipw.c 
>   Log:
>   Clear device-specific PCI register 0x41 during attach and on resume.
>   
>   Appoved by:     silby (mentor)
>   
>   Revision  Changes    Path
>   1.2       +4 -0      src/sys/dev/ipw/if_ipw.c
> 
> 
> Index: src/sys/dev/ipw/if_ipw.c
> diff -u src/sys/dev/ipw/if_ipw.c:1.1 src/sys/dev/ipw/if_ipw.c:1.2
> --- src/sys/dev/ipw/if_ipw.c:1.1	Mon Apr 18 18:47:36 2005
> +++ src/sys/dev/ipw/if_ipw.c	Sun May 22 18:31:08 2005
> @@ -230,6 +230,8 @@
>  		pci_set_powerstate(dev, PCI_POWERSTATE_D0);
>  	}
>  
> +	pci_write_config(dev, 0x41, 0, 1);
> +
>  	/* enable bus-mastering */
>  	pci_enable_busmaster(dev);
>  
> @@ -718,6 +720,8 @@
>  
>  	IPW_LOCK(sc);
>  
> +	pci_write_config(dev, 0x41, 0, 1);
> +
>  	if (ifp->if_flags & IFF_UP) {
>  		ifp->if_init(ifp->if_softc);
>  		if (ifp->if_flags & IFF_RUNNING)

You should use an explicit define for this like sam@ did for if_ath.

-- 
Nate


More information about the cvs-src mailing list