]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
net: macb: make magic-packet property generic
authorSergio Prado <sergio.prado@e-labworks.com>
Tue, 16 Feb 2016 23:10:45 +0000 (21:10 -0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Feb 2016 20:32:24 +0000 (15:32 -0500)
As requested by Rob Herring on patch
https://patchwork.ozlabs.org/patch/580862/.

This is a new property that it's still in net-next and has never been
used in production, so we are not breaking anything with the
incompatible binding change.

Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/net/macb.txt
drivers/net/ethernet/cadence/macb.c

index c6b1cb5ffa875c6d744b24630d5f601440016fda..b5a42df4c9281d20c27cb726b0fac57ff58187c3 100644 (file)
@@ -25,7 +25,7 @@ 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
+- magic-packet : If present, indicates that the hardware supports waking
   up via magic packet.
 
 Examples:
index 69af049e55a8a9eb27b70777eb80705aea061d55..7ccf2298a5fa309d517825af3ffc74fca5c873e5 100644 (file)
@@ -2929,7 +2929,7 @@ static int macb_probe(struct platform_device *pdev)
                bp->jumbo_max_len = macb_config->jumbo_max_len;
 
        bp->wol = 0;
-       if (of_get_property(np, "cdns,magic-packet", NULL))
+       if (of_get_property(np, "magic-packet", NULL))
                bp->wol |= MACB_WOL_HAS_MAGIC_PACKET;
        device_init_wakeup(&pdev->dev, bp->wol & MACB_WOL_HAS_MAGIC_PACKET);