mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-18 18:56:37 +00:00
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>
This commit is contained in:
parent
5863363493
commit
e143e27c8c
@ -682,7 +682,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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user