mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-05 14:07:41 -07:00
hw/net/lan9118_phy: Fix off-by-one error in MII_ANLPAR register
Turns 0x70 into 0xe0 (== 0x70 << 1) which adds the missing MII_ANLPAR_TX and
fixes the MSB of selector field to be zero, as specified in the datasheet.
Fixes: 2a42499017 "LAN9118 emulation"
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20241102125724.532843-4-shentey@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
c01194e17a
commit
bbaaee8cc6
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ uint16_t lan9118_phy_read(Lan9118PhyState *s, int reg)
|
|||
val = s->advertise;
|
||||
break;
|
||||
case 5: /* Auto-neg Link Partner Ability */
|
||||
val = 0x0f71;
|
||||
val = 0x0fe1;
|
||||
break;
|
||||
case 6: /* Auto-neg Expansion */
|
||||
val = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue