Re: [PATCH net-next] net: macb: add wake-on-lan support via magic packet

From: Rob Herring
Date: Fri Feb 12 2016 - 10:16:30 EST


On Tue, Feb 09, 2016 at 12:07:16PM -0200, Sergio Prado wrote:
> Tested on Acqua A5 SoM (http://www.acmesystems.it/acqua).
>
> Signed-off-by: Sergio Prado <sergio.prado@xxxxxxxxxxxxxx>
> ---
> Documentation/devicetree/bindings/net/macb.txt | 2 +
> drivers/net/ethernet/cadence/macb.c | 67 +++++++++++++++++++++++---
> drivers/net/ethernet/cadence/macb.h | 4 ++
> 3 files changed, 67 insertions(+), 6 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/net/macb.txt b/Documentation/devicetree/bindings/net/macb.txt
> index d2e243b1ec0e..c6b1cb5ffa87 100644
> --- a/Documentation/devicetree/bindings/net/macb.txt
> +++ b/Documentation/devicetree/bindings/net/macb.txt
> @@ -25,6 +25,8 @@ Required properties:
>
> Optional properties for PHY child node:
> - reset-gpios : Should specify the gpio for phy reset
> +- cdns,magic-packet : If present, indicates that the hardware supports waking
> + up via magic packet.

Already have one vendor property like this (fsl). Make this a generic
property.

Rob