]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
r8152: move calling r8153b_rx_agg_chg_indicate()
authorHayes Wang <hayeswang@realtek.com>
Wed, 3 Jul 2019 07:11:56 +0000 (15:11 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Jul 2019 18:31:33 +0000 (11:31 -0700)
commit9fae54186c64db6faec85c194812fb2e5e970f77
tree9eb3d6a88fca17de901b99e3d5da2940af15b1cd
parent1e64d7cbfdce4887008314d5b367209582223f27
r8152: move calling r8153b_rx_agg_chg_indicate()

r8153b_rx_agg_chg_indicate() needs to be called after enabling TX/RX and
before calling rxdy_gated_en(tp, false). Otherwise, the change of the
settings of RX aggregation wouldn't work.

Besides, adjust rtl8152_set_coalesce() for the same reason. If
rx_coalesce_usecs is changed, restart TX/RX to let the setting work.

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