[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3d278dd6-0b61-f618-b723-52f9c302c999@st.com>
Date: Mon, 13 Jun 2016 08:46:10 +0200
From: Giuseppe CAVALLARO <peppe.cavallaro@...com>
To: Vincent Palatin <vpalatin@...omium.org>, <netdev@...r.kernel.org>
CC: <linux-kernel@...r.kernel.org>, Andrew Lunn <andrew@...n.ch>,
Douglas Anderson <dianders@...omium.org>,
Heiko Stübner <heiko@...ech.de>,
Shunqian Zheng <zhengsq@...k-chips.com>,
David Miller <davem@...emloft.net>
Subject: Re: net: stmmac: dwmac-rk: fixes for Wake-on-Lan on RK3288
On 6/11/2016 3:00 AM, Vincent Palatin wrote:
> In order to support Wake-On-Lan when using the RK3288 integrated MAC
> (with an external RGMII PHY), we need to avoid shutting down the regulator
> of the external PHY when the MAC is suspended as it's currently done in the MAC
> platform code.
> As a first step, create independant callbacks for suspend/resume rather than
> re-using exit/init callbacks. So the dwmac platform driver can behave differently
> on suspend where it might skip shutting the PHY and at module unloading.
> Then update the dwmac-rk driver to switch off the PHY regulator only if we are
> not planning to wake up from the LAN.
> Finally add the PMT interrupt to the MAC device tree configuration, so we can
> wake up the core from it when the PHY has received the magic packet.
IMO these could be sent for net-next and also other glue logic
files should be reworked in order to use the new API for coherence.
Peppe
Powered by blists - more mailing lists