LKML Archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH] pps: Increase PPS_MAX_SOURCES value.
@ 2023-06-05 20:31 Charlie Johnston
  2023-06-07  7:33 ` Rodolfo Giometti
  0 siblings, 1 reply; 9+ messages in thread
From: Charlie Johnston @ 2023-06-05 20:31 UTC (permalink / raw)
  To: giometti; +Cc: linux-kernel, brenda.streiff, Charlie Johnston

For consistency with what ptp uses for minors, this
change sets PPS_MAX_SOURCES to MINORMASK + 1.

The PPS_MAX_SOURCES value is currently set to 16. In
some cases this was not sufficient for a system. For
example, a system with multiple (4+) PCIe cards each
with 4 PTP-capable ethernet interfaces could run out
of the available PPS major:minors if each interface
registers a PPS source.

Signed-off-by: Charlie Johnston <charlie.johnston@ni.com>
---
 include/uapi/linux/pps.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/pps.h b/include/uapi/linux/pps.h
index 009ebcd8ced5..85f472330da8 100644
--- a/include/uapi/linux/pps.h
+++ b/include/uapi/linux/pps.h
@@ -26,7 +26,7 @@
 #include <linux/types.h>
 
 #define PPS_VERSION		"5.3.6"
-#define PPS_MAX_SOURCES		16		/* should be enough... */
+#define PPS_MAX_SOURCES		(MINORMASK + 1)
 
 /* Implementation note: the logical states ``assert'' and ``clear''
  * are implemented in terms of the chip register, i.e. ``assert''
-- 
2.30.2


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

end of thread, other threads:[~2023-06-23  2:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-05 20:31 [RFC PATCH] pps: Increase PPS_MAX_SOURCES value Charlie Johnston
2023-06-07  7:33 ` Rodolfo Giometti
2023-06-07 22:07   ` Charlie Johnston
2023-06-09  7:30     ` Rodolfo Giometti
2023-06-09 21:00       ` Charlie Johnston
2023-06-12 16:07         ` Rodolfo Giometti
2023-06-20 20:42           ` Charlie Johnston
2023-06-21 15:31             ` Rodolfo Giometti
2023-06-23  2:03               ` Charlie Johnston

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 read-only IMAP folder(s) and NNTP newsgroup(s).