Message ID | 169674973699.6685.14097094770329042160-0@git.sr.ht |
---|---|
State | New |
Headers | show |
Series | [QEMU] tulip: Fix LXT970 PHY registers | expand |
Hi Dmitry, On 8/10/23 08:54, ~disean wrote: > From: Dmitry Borisov <di.sean@protonmail.com> > > Fix incorrect MII status value (0xf02c). > > Use default values from a 21143-based board: > https://www.beowulf.org/pipermail/tulip-bug/2000-February/000485.html Thank you for your patch! Cc'ing the maintainers for this file (you can get them doing:) $ ./scripts/get_maintainer.pl -f hw/net/tulip.c Sven Schnelle <svens@stackframe.org> (maintainer:tulip) Jason Wang <jasowang@redhat.com> (odd fixer:Network devices) Regards, Phil. > Signed-off-by: Dmitry Borisov <di.sean@protonmail.com> > --- > hw/net/tulip.c | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > mode change 100644 => 100755 hw/net/tulip.c > > diff --git a/hw/net/tulip.c b/hw/net/tulip.c > old mode 100644 > new mode 100755 > index 915e5fb595..43e8f4bcb5 > --- a/hw/net/tulip.c > +++ b/hw/net/tulip.c > @@ -415,14 +415,15 @@ static void tulip_update_rs(TULIPState *s, int state) > trace_tulip_rx_state(tulip_rx_state_name(state)); > } > > +/* LEVEL1 LXT970 PHY registers */ > static uint16_t tulip_mdi_default[] = { > /* MDI Registers 0 - 6, 7 */ > - 0x3100, 0xf02c, 0x7810, 0x0000, 0x0501, 0x4181, 0x0000, 0x0000, > + 0x1000, 0x782d, 0x7810, 0x0001, 0x01e1, 0x41e1, 0x0001, 0x0000, > /* MDI Registers 8 - 15 */ > 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, > /* MDI Registers 16 - 31 */ > - 0x0003, 0x0000, 0x0001, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, > - 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, > + 0x0000, 0x0000, 0x4000, 0x0000, 0x38c8, 0x0010, 0x0000, 0x0002, > + 0x0001, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, > }; > > /* Readonly mask for MDI (PHY) registers */
diff --git a/hw/net/tulip.c b/hw/net/tulip.c old mode 100644 new mode 100755 index 915e5fb595..43e8f4bcb5 --- a/hw/net/tulip.c +++ b/hw/net/tulip.c @@ -415,14 +415,15 @@ static void tulip_update_rs(TULIPState *s, int state) trace_tulip_rx_state(tulip_rx_state_name(state)); } +/* LEVEL1 LXT970 PHY registers */ static uint16_t tulip_mdi_default[] = { /* MDI Registers 0 - 6, 7 */ - 0x3100, 0xf02c, 0x7810, 0x0000, 0x0501, 0x4181, 0x0000, 0x0000, + 0x1000, 0x782d, 0x7810, 0x0001, 0x01e1, 0x41e1, 0x0001, 0x0000, /* MDI Registers 8 - 15 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, /* MDI Registers 16 - 31 */ - 0x0003, 0x0000, 0x0001, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, - 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + 0x0000, 0x0000, 0x4000, 0x0000, 0x38c8, 0x0010, 0x0000, 0x0002, + 0x0001, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, }; /* Readonly mask for MDI (PHY) registers */