Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df40cc88 authored by Florian Fainelli's avatar Florian Fainelli Committed by David S. Miller
Browse files

net: phy: update phy_print_status to show pause settings



Update phy_print_status() to also display the PHY device pause settings
(rx/tx or off).

Suggested-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 43b6329f
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -45,9 +45,11 @@
void phy_print_status(struct phy_device *phydev)
{
	if (phydev->link) {
		netdev_info(phydev->attached_dev, "Link is Up - %d/%s\n",
		netdev_info(phydev->attached_dev,
			"Link is Up - %d/%s - flow control %s\n",
			phydev->speed,
			DUPLEX_FULL == phydev->duplex ? "Full" : "Half");
			DUPLEX_FULL == phydev->duplex ? "Full" : "Half",
			phydev->pause ? "rx/tx" : "off");
	} else	{
		netdev_info(phydev->attached_dev, "Link is Down\n");
	}