]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "r8152: adjust the settings about MAC clock speed down for RTL8153"
authorHayes Wang <hayeswang@realtek.com>
Wed, 3 Mar 2021 08:39:47 +0000 (16:39 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Mar 2021 00:56:03 +0000 (16:56 -0800)
commit76c8bad468bd63611a706ff33cd3a8fe0cc6219d
tree4d6cb8e1f57c4bc41ea7a8b38ad152f0466366cc
parent103ac3ad1119957b6f15acd20de563210b9ac29b
Revert "r8152: adjust the settings about MAC clock speed down for RTL8153"

This reverts commit 385edf310962d6dd3ca3e9cbf5659499dfd85625.

The r8153_mac_clk_spd() is used for RTL8153A only, because the register
table of RTL8153B is different from RTL8153A. However, this function would
be called when RTL8153B calls r8153_first_init() and r8153_enter_oob().
That causes RTL8153B becomes unstable when suspending and resuming. The
worst case may let the device stop working.

Besides, revert this commit to disable MAC clock speed down for RTL8153A.
It would avoid the known issue when enabling U1. The data of the first
control transfer may be wrong when exiting U1.

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