]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
pps: bump PPS device count
authorVadim Fedorenko <vadim.fedorenko@linux.dev>
Fri, 15 May 2026 13:50:28 +0000 (13:50 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 19 May 2026 16:32:27 +0000 (09:32 -0700)
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.

Signed-off-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Acked-by: Rodolfo Giometti <giometti@enneenne.com>
Link: https://patch.msgid.link/20260515135028.2021318-1-vadim.fedorenko@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/uapi/linux/pps.h

index 009ebcd8ced5e2f860486d4d7a537207a7353dad..1088dea65e12f30381615af66165cc83796e7cf2 100644 (file)
@@ -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''