Skip to content

r8152: support more chips

Hayes Wang u-boot 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 0 repliesNew
  2. v14 patches 0 repliesSuperseded

Changes in v2 from the cover letter

For patch #1, replace u32 with u8 for rtl_reset_bmu().

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4eth/r8152: reset bmu after disabling Tx/Rxdrivers/usb/eth/r8152.c drivers/usb/eth/r8152.h+20 -11 reply
2/4eth/r8152: reset PHY after setting itdrivers/usb/eth/r8152.c+1 -10 replies
3/4eth/r8152: modify rtl_clear_bp functiondrivers/usb/eth/r8152.h drivers/usb/eth/r8152_fw.c+36 -350 replies
4/4eth/r8152: support RTL8153B/RTL8154Bdrivers/usb/eth/r8152.c drivers/usb/eth/r8152.h drivers/usb/eth/r8152_fw.c+414 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH u-boot v2 0/4] r8152: support more chips

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(-)
Signature · 1 line
2.21.1