[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191024.151659.1029282183844084836.davem@davemloft.net>
Date: Thu, 24 Oct 2019 15:16:59 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: Thomas.Haemmerle@...fvision.net
Cc: netdev@...r.kernel.org, andrew@...n.ch, f.fainelli@...il.com,
hkallweit1@...il.com, m.tretter@...gutronix.de
Subject: Re: [PATCH v2] net: phy: dp83867: support Wake on LAN
From: Thomas Hämmerle <Thomas.Haemmerle@...fvision.net>
Date: Tue, 22 Oct 2019 13:06:35 +0000
> + const u8 *mac;
> +
> + val_rxcfg = phy_read_mmd(phydev, DP83867_DEVADDR, DP83867_RXFCFG);
> + val_micr = phy_read(phydev, MII_DP83867_MICR);
> +
> + if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE | WAKE_UCAST |
> + WAKE_BCAST)) {
> + val_rxcfg |= DP83867_WOL_ENH_MAC;
> + val_micr |= MII_DP83867_MICR_WOL_INT_EN;
> +
> + if (wol->wolopts & WAKE_MAGIC) {
> + mac = (const u8 *)ndev->dev_addr;
Please declare 'mac' non-const and get rid of this cast, as suggested by Heiner.
Powered by blists - more mailing lists