mbox series

[u-boot,v2,0/4] r8152: support more chips

Message ID 1394712342-15778-382-Taiwan-albertk@realtek.com
Headers show
Series r8152: support more chips | expand

Message

Hayes Wang June 16, 2020, 9:09 a.m. UTC
v2:
For patch #1, replace u32 with u8 for rtl_reset_bmu().

For patch #3, use USB_BP(n) to replace USB_BP_0 ~ USB_BP_7.
Write the registers in bulk for rtl_clear_bp().

For patch #4, add a macro for the magic value. Remove type casts.
Write the register in bulk, if it is possible. Reduce indent.

v1:
The first two patched are some improvements. And the last two patches
are used to support RTL8153B and RTL8154B.

Hayes Wang (4):
  eth/r8152: reset bmu after disabling Tx/Rx
  eth/r8152: reset PHY after setting it
  eth/r8152: modify rtl_clear_bp function
  eth/r8152: support RTL8153B/RTL8154B

 drivers/usb/eth/r8152.c    | 223 +++++++++++++++++++++++++++++++++-
 drivers/usb/eth/r8152.h    |  71 +++++++++--
 drivers/usb/eth/r8152_fw.c | 239 +++++++++++++++++++++++++++++++++----
 3 files changed, 493 insertions(+), 40 deletions(-)