aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/net/tipc
diff options
context:
space:
mode:
authorGrygorii Strashko <grygorii.strashko@ti.com>2016-06-24 21:23:45 +0300
committerDavid S. Miller <davem@davemloft.net>2016-06-28 08:57:18 -0400
commita6c5d14f5136e4919ace42bdbf392d2f6e68d4da (patch)
tree25210124c951e353ab005c0607d5a659b7a1b6f8 /net/tipc
parentdrivers: net: cpsw: ethtool: fix accessing to suspended device (diff)
downloadwireguard-linux-a6c5d14f5136e4919ace42bdbf392d2f6e68d4da.tar.xz
wireguard-linux-a6c5d14f5136e4919ace42bdbf392d2f6e68d4da.zip
drivers: net: cpsw: ndev: fix accessing to suspended device
The CPSW might be suspended by RPM if all ethX interfaces are down, but it still could be accesible through net_device_ops interfce. In this case net_device_ops operations requiring registers access will cause L3 errors and CPSW crash. Hence, fix it by adding RPM get/put calls in net_device_ops callbacks which need to access CPSW registers: .ndo_set_mac_address(), .ndo_vlan_rx_add_vid(), .ndo_vlan_rx_kill_vid(). Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc')
0 files changed, 0 insertions, 0 deletions