RE: [PATCH net-next] r8152: Add helper functions for SRAM2

From: Hayes Wang

Date: Thu Apr 02 2026 - 09:40:07 EST


> From: Chih Kai Hsu <hsu.chih.kai@xxxxxxxxxxx>
> Sent: Wednesday, April 1, 2026 7:56 PM
> To: kuba@xxxxxxxxxx; davem@xxxxxxxxxxxxx
> Cc: netdev@xxxxxxxxxxxxxxx; nic_swsd <nic_swsd@xxxxxxxxxxx>;
> linux-kernel@xxxxxxxxxxxxxxx; linux-usb@xxxxxxxxxxxxxxx;
> edumazet@xxxxxxxxxx; bjorn@xxxxxxx; pabeni@xxxxxxxxxx; Chih Kai Hsu
> <hsu.chih.kai@xxxxxxxxxxx>
> Subject: [PATCH net-next] 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@xxxxxxxxxxx>

Reviewed-by: Hayes Wang <hayeswang@xxxxxxxxxxx>

Best Regards,
Hayes