Skip to contentSkip to conversation

ptp: ocp: Add serial port information to the debug summary

PATCH RESEND Applied Jonathan Lemon 2 participants 2 messages Mar 4, 2022 – Mar 5, 2022

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 ptp: ocp: Add serial port information to the debug summary

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

---
 drivers/ptp/ptp_ocp.c | 8 ++++++++
 1 file changed, 8 insertions(+)
drivers/ptp/ptp_ocp.c +8 -0
index cfe744b80407..5e3e06acaf87 100644
@@ -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);
Signature · 1 line
2.31.1
#1 lore raw
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:

Quoted 6 lines · On Thu, 3 Mar 2022 21:46:15 -0800 you wrote:

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

---
 drivers/ptp/ptp_ocp.c | 8 ++++++++
 1 file changed, 8 insertions(+)

Here is the summary with links:
- [RESEND,net-next] ptp: ocp: Add serial port information to the debug summary

    https://git.kernel.org/netdev/net-next/c/61fd7ac21522

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html