]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit33e20e3e297c627329898cd138010753a362de32
tree634e8e5914ef37302e614f14b9c0b739b0ee511d
parent6f1a3b772000b8198f4ff3ce135982ff8def162c
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