netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] ptp: ocp: Add serial port information to the debug summary
@ 2022-03-03 23:37 Jonathan Lemon
  2022-03-03 23:37 ` [PATCH net-next] ptp: ocp: correct label for error path Jonathan Lemon
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Jonathan Lemon @ 2022-03-03 23:37 UTC (permalink / raw)
  To: netdev; +Cc: richardcochran, davem, kuba, kernel-team

On the debug summary page, show the /dev/ttyS<port> mapping.

Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com>
---
 drivers/ptp/ptp_ocp.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/ptp/ptp_ocp.c b/drivers/ptp/ptp_ocp.c
index cfe744b80407..5e3e06acaf87 100644
--- a/drivers/ptp/ptp_ocp.c
+++ b/drivers/ptp/ptp_ocp.c
@@ -2109,6 +2109,14 @@ ptp_ocp_summary_show(struct seq_file *s, void *data)
 	sma_out = ioread32(&bp->sma->gpio2);
 
 	seq_printf(s, "%7s: /dev/ptp%d\n", "PTP", ptp_clock_index(bp->ptp));
+	if (bp->gnss_port != -1)
+		seq_printf(s, "%7s: /dev/ttyS%d\n", "GNSS1", bp->gnss_port);
+	if (bp->gnss2_port != -1)
+		seq_printf(s, "%7s: /dev/ttyS%d\n", "GNSS2", bp->gnss2_port);
+	if (bp->mac_port != -1)
+		seq_printf(s, "%7s: /dev/ttyS%d\n", "MAC", bp->mac_port);
+	if (bp->nmea_port != -1)
+		seq_printf(s, "%7s: /dev/ttyS%d\n", "NMEA", bp->nmea_port);
 
 	sma1_show(dev, NULL, buf);
 	seq_printf(s, "   sma1: %s", buf);
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2022-03-07 21:31 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-03 23:37 [PATCH net-next] ptp: ocp: Add serial port information to the debug summary Jonathan Lemon
2022-03-03 23:37 ` [PATCH net-next] ptp: ocp: correct label for error path Jonathan Lemon
2022-03-03 23:37 ` [PATCH net-next 0/2] ptp: ocp: update devlink information Jonathan Lemon
2022-03-04  4:56   ` Jakub Kicinski
2022-03-04  5:29     ` Jonathan Lemon
2022-03-03 23:38 ` [PATCH net-next 1/2] ptp: ocp: add nvmem interface for accessing eeprom Jonathan Lemon
2022-03-04  5:01   ` Jakub Kicinski
2022-03-04  5:39     ` Jonathan Lemon
2022-03-04 16:18       ` Jakub Kicinski
2022-03-04 16:50         ` Jonathan Lemon
2022-03-05  3:11           ` Jakub Kicinski
2022-03-06 22:53             ` Jonathan Lemon
2022-03-07 21:31               ` Jakub Kicinski
2022-03-03 23:38 ` [PATCH net-next 2/2] ptp: ocp: Update devlink firmware display path Jonathan Lemon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).