OSDN Git Service

net: systemport: add Wake-on-LAN support
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 2 Jul 2014 04:08:40 +0000 (21:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Jul 2014 03:56:47 +0000 (20:56 -0700)
commit83e82f4c706bbca3e2d9d7962e63605cc7a5fbd8
tree5b594a1a1946c8c42609ae8ded841067bf94dd68
parent9d34c1cb01ddef8e99c7855513a578c066f8300f
net: systemport: add Wake-on-LAN support

Support for Wake-on-LAN using Magic Packet with or without SecureOn
password is implemented doing the following:

- setting the password to the relevant UniMAC registers
- flagging the device as a wakeup source for the system, as well as
  its Wake-on-LAN interrupt
- prepare the hardware for entering WoL mode
- enabling the MPD interrupt to wake us

The Device Tree binding documentation is also reflected to specify the
third optional Wake-on-LAN interrupt line.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/net/broadcom-systemport.txt
drivers/net/ethernet/broadcom/bcmsysport.c
drivers/net/ethernet/broadcom/bcmsysport.h