]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit61c4eab9eccfb7cbaf94f31155539cf8c0856329
treeffa1d0d624c275932b469bfeb49bd5f0a921cdfe
parent16d903bb66ab73c1ca1307fedf29e818b5ec85ae
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