r8152: fix the wake event
authorhayeswang <hayeswang@realtek.com>
Thu, 7 Jan 2016 09:12:17 +0000 (17:12 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 9 Jan 2016 02:50:18 +0000 (21:50 -0500)
commit5ee3c60c8d3b88cab6496c9b7d49a01576dd9cf9
tree634e8e5914ef37302e614f14b9c0b739b0ee511d
parentb4c19f71252e3b6b8c6478fd712c592f00b11438
r8152: fix the wake event

When the autosuspend is enabled and occurs before system suspend, we should
wake the device before running system syspend. Then, we could change the wake
event for system suspend. Otherwise, the device would resume the system when
receiving any packet.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c
This page took 0.028299 seconds and 5 git commands to generate.