Commit 02552754 authored by hayeswang's avatar hayeswang Committed by David S. Miller

r8152: adjust rtl8153_runtime_enable function

Adjust the order of rtl8153_runtime_enable() according to the
suggestion from the engineer.
Signed-off-by: default avatarHayes Wang <hayeswang@realtek.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e31f6367
...@@ -2551,13 +2551,13 @@ static void rtl_runtime_suspend_enable(struct r8152 *tp, bool enable) ...@@ -2551,13 +2551,13 @@ static void rtl_runtime_suspend_enable(struct r8152 *tp, bool enable)
static void rtl8153_runtime_enable(struct r8152 *tp, bool enable) static void rtl8153_runtime_enable(struct r8152 *tp, bool enable)
{ {
rtl_runtime_suspend_enable(tp, enable);
if (enable) { if (enable) {
r8153_u1u2en(tp, false); r8153_u1u2en(tp, false);
r8153_u2p3en(tp, false); r8153_u2p3en(tp, false);
r8153_mac_clk_spd(tp, true); r8153_mac_clk_spd(tp, true);
rtl_runtime_suspend_enable(tp, true);
} else { } else {
rtl_runtime_suspend_enable(tp, false);
r8153_mac_clk_spd(tp, false); r8153_mac_clk_spd(tp, false);
r8153_u2p3en(tp, true); r8153_u2p3en(tp, true);
r8153_u1u2en(tp, true); r8153_u1u2en(tp, true);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment