> Stefan Sperling <stsp <at> stsp.name> writes:
> > Index: xl.c
> > ===================================================================
> > RCS file: /cvs/src/sys/dev/ic/xl.c,v
> > retrieving revision 1.101
> > diff -u -p -r1.101 xl.c
> > --- xl.c 17 Apr 2011 20:52:43 -0000 1.101
> > +++ xl.c 22 Jun 2011 13:10:24 -0000
> > @@ -2373,9 +2373,13 @@ xl_stop(struct xl_softc *sc)
> > xl_freetxrx(sc);
> >
> > #ifndef SMALL_KERNEL
> > - /* Call upper layer WOL power routine if WOL is enabled. */
> > - if ((sc->xl_flags & XL_FLAG_WOL) && sc->wol_power)
> > + /* Re-enable RX and call upper layer WOL power routine
> > + * if WOL is enabled. */
> > + if ((sc->xl_flags & XL_FLAG_WOL) && sc->wol_power) {
> > + CSR_WRITE_2(sc, XL_COMMAND, XL_CMD_RX_ENABLE);
> > + xl_wait(sc);
> > sc->wol_power(sc->wol_power_arg);
> > + }
> > #endif
> > }
> >
> >
ok, i had to try...and it happens as i expected:
1) applying only the patch listed above, to -current, wol won't work, since
"xl_pci_wol_power" is not registered.
2) applying the patch to if_xl_pci.c you send me last weekend (with testing on
the XL_PME_CAPS_PWRMGMT" bit), "xl_pci_wol_power" is registered, but the error
messages appear during the boot process...
of course only when adding "wol" keyword to /etc/hostname.xl0
regards...