]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
r8152: Add helper functions for SRAM2
authorChih Kai Hsu <hsu.chih.kai@realtek.com>
Wed, 1 Apr 2026 11:55:41 +0000 (19:55 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 3 Apr 2026 01:01:06 +0000 (18:01 -0700)
commit86f5dd4e0ff282a0acf1f058e947fd5f4ba58a9d
tree1154d524f8f0067102c8704adc2069046437b86f
parent7eaff1eff003dc9c5881edc37741795a5dfc5ff8
r8152: Add helper functions for SRAM2

Add the following helper functions for SRAM2 access to simplify the code
and improve readability:

- sram2_write() - write data to SRAM2 address
- sram2_read() - read data from SRAM2 address
- sram2_write_w0w1() - read-modify-write operation

Signed-off-by: Chih Kai Hsu <hsu.chih.kai@realtek.com>
Reviewed-by: Hayes Wang <hayeswang@realtek.com>
Link: https://patch.msgid.link/20260401115542.34601-1-nic_swsd@realtek.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/usb/r8152.c