]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ptp: ptp_vmclock: Add device tree support
authorDavid Woodhouse <dwmw@amazon.co.uk>
Fri, 30 Jan 2026 17:36:03 +0000 (17:36 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 3 Feb 2026 02:06:01 +0000 (18:06 -0800)
commitddc867d0b5db6f6692a059126f69672e74bf5f02
tree75712cfa5e890630fbee0e72f1323c4607071f5f
parent1d5a66045afa68226667b3607654064cb8269f8c
ptp: ptp_vmclock: Add device tree support

Add device tree support to the ptp_vmclock driver, allowing it to probe
via device tree in addition to ACPI.

Handle optional interrupt for clock disruption notifications, mirroring
the ACPI notification behaviour.

Although the interrupt is marked as 'optional' in the DT bindings, if
the device *advertises* the VMCLOCK_FLAG_NOTIFICATION_ABSENT then it
*should* have an interrupt. The driver will refuse to initialize if not.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Babis Chalios <bchalios@amazon.es>
Signed-off-by: Takahiro Itazuri <itazur@amazon.com>
Tested-by: Takahiro Itazuri <itazur@amazon.com>
Link: https://patch.msgid.link/20260130173704.12575-5-itazur@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/ptp/ptp_vmclock.c