r8152: add reset_resume function
authorhayeswang <hayeswang@realtek.com>
Mon, 4 Jan 2016 06:38:46 +0000 (14:38 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Jan 2016 03:02:08 +0000 (22:02 -0500)
commit7ec2541aa7a026874930d6117e86fe2e76fb1587
tree06dae37b9b6f9e44fb02589201559a79e1cc9b2b
parent55285bf09427c5abf43ee1d54e892f352092b1f1
r8152: add reset_resume function

When the reset_resume() is called, the flag of SELECTIVE_SUSPEND should be
cleared and reinitialize the device, whether the SELECTIVE_SUSPEND is set
or not. If reset_resume() is called, it means the power supply is cut or the
device is reset. That is, the device wouldn't be in runtime suspend state and
the reinitialization is necessary.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c