Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp21879398rwd; Fri, 30 Jun 2023 00:34:20 -0700 (PDT) X-Google-Smtp-Source: APBJJlFj+0STtIvNQjVzfzr0W5A07MdiqoOQaxvPmJi/T2UY2Ti2GmsmGqpANPiK/1Yt4h4SEiLW X-Received: by 2002:a17:902:ea08:b0:1b8:5aba:509d with SMTP id s8-20020a170902ea0800b001b85aba509dmr1159830plg.21.1688110460348; Fri, 30 Jun 2023 00:34:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688110460; cv=none; d=google.com; s=arc-20160816; b=jNYffF6JhStYDNsCa154OHN2bF7S1bacPHBJCrKdVvZ5TNmzRBHirVs3EYBjLWMaWN VKdXHzDX+sG0zyGlusH0bwqhPwMWPhd9Ru+/Nthv5qIW7xuaCGWcaBlw5Jh728T13Bbq v60hx5jkf+XAIy+wL4tTbFI4QCe99W48NHB5Q/E/5U9RrjWtXOANRMpMFX+bFsmY2kRn LAUaGfxC2WXAty5Ht/+VgtzM2T6VJj0lr0xqit6VdvgYO9X5QR/y0OoCS850ltDKDhFb jfMZxdnql+SrRF0z2p9f5FuEvgYr2/yuEtEDEFXcIfHyrlrD00d0dgWJBqliXA+BTTIq notQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=jqtikzMgrdxKTNyqVwM1H8QBWP7BWl7C4vx+emrIAEU=; fh=ayOBfCdFfc8MiFgBHUtWYwIXecWXC00SwPRExd+ocLo=; b=jrPWocTW7R3HBASIfxsaaLVZ2fxbB+UjeAjHWUiSGLE48vWfAj1cItQucOuEzDrA1z YyURMknFWiAIGz4gdb2NSpvxo0GVX2KELrhZGWe3uzzhx9uJKavcb5LPE3BVuHofKAqc gXw2bMdTVLq5wBJe4ZyDgKnD10iVvs2tatnWZZyzYr5+WMtJfUpVOl1jGbWWK9EMwbjs gOwwy+hx+TBmmf0C9Ac6utwkKhGi02IAFzfHKlBGErcWLh7UDLubb9EiQyRXmYzyPRFn voqAy4LmIHiNLXIdJwXeB/IvmrUJBx9xRNSR9dp5yB3V9O/ORwnud3nc3N2399AYRE4c lHJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aruba.it header.s=a1 header.b=O1vfhkdI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s3-20020a17090330c300b001b7f4696a2csi9934311plc.347.2023.06.30.00.34.07; Fri, 30 Jun 2023 00:34:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@aruba.it header.s=a1 header.b=O1vfhkdI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232033AbjF3HTT (ORCPT + 99 others); Fri, 30 Jun 2023 03:19:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232180AbjF3HSy (ORCPT ); Fri, 30 Jun 2023 03:18:54 -0400 Received: from smtpcmd12131.aruba.it (smtpcmd12131.aruba.it [62.149.156.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AD1F19BA for ; Fri, 30 Jun 2023 00:18:52 -0700 (PDT) Received: from polimar.homenet.telecomitalia.it ([79.0.204.227]) by Aruba Outgoing Smtp with ESMTPSA id F8P2qe5pmwtegF8P2qinBt; Fri, 30 Jun 2023 09:18:49 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1688109529; bh=vzmN4kJ3h47heL9B7a4O2NpUoBSMDfUBOXPHa+mny4w=; h=From:To:Subject:Date:MIME-Version; b=O1vfhkdI1zTrqCaCJIJEQD3Rkdmi4dggT8/z7HOsyJnEp5qOq8Sc7NjlnkLLvwqIq b2Odfl8u66oue6snszfSdlrc7UpizJ1vPqkcoKx6lcy+Gqjz/oF8vh+AtlGcEd1CM6 tNBqHkh8nVUDMIZ32CNNcYEktjqVeHAtV2gZeewxcmtsq/YTWOBnKYs7tysKW5WJ7p QWTw6FqdINR5NaCs1N2tCjEMAhNNZnqTtksq/xH9Uqs5oqBSpSHUfFDHhvy6aZqKU9 muu6GRZ+QkXCXMqF5g6lbCNeEqHxmZo7aFW1SyagCQym1nM1ThHrab8hIx4e1DbtQz MlZH9U1HKf+ig== From: Rodolfo Giometti To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Charlie Johnston , Rodolfo Giometti Subject: [PATCH 1/2] include/uapi pps.h: increase PPS_MAX_SOURCES value Date: Fri, 30 Jun 2023 09:18:25 +0200 Message-Id: <20230630071826.105501-1-giometti@enneenne.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfH/fmpQtNa7krYCUIJp18QipuTeXnS7k65LZHqKFjv+ecqqzgsEctZ+Z2uMSFFhohYiIdUGzrsbMFP6QSAUkBMxoz1p45oiy21BknMamhPiWJe3TNZBI H0sdV9Mllqba/jsyK/sfvLe6fV2fX84KLyYZvzLh/61VmuAccJREUbRsN5lknsujQZ7sQUheYIYk504lG+ZXz4lEG94v0KyIyVZk+VG/bLRNjqOCiBiZrOa/ z8fM7f4XXmkxuLLQEDcKIfJbZHqhOk61kELSzVJyWPIK1+ION18a2f6qJSGrrIyT2wiKVm5oQhQlAvQOzXLKpUyFu7Z+TFjiInnwbWlxJwg= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Charlie Johnston For consistency with what others use for minors, this change sets PPS_MAX_SOURCES to MINORMASK. 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 Acked-by: Rodolfo Giometti --- 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..90f2e86020ba 100644 --- a/include/uapi/linux/pps.h +++ b/include/uapi/linux/pps.h @@ -26,7 +26,7 @@ #include #define PPS_VERSION "5.3.6" -#define PPS_MAX_SOURCES 16 /* should be enough... */ +#define PPS_MAX_SOURCES MINORMASK /* Implementation note: the logical states ``assert'' and ``clear'' * are implemented in terms of the chip register, i.e. ``assert'' -- 2.34.1