netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* QUSGMII control word
@ 2023-06-02 12:18 Russell King (Oracle)
  2023-06-05  6:13 ` Maxime Chevallier
  0 siblings, 1 reply; 4+ messages in thread
From: Russell King (Oracle) @ 2023-06-02 12:18 UTC (permalink / raw)
  To: Maxime Chevallier; +Cc: Andrew Lunn, netdev

Hi Maxime,

Looking at your commit which introduced QUSGMII -
5e61fe157a27 ("net: phy: Introduce QUSGMII PHY mode"), are you sure
your decoding of the control word is correct?

I've found some information online which suggests that QUSGMII uses a
slightly different format to the control word from SGMII. Most of the
bits are the same, but the speed bits occupy the three bits from 11:9,
and 10M, 100M and 1G are encoded using bits 10:9, whereas in SGMII
they are bits 11:10. In other words, in QUSGMII they are shifted one
bit down. In your commit, you used the SGMII decoder for QUSGMII,
which would mean we'd be picking out the wrong bits for decoding the
speed.

QUSGMII also introduces EEE information into bits 8 and 7 whereas
these are reserved in SGMII.

Please could you take a look, because I think we need a different
decoder for the QUSGMII speed bits.

Thanks.

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-06-05 12:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-02 12:18 QUSGMII control word Russell King (Oracle)
2023-06-05  6:13 ` Maxime Chevallier
2023-06-05 10:45   ` Russell King (Oracle)
2023-06-05 12:25   ` Vladimir Oltean

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).