From: Randy Dunlap <rdunlap@infradead.org>
To: Rodolfo Giometti <giometti@enneenne.com>,
linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Andrew Morton <akpm@linux-foundation.org>,
Greg KH <greg@kroah.com>,
corbet@lwn.net, Hall Christopher S <christopher.s.hall@intel.com>,
Mohan Subramanian <subramanian.mohan@intel.com>,
tglx@linutronix.de,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
Dong Eddie <eddie.dong@intel.com>,
N Pandith <pandith.n@intel.com>,
T R Thejesh Reddy <thejesh.reddy.t.r@intel.com>,
Zage David <david.zage@intel.com>,
Chinnadurai Srinivasan <srinivasan.chinnadurai@intel.com>
Subject: Re: [V2 1/4] drivers pps: add PPS generators support
Date: Thu, 31 Oct 2024 10:08:40 -0700 [thread overview]
Message-ID: <b4854dab-b5e5-4e72-97ff-4d7cdb5723c1@infradead.org> (raw)
In-Reply-To: <20241031163508.259522-2-giometti@enneenne.com>
On 10/31/24 9:35 AM, Rodolfo Giometti wrote:
> Sometimes one needs to be able not only to catch PPS signals but to
> produce them also. For example, running a distributed simulation,
> which requires computers' clock to be synchronized very tightly.
>
> This patch adds PPS generators class in order to have a well-defined
> interface for these devices.
>
> Signed-off-by: Rodolfo Giometti <giometti@enneenne.com>
> ---
> .../userspace-api/ioctl/ioctl-number.rst | 1 +
> MAINTAINERS | 1 +
> drivers/pps/Makefile | 3 +-
> drivers/pps/generators/Kconfig | 13 +-
> drivers/pps/generators/Makefile | 3 +
> drivers/pps/generators/pps_gen.c | 344 ++++++++++++++++++
> drivers/pps/generators/sysfs.c | 75 ++++
> include/linux/pps_gen_kernel.h | 78 ++++
> include/uapi/linux/pps_gen.h | 37 ++
> 9 files changed, 553 insertions(+), 2 deletions(-)
> create mode 100644 drivers/pps/generators/pps_gen.c
> create mode 100644 drivers/pps/generators/sysfs.c
> create mode 100644 include/linux/pps_gen_kernel.h
> create mode 100644 include/uapi/linux/pps_gen.h
>
> diff --git a/drivers/pps/generators/Kconfig b/drivers/pps/generators/Kconfig
> index d615e640fcad..5edbfdb8bd92 100644
> --- a/drivers/pps/generators/Kconfig
> +++ b/drivers/pps/generators/Kconfig
> @@ -3,7 +3,16 @@
> # PPS generators configuration
> #
>
> -comment "PPS generators support"
> +menuconfig PPS_GENERATOR
> + tristate "PPS generators support"
> + help
> + PPS generators are special hardware which are able to produce PPS
> + (Pulse Per Second) signals.
> +
> + To compile this driver as a module, choose M here: the module
> + will be called pps_gen_core.ko.
Drop the ".ko" suffix as you did for the dummy module and most of the kernel does.
> +
> +if PPS_GENERATOR
>
> config PPS_GENERATOR_PARPORT
> tristate "Parallel port PPS signal generator"
> @@ -12,3 +21,5 @@ config PPS_GENERATOR_PARPORT
> If you say yes here you get support for a PPS signal generator which
> utilizes STROBE pin of a parallel port to send PPS signals. It uses
> parport abstraction layer and hrtimers to precisely control the signal.
> +
> +endif # PPS_GENERATOR
--
~Randy
next prev parent reply other threads:[~2024-10-31 17:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-31 16:35 [V2 0/4] Add PPS generators Rodolfo Giometti
2024-10-31 16:35 ` [V2 1/4] drivers pps: add PPS generators support Rodolfo Giometti
2024-10-31 17:08 ` Randy Dunlap [this message]
2024-10-31 16:35 ` [V2 2/4] drivers pps/generators: add dummy PPS generator Rodolfo Giometti
2024-10-31 16:35 ` [V2 3/4] Documentation pps.rst: add PPS generators documentation Rodolfo Giometti
2024-10-31 17:14 ` Randy Dunlap
2024-11-01 3:45 ` Bagas Sanjaya
2024-10-31 16:35 ` [V2 4/4] Documentation ABI: " Rodolfo Giometti
2024-11-01 8:17 ` Andy Shevchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b4854dab-b5e5-4e72-97ff-4d7cdb5723c1@infradead.org \
--to=rdunlap@infradead.org \
--cc=akpm@linux-foundation.org \
--cc=andriy.shevchenko@linux.intel.com \
--cc=christopher.s.hall@intel.com \
--cc=corbet@lwn.net \
--cc=david.zage@intel.com \
--cc=eddie.dong@intel.com \
--cc=giometti@enneenne.com \
--cc=greg@kroah.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pandith.n@intel.com \
--cc=srinivasan.chinnadurai@intel.com \
--cc=subramanian.mohan@intel.com \
--cc=tglx@linutronix.de \
--cc=thejesh.reddy.t.r@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®