]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit781427442644589309ecf0673a4464d6a9b3d648
tree06dae37b9b6f9e44fb02589201559a79e1cc9b2b
parent5595714b7eeb914ac8d1c0c506f42ccc0936b6df
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