diff options
author | Xabier Marquiegui <reibax@gmail.com> | 2023-10-12 01:39:56 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-10-15 22:07:52 +0300 |
commit | c5a445b1e9347b14752b01f1a304bd7a2f260acc (patch) | |
tree | 52baa7d81f8a107faf818fdb2ee06ed9550ca747 /drivers/pwm/pwm-spear.c | |
parent | 8f5de6fb245326704f37d91780b9a10253a8a100 (diff) | |
download | linux-c5a445b1e9347b14752b01f1a304bd7a2f260acc.tar.xz |
ptp: support event queue reader channel masks
On systems with multiple timestamp event channels, some readers might
want to receive only a subset of those channels.
Add the necessary modifications to support timestamp event channel
filtering, including two IOCTL operations:
- Clear all channels
- Enable one channel
The mask modification operations will be applied exclusively on the
event queue assigned to the file descriptor used on the IOCTL operation,
so the typical procedure to have a reader receiving only a subset of the
enabled channels would be:
- Open device file
- ioctl: clear all channels
- ioctl: enable one channel
- start reading
Calling the enable one channel ioctl more than once will result in
multiple enabled channels.
Signed-off-by: Xabier Marquiegui <reibax@gmail.com>
Suggested-by: Richard Cochran <richardcochran@gmail.com>
Suggested-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/pwm/pwm-spear.c')
0 files changed, 0 insertions, 0 deletions