diff options
| author | Jakub Kicinski <kuba@kernel.org> | 2026-03-06 15:39:12 -0800 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-03-06 15:39:13 -0800 |
| commit | db29970799e499b88fea048d8a3ad81bd95672c9 (patch) | |
| tree | 763a14552bc94e7516a06178dbe9735f9ce9cf03 /include | |
| parent | 507ccb668f2db1377defdc54068eab3398bd5974 (diff) | |
| parent | e4fd855c52ec5af34d920206190be29919fadca3 (diff) | |
Merge branch 'net-stmmac-mdio-related-cleanups'
Russell King says:
====================
net: stmmac: mdio related cleanups
The first four patches clean up the MDC clock divisor selection code,
turning the three different ways we choose a divisor into tabular form,
rather than doing the selection purely in code.
Convert MDIO to use field_prep() which allows a non-constant mask to be
used when preparing fields.
Then use u32 and the associated typed GENMASK for MDIO register field
definitions.
Finally, an extra couple of patches that use appropriate types in
struct mdio_bus_data.
====================
Link: https://patch.msgid.link/aald--qJquWGIvmO@shell.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/stmmac.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/stmmac.h b/include/linux/stmmac.h index 2fc169c7117e..965ada809fdf 100644 --- a/include/linux/stmmac.h +++ b/include/linux/stmmac.h @@ -84,12 +84,12 @@ struct stmmac_priv; /* Platfrom data for platform device structure's platform_data field */ struct stmmac_mdio_bus_data { - unsigned int phy_mask; - unsigned int pcs_mask; - unsigned int default_an_inband; + u32 phy_mask; + u32 pcs_mask; int *irqs; int probed_phy_irq; bool needs_reset; + bool default_an_inband; }; struct stmmac_dma_cfg { |
