mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
net: stmmac: dwmac4: Report DCB feature capability
Bit 16 of the MAC HW Feature1 register reports the DCB (Data Centre Bridging) feature. Read it so that dma_cap.dcben and the debugfs report it accurately. Right now it is always reported as being disabled. Signed-off-by: Ovidiu Panait <ovidiu.panait.rb@renesas.com> Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com> Link: https://patch.msgid.link/20260603173644.24371-1-ovidiu.panait.rb@renesas.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
a762fabd7e
commit
3a58a1b8d5
|
|
@ -198,6 +198,7 @@ enum power_event {
|
|||
#define GMAC_HW_FEAT_AVSEL BIT(20)
|
||||
#define GMAC_HW_TSOEN BIT(18)
|
||||
#define GMAC_HW_FEAT_SPHEN BIT(17)
|
||||
#define GMAC_HW_FEAT_DCBEN BIT(16)
|
||||
#define GMAC_HW_ADDR64 GENMASK(15, 14)
|
||||
#define GMAC_HW_TXFIFOSIZE GENMASK(10, 6)
|
||||
#define GMAC_HW_RXFIFOSIZE GENMASK(4, 0)
|
||||
|
|
|
|||
|
|
@ -391,6 +391,7 @@ static int dwmac4_get_hw_feature(void __iomem *ioaddr,
|
|||
dma_cap->av = (hw_cap & GMAC_HW_FEAT_AVSEL) >> 20;
|
||||
dma_cap->tsoen = (hw_cap & GMAC_HW_TSOEN) >> 18;
|
||||
dma_cap->sphen = (hw_cap & GMAC_HW_FEAT_SPHEN) >> 17;
|
||||
dma_cap->dcben = (hw_cap & GMAC_HW_FEAT_DCBEN) >> 16;
|
||||
|
||||
dma_cap->addr64 = (hw_cap & GMAC_HW_ADDR64) >> 14;
|
||||
switch (dma_cap->addr64) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user