hw/net/lan9118_phy: Fix off-by-one error in MII_ANLPAR register
authorBernhard Beschow <shentey@gmail.com>
Wed, 11 Dec 2024 15:30:52 +0000 (15:30 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 11 Dec 2024 15:30:52 +0000 (15:30 +0000)
commitbbaaee8cc665bbfea1a77f7940b5bb7e02d2a7ef
treeba7bbaa9e4ed7b75428ccf43a1a329bd32014231
parentc01194e17a01b2a17805dfa0c710aad7c05eab69
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: 2a424990170b "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>
hw/net/lan9118_phy.c