Skip to content

r8152: add helper functions for PLA/USB/PHY OCP registers

Chih Kai Hsu linux-usb lkml netdev 4 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 6 repliesApplied 3/3
  2. v32 patches 5 repliesSuperseded
  3. v22 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches0 repliesSuperseded

Changes in v4 from the cover letter

- Add a new patch for original #1. We need to fix a typo first before original #1 patch.

- For patch #2, replace redundant ocp_word_set_bits() with ocp_word_w0w1().

Patches in v4 All 3 applied

#Subject and filesSizeRepliesApplied
1/3r8152: fix incorrect register write to USB_UPHY_XTALdrivers/net/usb/r8152.c+1 -11 replyApplied
2/3r8152: add helper functions for PLA/USB OCP registersdrivers/net/usb/r8152.c+408 -6951 replyApplied
3/3r8152: add helper functions for PHY OCP registersdrivers/net/usb/r8152.c+226 -4714 repliesApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchHayes Wang
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH net-next v4 0/3] r8152: add helper functions for PLA/USB/PHY OCP registers

v4:
- Add a new patch for original #1. We need to fix a typo first before original #1 patch.

- For patch #2, replace redundant ocp_word_set_bits() with ocp_word_w0w1().

v3:
- For patch #1, fix the issue identified by the AI review.
In v2, ocp_byte_set_bits() was used to update the USB_LPM_CTRL register. However, since its function only perform a bitwise OR operaion, it fails to clear the old bits when updating a multi-bit field like LPM_TIMER. Therefore, use ocp_write_byte() to maintain the original direct-write semantics.

- For patch #2, fix the line length exceeding 80 columns

v2:
For patch #2, remove variable set but not used from r8153_init(), r8153b_init() and r8153c_init()

v1:
Add bitwise operaion functions for PLA/USB/PHY OCP registers to simplify the code.

Chih Kai Hsu (3):
r8152: fix incorrect register write to USB_UPHY_XTAL
r8152: add helper functions for PLA/USB OCP registers
r8152: add helper functions for PHY OCP registers

 drivers/net/usb/r8152.c | 1800 ++++++++++++++-------------------------
 1 file changed, 634 insertions(+), 1166 deletions(-)
Signature · 1 line
2.34.1