Commit cc1122b0 authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller

net: phy: Fix spelling mistake: "advertisment"-> "advertisement"

Trivial fix to spelling mistake in comments and error message text.
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0913667a
...@@ -565,7 +565,7 @@ static int bcm7xxx_28nm_set_tunable(struct phy_device *phydev, ...@@ -565,7 +565,7 @@ static int bcm7xxx_28nm_set_tunable(struct phy_device *phydev,
if (ret) if (ret)
return ret; return ret;
/* Disable EEE advertisment since this prevents the PHY /* Disable EEE advertisement since this prevents the PHY
* from successfully linking up, trigger auto-negotiation restart * from successfully linking up, trigger auto-negotiation restart
* to let the MAC decide what to do. * to let the MAC decide what to do.
*/ */
......
...@@ -860,7 +860,7 @@ static int m88e1510_config_init(struct phy_device *phydev) ...@@ -860,7 +860,7 @@ static int m88e1510_config_init(struct phy_device *phydev)
return err; return err;
/* There appears to be a bug in the 88e1512 when used in /* There appears to be a bug in the 88e1512 when used in
* SGMII to copper mode, where the AN advertisment register * SGMII to copper mode, where the AN advertisement register
* clears the pause bits each time a negotiation occurs. * clears the pause bits each time a negotiation occurs.
* This means we can never be truely sure what was advertised, * This means we can never be truely sure what was advertised,
* so disable Pause support. * so disable Pause support.
......
...@@ -308,7 +308,7 @@ static int mv3310_read_status(struct phy_device *phydev) ...@@ -308,7 +308,7 @@ static int mv3310_read_status(struct phy_device *phydev)
if (val < 0) if (val < 0)
return val; return val;
/* Read the link partner's 1G advertisment */ /* Read the link partner's 1G advertisement */
val = phy_read_mmd(phydev, MDIO_MMD_AN, MV_AN_STAT1000); val = phy_read_mmd(phydev, MDIO_MMD_AN, MV_AN_STAT1000);
if (val < 0) if (val < 0)
return val; return val;
......
...@@ -163,11 +163,11 @@ int genphy_c45_read_link(struct phy_device *phydev, u32 mmd_mask) ...@@ -163,11 +163,11 @@ int genphy_c45_read_link(struct phy_device *phydev, u32 mmd_mask)
EXPORT_SYMBOL_GPL(genphy_c45_read_link); EXPORT_SYMBOL_GPL(genphy_c45_read_link);
/** /**
* genphy_c45_read_lpa - read the link partner advertisment and pause * genphy_c45_read_lpa - read the link partner advertisement and pause
* @phydev: target phy_device struct * @phydev: target phy_device struct
* *
* Read the Clause 45 defined base (7.19) and 10G (7.33) status registers, * Read the Clause 45 defined base (7.19) and 10G (7.33) status registers,
* filling in the link partner advertisment, pause and asym_pause members * filling in the link partner advertisement, pause and asym_pause members
* in @phydev. This assumes that the auto-negotiation MMD is present, and * in @phydev. This assumes that the auto-negotiation MMD is present, and
* the backplane bit (7.48.0) is clear. Clause 45 PHY drivers are expected * the backplane bit (7.48.0) is clear. Clause 45 PHY drivers are expected
* to fill in the remainder of the link partner advert from vendor registers. * to fill in the remainder of the link partner advert from vendor registers.
...@@ -176,7 +176,7 @@ int genphy_c45_read_lpa(struct phy_device *phydev) ...@@ -176,7 +176,7 @@ int genphy_c45_read_lpa(struct phy_device *phydev)
{ {
int val; int val;
/* Read the link partner's base page advertisment */ /* Read the link partner's base page advertisement */
val = phy_read_mmd(phydev, MDIO_MMD_AN, MDIO_AN_LPA); val = phy_read_mmd(phydev, MDIO_MMD_AN, MDIO_AN_LPA);
if (val < 0) if (val < 0)
return val; return val;
...@@ -185,7 +185,7 @@ int genphy_c45_read_lpa(struct phy_device *phydev) ...@@ -185,7 +185,7 @@ int genphy_c45_read_lpa(struct phy_device *phydev)
phydev->pause = val & LPA_PAUSE_CAP ? 1 : 0; phydev->pause = val & LPA_PAUSE_CAP ? 1 : 0;
phydev->asym_pause = val & LPA_PAUSE_ASYM ? 1 : 0; phydev->asym_pause = val & LPA_PAUSE_ASYM ? 1 : 0;
/* Read the link partner's 10G advertisment */ /* Read the link partner's 10G advertisement */
val = phy_read_mmd(phydev, MDIO_MMD_AN, MDIO_AN_10GBT_STAT); val = phy_read_mmd(phydev, MDIO_MMD_AN, MDIO_AN_10GBT_STAT);
if (val < 0) if (val < 0)
return val; return val;
......
...@@ -190,10 +190,10 @@ size_t phy_speeds(unsigned int *speeds, size_t size, ...@@ -190,10 +190,10 @@ size_t phy_speeds(unsigned int *speeds, size_t size,
} }
/** /**
* phy_resolve_aneg_linkmode - resolve the advertisments into phy settings * phy_resolve_aneg_linkmode - resolve the advertisements into phy settings
* @phydev: The phy_device struct * @phydev: The phy_device struct
* *
* Resolve our and the link partner advertisments into their corresponding * Resolve our and the link partner advertisements into their corresponding
* speed and duplex. If full duplex was negotiated, extract the pause mode * speed and duplex. If full duplex was negotiated, extract the pause mode
* from the link partner mask. * from the link partner mask.
*/ */
......
...@@ -364,7 +364,7 @@ static void phylink_get_fixed_state(struct phylink *pl, struct phylink_link_stat ...@@ -364,7 +364,7 @@ static void phylink_get_fixed_state(struct phylink *pl, struct phylink_link_stat
} }
/* Flow control is resolved according to our and the link partners /* Flow control is resolved according to our and the link partners
* advertisments using the following drawn from the 802.3 specs: * advertisements using the following drawn from the 802.3 specs:
* Local device Link partner * Local device Link partner
* Pause AsymDir Pause AsymDir Result * Pause AsymDir Pause AsymDir Result
* 1 X 1 X TX+RX * 1 X 1 X TX+RX
...@@ -683,7 +683,7 @@ static int phylink_bringup_phy(struct phylink *pl, struct phy_device *phy) ...@@ -683,7 +683,7 @@ static int phylink_bringup_phy(struct phylink *pl, struct phy_device *phy)
linkmode_copy(pl->supported, supported); linkmode_copy(pl->supported, supported);
linkmode_copy(pl->link_config.advertising, config.advertising); linkmode_copy(pl->link_config.advertising, config.advertising);
/* Restrict the phy advertisment according to the MAC support. */ /* Restrict the phy advertisement according to the MAC support. */
ethtool_convert_link_mode_to_legacy_u32(&advertising, config.advertising); ethtool_convert_link_mode_to_legacy_u32(&advertising, config.advertising);
phy->advertising = advertising; phy->advertising = advertising;
mutex_unlock(&pl->state_mutex); mutex_unlock(&pl->state_mutex);
...@@ -887,7 +887,7 @@ void phylink_start(struct phylink *pl) ...@@ -887,7 +887,7 @@ void phylink_start(struct phylink *pl)
/* Apply the link configuration to the MAC when starting. This allows /* Apply the link configuration to the MAC when starting. This allows
* a fixed-link to start with the correct parameters, and also * a fixed-link to start with the correct parameters, and also
* ensures that we set the appropriate advertisment for Serdes links. * ensures that we set the appropriate advertisement for Serdes links.
*/ */
phylink_resolve_flow(pl, &pl->link_config); phylink_resolve_flow(pl, &pl->link_config);
phylink_mac_config(pl, &pl->link_config); phylink_mac_config(pl, &pl->link_config);
...@@ -1074,7 +1074,7 @@ int phylink_ethtool_ksettings_set(struct phylink *pl, ...@@ -1074,7 +1074,7 @@ int phylink_ethtool_ksettings_set(struct phylink *pl,
config = pl->link_config; config = pl->link_config;
/* Mask out unsupported advertisments */ /* Mask out unsupported advertisements */
linkmode_and(config.advertising, kset->link_modes.advertising, linkmode_and(config.advertising, kset->link_modes.advertising,
pl->supported); pl->supported);
...@@ -1119,7 +1119,7 @@ int phylink_ethtool_ksettings_set(struct phylink *pl, ...@@ -1119,7 +1119,7 @@ int phylink_ethtool_ksettings_set(struct phylink *pl,
if (phylink_validate(pl, pl->supported, &config)) if (phylink_validate(pl, pl->supported, &config))
return -EINVAL; return -EINVAL;
/* If autonegotiation is enabled, we must have an advertisment */ /* If autonegotiation is enabled, we must have an advertisement */
if (config.an_enabled && phylink_is_empty_linkmode(config.advertising)) if (config.an_enabled && phylink_is_empty_linkmode(config.advertising))
return -EINVAL; return -EINVAL;
...@@ -1606,7 +1606,7 @@ static int phylink_sfp_module_insert(void *upstream, ...@@ -1606,7 +1606,7 @@ static int phylink_sfp_module_insert(void *upstream,
iface = sfp_select_interface(pl->sfp_bus, id, config.advertising); iface = sfp_select_interface(pl->sfp_bus, id, config.advertising);
if (iface == PHY_INTERFACE_MODE_NA) { if (iface == PHY_INTERFACE_MODE_NA) {
netdev_err(pl->netdev, netdev_err(pl->netdev,
"selection of interface failed, advertisment %*pb\n", "selection of interface failed, advertisement %*pb\n",
__ETHTOOL_LINK_MODE_MASK_NBITS, config.advertising); __ETHTOOL_LINK_MODE_MASK_NBITS, config.advertising);
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment