]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ptp: ptp_vmclock: add 'VMCLOCK' to ACPI device match
authorDavid Woodhouse <dwmw@amazon.co.uk>
Fri, 30 Jan 2026 17:36:04 +0000 (17:36 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 3 Feb 2026 02:06:01 +0000 (18:06 -0800)
As we finalised the spec, we spotted that vmgenid actually says that the
_HID is supposed to be hypervisor-specific. Although in the 13 years
since the original vmgenid doc was published, nobody seems to have cared
about using _HID to distinguish between implementations on different
hypervisors, and we only ever use the _CID.

For consistency, match the _CID of "VMCLOCK" too.

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

index 619c8e5a9998c1a7503b7ffc51ff881a0f58265a..2a173bd28251ed7fd7a44d1b00cd2a9351b1bb78 100644 (file)
@@ -763,6 +763,7 @@ static int vmclock_probe(struct platform_device *pdev)
 
 static const struct acpi_device_id vmclock_acpi_ids[] = {
        { "AMZNC10C", 0 },
+       { "VMCLOCK", 0 },
        {}
 };
 MODULE_DEVICE_TABLE(acpi, vmclock_acpi_ids);