From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Fainelli Subject: [PATCH 02/10] net: phy: update phy_print_status to show pause settings Date: Tue, 11 Feb 2014 17:27:34 -0800 Message-ID: <1392168462-18888-3-git-send-email-f.fainelli@gmail.com> References: <1392168462-18888-1-git-send-email-f.fainelli@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Cc: , Florian Fainelli To: Return-path: Received: from mail-gw1-out.broadcom.com ([216.31.210.62]:11050 "EHLO mail-gw1-out.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752062AbaBLB2T (ORCPT ); Tue, 11 Feb 2014 20:28:19 -0500 In-Reply-To: <1392168462-18888-1-git-send-email-f.fainelli@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: Update phy_print_status() to also display the PHY device pause settings (rx/tx or off). Suggested-by: Joe Perches Signed-off-by: Florian Fainelli --- drivers/net/phy/phy.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index c35b2e7..8ae2260 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c @@ -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"); } -- 1.8.3.2