realtek: Fix reset register access
authorBirger Koblitz <git@birger-koblitz.de>
Thu, 12 May 2022 18:40:45 +0000 (20:40 +0200)
committerSander Vanheule <sander@svanheule.net>
Wed, 28 Dec 2022 15:53:56 +0000 (16:53 +0100)
commite143e27c8ca6b67af24c8bf8f2eb857919c35e48
tree0a6d90fefca232415842a182108f9d0ee27b0ddf
parent5863363493565f4b651baeb83251769f2b6d8929
realtek: Fix reset register access

The reset register on RTL93xx not merely have bits to execute
a reset of a hardware component, but also configuration bits for
reset procedures. Keep them during executing a reset.

Signed-off-by: Birger Koblitz <git@birger-koblitz.de>
Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
[backport to 5.10 kernel]
Signed-off-by: Sander Vanheule <sander@svanheule.net>
target/linux/realtek/files-5.10/drivers/net/ethernet/rtl838x_eth.c
target/linux/realtek/files-5.15/drivers/net/ethernet/rtl838x_eth.c