]> git.ipfire.org Git - thirdparty/linux.git/commit
r8152: add helper functions for PLA/USB OCP registers
authorChih Kai Hsu <hsu.chih.kai@realtek.com>
Thu, 26 Mar 2026 07:39:24 +0000 (15:39 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 31 Mar 2026 08:28:26 +0000 (10:28 +0200)
commitd16133f177fea620d6b413990683b6a8b2641be5
treec74bc5c5fd8b6bdd1e311fe0a7f48315992797b7
parent48afd5124fd6129c46fd12cb06155384b1c4a0c4
r8152: add helper functions for PLA/USB OCP registers

Add the following bitwise operation functions for PLA/USB OCP registers
to simplify the code.

- ocp_dword_w0w1()
- ocp_word_w0w1()
- ocp_byte_w0w1()
- ocp_dword_clr_bits()
- ocp_dword_set_bits()
- ocp_word_clr_bits()
- ocp_word_set_bits()
- ocp_word_test_and_clr_bits()
- ocp_byte_clr_bits()
- ocp_byte_set_bits()

Signed-off-by: Chih Kai Hsu <hsu.chih.kai@realtek.com>
Reviewed-by: Hayes Wang <hayeswang@realtek.com>
Link: https://patch.msgid.link/20260326073925.32976-455-nic_swsd@realtek.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/usb/r8152.c