Commit 1953feb0 authored by Wenpeng Liang's avatar Wenpeng Liang Committed by David S. Miller

net: phy: correct format of block comments

Block comments should not use a trailing */ on a separate line and every
line of a block comment should start with an '*'.
Signed-off-by: default avatarWenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: default avatarWeihang Li <liweihang@huawei.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 775f2547
...@@ -68,7 +68,8 @@ static int ns_ack_interrupt(struct phy_device *phydev) ...@@ -68,7 +68,8 @@ static int ns_ack_interrupt(struct phy_device *phydev)
return ret; return ret;
/* Clear the interrupt status bit by writing a “1” /* Clear the interrupt status bit by writing a “1”
* to the corresponding bit in INT_CLEAR (2:0 are reserved) */ * to the corresponding bit in INT_CLEAR (2:0 are reserved)
*/
ret = phy_write(phydev, DP83865_INT_CLEAR, ret & ~0x7); ret = phy_write(phydev, DP83865_INT_CLEAR, ret & ~0x7);
return ret; return ret;
...@@ -150,7 +151,8 @@ static int ns_config_init(struct phy_device *phydev) ...@@ -150,7 +151,8 @@ static int ns_config_init(struct phy_device *phydev)
{ {
ns_giga_speed_fallback(phydev, ALL_FALLBACK_ON); ns_giga_speed_fallback(phydev, ALL_FALLBACK_ON);
/* In the latest MAC or switches design, the 10 Mbps loopback /* In the latest MAC or switches design, the 10 Mbps loopback
is desired to be turned off. */ * is desired to be turned off.
*/
ns_10_base_t_hdx_loopack(phydev, hdx_loopback_off); ns_10_base_t_hdx_loopack(phydev, hdx_loopback_off);
return ns_ack_interrupt(phydev); return ns_ack_interrupt(phydev);
} }
......
...@@ -76,7 +76,8 @@ EXPORT_SYMBOL_GPL(phy_duplex_to_str); ...@@ -76,7 +76,8 @@ EXPORT_SYMBOL_GPL(phy_duplex_to_str);
/* A mapping of all SUPPORTED settings to speed/duplex. This table /* A mapping of all SUPPORTED settings to speed/duplex. This table
* must be grouped by speed and sorted in descending match priority * must be grouped by speed and sorted in descending match priority
* - iow, descending speed. */ * - iow, descending speed.
*/
#define PHY_SETTING(s, d, b) { .speed = SPEED_ ## s, .duplex = DUPLEX_ ## d, \ #define PHY_SETTING(s, d, b) { .speed = SPEED_ ## s, .duplex = DUPLEX_ ## d, \
.bit = ETHTOOL_LINK_MODE_ ## b ## _BIT} .bit = ETHTOOL_LINK_MODE_ ## b ## _BIT}
......
...@@ -182,7 +182,8 @@ static int phylink_parse_fixedlink(struct phylink *pl, ...@@ -182,7 +182,8 @@ static int phylink_parse_fixedlink(struct phylink *pl,
pl->link_config.duplex = DUPLEX_FULL; pl->link_config.duplex = DUPLEX_FULL;
/* We treat the "pause" and "asym-pause" terminology as /* We treat the "pause" and "asym-pause" terminology as
* defining the link partner's ability. */ * defining the link partner's ability.
*/
if (fwnode_property_read_bool(fixed_node, "pause")) if (fwnode_property_read_bool(fixed_node, "pause"))
__set_bit(ETHTOOL_LINK_MODE_Pause_BIT, __set_bit(ETHTOOL_LINK_MODE_Pause_BIT,
pl->link_config.lp_advertising); pl->link_config.lp_advertising);
...@@ -685,7 +686,8 @@ static void phylink_resolve(struct work_struct *w) ...@@ -685,7 +686,8 @@ static void phylink_resolve(struct work_struct *w)
phylink_mac_pcs_get_state(pl, &link_state); phylink_mac_pcs_get_state(pl, &link_state);
/* If we have a phy, the "up" state is the union of /* If we have a phy, the "up" state is the union of
* both the PHY and the MAC */ * both the PHY and the MAC
*/
if (pl->phydev) if (pl->phydev)
link_state.link &= pl->phy_state.link; link_state.link &= pl->phy_state.link;
...@@ -694,7 +696,8 @@ static void phylink_resolve(struct work_struct *w) ...@@ -694,7 +696,8 @@ static void phylink_resolve(struct work_struct *w)
link_state.interface = pl->phy_state.interface; link_state.interface = pl->phy_state.interface;
/* If we have a PHY, we need to update with /* If we have a PHY, we need to update with
* the PHY flow control bits. */ * the PHY flow control bits.
*/
link_state.pause = pl->phy_state.pause; link_state.pause = pl->phy_state.pause;
mac_config = true; mac_config = true;
} }
......
...@@ -249,7 +249,8 @@ static int vsc73xx_config_aneg(struct phy_device *phydev) ...@@ -249,7 +249,8 @@ static int vsc73xx_config_aneg(struct phy_device *phydev)
/* This adds a skew for both TX and RX clocks, so the skew should only be /* This adds a skew for both TX and RX clocks, so the skew should only be
* applied to "rgmii-id" interfaces. It may not work as expected * applied to "rgmii-id" interfaces. It may not work as expected
* on "rgmii-txid", "rgmii-rxid" or "rgmii" interfaces. */ * on "rgmii-txid", "rgmii-rxid" or "rgmii" interfaces.
*/
static int vsc8601_add_skew(struct phy_device *phydev) static int vsc8601_add_skew(struct phy_device *phydev)
{ {
int ret; int ret;
......
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