Messages in this thread | | | From | Linus Walleij <> | Date | Wed, 30 Nov 2022 10:00:49 +0100 | Subject | Re: Intel timed i/o driver in HTE |
| |
On Tue, Nov 29, 2022 at 7:10 PM N, Pandith <pandith.n@intel.com> wrote:
> Intel timed i/o is mainly intended for couple of functionalities. > 1. Input event capture with timestamping
I understand this part, and it is handled by the HTE subsystem.
> 2. Generate single shot or periodic pulse train (...) > c. Most importantly, precise time synchronization between devices/sub-systems > Ex : Share precise time from a GPS receiver to the network or > Synchronize processor clock with external signal.
So I think this is the actual use case of the output mode. The pulse train output by HTE is to share precise time to GPS receivers.
So what about putting that part into drivers/gnss? GNSS Global Navigation Satellite Subsystem like GPS etc
If this is the only usecase, that is where it should go, along with the serial or whatever transport driver is used with the GPS. I don't think this is a generic functionality (such as GPIO) at all, but rather a very application-specific use case which will only be used for GPS time synchronization.
If the timed output has other use cases - and I mean HAVE other use cases, not COULD HAVE other use cases - then we can discuss generalizations. There is no point of designing upfront abstractions that never get used.
Yours, Linus Walleij
| |