Skip to contentSkip to conversation

pps: bump PPS device count

PATCH Applied Vadim Fedorenko 4 participants 4 messages May 15 – May 19

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

PATCH 1/1 pps: bump PPS device count

Modern systems may have more than 16 PPS sources and current hard-coded limit breaks registration of some devices. Let's bump the limit to 256 in hope it will be enough in foreseen future.

---
 include/uapi/linux/pps.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/uapi/linux/pps.h +1 -1
index 009ebcd8ced5..1088dea65e12 100644
@@ -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		256		/* should be enough... */
 
 /* Implementation note: the logical states ``assert'' and ``clear''
  * are implemented in terms of the chip register, i.e. ``assert''
Signature · 1 line
2.47.3
maintainer
#1 lore raw
Quoted 5 lines · On Fri, 15 May 2026 13:50:28 +0000 Vadim Fedorenko wrote:

Modern systems may have more than 16 PPS sources and current hard-coded limit breaks registration of some devices. Let's bump the limit to 256 in hope it will be enough in foreseen future.

Hi Rodolfo! Could you TAL / ack?
Or perhaps you have a tree via which you'll route this?

Quoted 13 lines
include/uapi/linux/pps.h +1 -1
index 009ebcd8ced5..1088dea65e12 100644
@@ -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		256		/* should be enough... */
 
 /* Implementation note: the logical states ``assert'' and ``clear''
  * are implemented in terms of the chip register, i.e. ``assert''
maintainer Acked-by on v1 1/1
#2 lore raw
In reply to Vadim Fedorenko
Quoted 5 lines · Vadim Fedorenko

Modern systems may have more than 16 PPS sources and current hard-coded limit breaks registration of some devices. Let's bump the limit to 256 in hope it will be enough in foreseen future.

Quoted 17 lines
---
  include/uapi/linux/pps.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
include/uapi/linux/pps.h +1 -1
index 009ebcd8ced5..1088dea65e12 100644
@@ -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		256		/* should be enough... */
 
  /* Implementation note: the logical states ``assert'' and ``clear''
   * are implemented in terms of the chip register, i.e. ``assert''
Signature · 4 lines
GNU/Linux Solutions                  e-mail: [email protected]
Linux Device Driver                          [email protected]
Embedded Systems                     phone:  +39 349 2432127
UNIX programming
#3 lore raw
In reply to Vadim Fedorenko
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

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

Quoted 8 lines · On Fri, 15 May 2026 13:50:28 +0000 you wrote:

Modern systems may have more than 16 PPS sources and current hard-coded limit breaks registration of some devices. Let's bump the limit to 256 in hope it will be enough in foreseen future.

---
 include/uapi/linux/pps.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Here is the summary with links:
- [net-next] pps: bump PPS device count

    https://git.kernel.org/netdev/net-next/c/9bf93cb2e180

You are awesome, thank you!

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