On Wed, Apr 23, 2014 at 10:52:10PM +0200, Alessandro DE LAURENZIS wrote:
> In order to adapt your code to 5.4-Rel, I did the following
> modification:
> 
> From:
> 
> +       /* Configure 10Mbps, the chip draws too much power in D3cold. */
> +       if (!(sc->bge_flags & BGE_FIBER_TBI) &&
> +           !(sc->bge_flags & BGE_FIBER_MII)) {
> +               sc->bge_ifmedia.ifm_media = IFM_ETHER|IFM_10_T;
> +               if_flags = ifp->if_flags;
> +               ifp->if_flags |= IFF_UP;
> +               bge_ifmedia_upd(ifp);
> +               ifp->if_flags = if_flags;
> +       }
> 
> to:
> 
> +       /* Configure 10Mbps, the chip draws too much power in D3cold. */
> +       if !(sc->bge_flags) {
> +               sc->bge_ifmedia.ifm_media = IFM_ETHER|IFM_10_T;
> +               if_flags = ifp->if_flags;
> +               ifp->if_flags |= IFF_UP;
> +               bge_ifmedia_upd(ifp);
> +               ifp->if_flags = if_flags;
> +       }
> 
> (because BGE_FIBER_TBI and BGE_FIBER_MII are undefined); even if
> probably not semantically correct, that gives me a clean compile; in any
> case, I do not think this part is related to WoL, right?

These constants were renamed. You can use the names from the old diff:
BGE_PHY_FIBER_TBI and BGE_PHY_FIBER_MII

> Now:
> 
> # ifconfig bge0 wol
> ifconfig: SIOCSIFXFLAGS: Not supported
> 
> and the interface is still powered off after a "halt -p" command.
> 
> How can I help in continuing the debug?
> 
> Thanks a lot for your efforts.

The interesting question is:
Does your bge card support ASF? Is ASF enabled?

I've got one positive ("wol just works with your diff") test report
reply to my post tech@.
http://marc.info/?l=openbsd-tech&m=139826976013354&w=2

Reply via email to