From 3aad135e5e08c2fce8344a53e38b259b68934b57 Mon Sep 17 00:00:00 2001 From: Avery Black Date: Sat, 12 Oct 2024 08:54:25 -0700 Subject: [PATCH] Copy gIOMatchCategoryKey into SMBus device stub --- VoodooPS2Trackpad/VoodooPS2SynapticsTouchPad.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/VoodooPS2Trackpad/VoodooPS2SynapticsTouchPad.cpp b/VoodooPS2Trackpad/VoodooPS2SynapticsTouchPad.cpp index f8cdf8e..ee668b8 100644 --- a/VoodooPS2Trackpad/VoodooPS2SynapticsTouchPad.cpp +++ b/VoodooPS2Trackpad/VoodooPS2SynapticsTouchPad.cpp @@ -213,6 +213,10 @@ IOService* ApplePS2SynapticsTouchPad::probe(IOService * provider, SInt32 * score dictionary->setObject("Clickpad", _cont_caps.one_btn_clickpad ? kOSBooleanTrue : kOSBooleanFalse); ApplePS2SmbusDevice *smbus = ApplePS2SmbusDevice::withReset(true, dictionary, 0x2C); + + // gIOMatchCategoryKey is necessary to prevent multiple services attaching to the PS2 device + if (smbus) + smbus->setProperty(gIOMatchCategoryKey, getProperty(gIOMatchCategoryKey)); OSSafeReleaseNULL(dictionary); return smbus; }