diff options
author | Birger Koblitz <git@birger-koblitz.de> | 2022-05-12 20:40:45 +0200 |
---|---|---|
committer | Sander Vanheule <sander@svanheule.net> | 2022-12-28 16:53:56 +0100 |
commit | e143e27c8ca6b67af24c8bf8f2eb857919c35e48 (patch) | |
tree | 0a6d90fefca232415842a182108f9d0ee27b0ddf /target/linux/realtek/files-5.15 | |
parent | 5863363493565f4b651baeb83251769f2b6d8929 (diff) | |
download | upstream-e143e27c8ca6b67af24c8bf8f2eb857919c35e48.tar.gz upstream-e143e27c8ca6b67af24c8bf8f2eb857919c35e48.tar.bz2 upstream-e143e27c8ca6b67af24c8bf8f2eb857919c35e48.zip |
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>
Diffstat (limited to 'target/linux/realtek/files-5.15')
-rw-r--r-- | target/linux/realtek/files-5.15/drivers/net/ethernet/rtl838x_eth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/realtek/files-5.15/drivers/net/ethernet/rtl838x_eth.c b/target/linux/realtek/files-5.15/drivers/net/ethernet/rtl838x_eth.c index 1c473cc7f3..857d389f12 100644 --- a/target/linux/realtek/files-5.15/drivers/net/ethernet/rtl838x_eth.c +++ b/target/linux/realtek/files-5.15/drivers/net/ethernet/rtl838x_eth.c @@ -675,7 +675,7 @@ static void rtl838x_hw_reset(struct rtl838x_eth_priv *priv) else reset_mask = 0xc; - sw_w32(reset_mask, priv->r->rst_glb_ctrl); + sw_w32_mask(0, reset_mask, priv->r->rst_glb_ctrl); do { /* Wait for reset of NIC and Queues done */ udelay(20); |