Skip to content

Commit

Permalink
Disable PS/2 stub on shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
1Revenger1 committed Oct 12, 2024
1 parent 80e0171 commit b41c509
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions VoodooPS2Trackpad/VoodooPS2SMBusDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ bool ApplePS2SmbusDevice::start(IOService *provider) {
return true;
}

void ApplePS2SmbusDevice::stop(IOService *provider) {
_nub->uninstallPowerControlAction();
resetDevice();
super::stop(provider);
}

void ApplePS2SmbusDevice::free() {
OSSafeReleaseNULL(_data);
super::free();
Expand Down
1 change: 1 addition & 0 deletions VoodooPS2Trackpad/VoodooPS2SMBusDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class EXPORT ApplePS2SmbusDevice : public IOService {
static ApplePS2SmbusDevice *withReset(bool resetNeeded, OSDictionary *data, uint8_t addr);

bool start(IOService *provider) override;
void stop(IOService *provider) override;
void free() override;

private:
Expand Down

0 comments on commit b41c509

Please sign in to comment.