]> 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)
commitc7b2b5b6b70e567e02101237a1e8ef624c194ea2
tree06dae37b9b6f9e44fb02589201559a79e1cc9b2b
parent3578b126faeb63e924b6b51b0020f34734f3a26c
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