r8152: disable ALDPS
authorhayeswang <hayeswang@realtek.com>
Fri, 19 Sep 2014 07:17:18 +0000 (15:17 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Sep 2014 18:54:19 +0000 (14:54 -0400)
If the hw is in ALDPS mode, the hw may have no response for accessing
the most registers. Therefore, the ALDPS should be disabled before
accessing the hw in rtl_ops.init(), rtl_ops.disable(), rtl_ops.up(),
and rtl_ops.down(). Regardless of rtl_ops.enable(), because the hw
wouldn't enter ALDPS mode when linking on. The hw would enter the
ALDPS mode after several seconds when link down occurs and the ALDPS
is enabled.

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

Simple merge