Re: [PATCH] ACPI / WAKEUP : enable wakeup power for physical child devices

Andrey Skvortsov
2014-12-01T11:12:05Z

On Mon, Dec 01, 2014 at 02:15:36AM +0100, Rafael J. Wysocki wrote:

> > >
> > > -> dev->wakeup.prepare_count here shold be different from 0 at this point.
> >
> > Thank you very much for the tip. I checked prepare_count, it was 0.
> > I tried fix that and patched ssb and b44 drivers, that are used for my Ethernet card.
> > The code is below. Is this a better way to solve this problem?
>
> Having a cursory look at the changes only, I think so.

Thank you, then I will format the patch in a proper way and submit it.

> > diff --git a/drivers/net/ethernet/broadcom/b44.c b/drivers/net/ethernet/broadcom/b44.c
> > index 416620f..ebac411 100644
> > --- a/drivers/net/ethernet/broadcom/b44.c
> > +++ b/drivers/net/ethernet/broadcom/b44.c
> > @@ -2103,7 +2103,9 @@ static int b44_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol)
> > else
> > bp->flags &= ~B44_FLAG_WOL_ENABLE;

--
Best regards,
Andrey Skvortsov

PGP Key ID: 0x57A3AEAD