r8152: fix the issue about U1/U2
authorhayeswang <hayeswang@realtek.com>
Fri, 24 Jul 2015 05:54:23 +0000 (13:54 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jul 2015 07:56:38 +0000 (00:56 -0700)
commitb214396fb5890af58ff04b42deba7de5a2686338
treeffa1d0d624c275932b469bfeb49bd5f0a921cdfe
parent03de104f7b62b4cebd8a3d33cef82d48ff28144c
r8152: fix the issue about U1/U2

- Disable U1/U2 during initialization.
- Disable lpm when linking is on, and enable it when linking is off.
- Disable U1/U2 when enabling runtime suspend.

It is possible to let hw stop working, if the U1/U2 request occurs
during some situations. The patch is used to avoid it.

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