Commit 1769af43 authored by Steven J. Hill's avatar Steven J. Hill Committed by David S. Miller

ethernet: cavium: octeon: Switch to using netdev_info().

Signed-off-by: default avatarSteven J. Hill <Steven.Hill@cavium.com>
Signed-off-by: default avatarDavid Daney <david.daney@cavium.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f65163fe
...@@ -705,14 +705,15 @@ static int octeon_mgmt_ioctl_hwtstamp(struct net_device *netdev, ...@@ -705,14 +705,15 @@ static int octeon_mgmt_ioctl_hwtstamp(struct net_device *netdev,
u64 clock_comp = (NSEC_PER_SEC << 32) / octeon_get_io_clock_rate(); u64 clock_comp = (NSEC_PER_SEC << 32) / octeon_get_io_clock_rate();
if (!ptp.s.ptp_en) if (!ptp.s.ptp_en)
cvmx_write_csr(CVMX_MIO_PTP_CLOCK_COMP, clock_comp); cvmx_write_csr(CVMX_MIO_PTP_CLOCK_COMP, clock_comp);
pr_info("PTP Clock: Using sclk reference at %lld Hz\n", netdev_info(netdev,
(NSEC_PER_SEC << 32) / clock_comp); "PTP Clock using sclk reference @ %lldHz\n",
(NSEC_PER_SEC << 32) / clock_comp);
} else { } else {
/* The clock is already programmed to use a GPIO */ /* The clock is already programmed to use a GPIO */
u64 clock_comp = cvmx_read_csr(CVMX_MIO_PTP_CLOCK_COMP); u64 clock_comp = cvmx_read_csr(CVMX_MIO_PTP_CLOCK_COMP);
pr_info("PTP Clock: Using GPIO %d at %lld Hz\n", netdev_info(netdev,
ptp.s.ext_clk_in, "PTP Clock using GPIO%d @ %lld Hz\n",
(NSEC_PER_SEC << 32) / clock_comp); ptp.s.ext_clk_in, (NSEC_PER_SEC << 32) / clock_comp);
} }
/* Enable the clock if it wasn't done already */ /* Enable the clock if it wasn't done already */
...@@ -926,14 +927,11 @@ static void octeon_mgmt_adjust_link(struct net_device *netdev) ...@@ -926,14 +927,11 @@ static void octeon_mgmt_adjust_link(struct net_device *netdev)
spin_unlock_irqrestore(&p->lock, flags); spin_unlock_irqrestore(&p->lock, flags);
if (link_changed != 0) { if (link_changed != 0) {
if (link_changed > 0) { if (link_changed > 0)
pr_info("%s: Link is up - %d/%s\n", netdev->name, netdev_info(netdev, "Link is up - %d/%s\n",
phydev->speed, phydev->speed, phydev->duplex == DUPLEX_FULL ? "Full" : "Half");
phydev->duplex == DUPLEX_FULL ? else
"Full" : "Half"); netdev_info(netdev, "Link is down\n");
} else {
pr_info("%s: Link is down\n", netdev->name);
}
} }
} }
......
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