ptp: support multiple timestamp event readers
authorXabier Marquiegui <reibax@gmail.com>
Wed, 11 Oct 2023 22:39:55 +0000 (00:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Oct 2023 19:07:52 +0000 (20:07 +0100)
commit8f5de6fb245326704f37d91780b9a10253a8a100
treea37b5c6fc49fa23bf73af97bb9146b28d75d78d4
parentd26ab5a35ad9920940a9e07665130d501b2ae1a3
ptp: support multiple timestamp event readers

Use linked lists to create one event queue per open file. This enables
simultaneous readers for timestamp event queues.

Signed-off-by: Xabier Marquiegui <reibax@gmail.com>
Suggested-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_chardev.c
drivers/ptp/ptp_clock.c
drivers/ptp/ptp_private.h
drivers/ptp/ptp_sysfs.c