Skip to content

Commit

Permalink
net: macb: make magic-packet property generic
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Rob Herring <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
sergioprado authored and davem330 committed Feb 19, 2016
1 parent ef240c1 commit 7c4a1d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Documentation/devicetree/bindings/net/macb.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/ethernet/cadence/macb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 7c4a1d0

Please sign in to comment.