Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMBus Companion Devices #63

Merged
merged 8 commits into from
Oct 4, 2024
Merged

Conversation

1Revenger1
Copy link
Contributor

Add support to ApplePS2SynapticTouchpad to create SMBus companion devices. This means that VoodooRMI will not start until VoodooPS2 is done probing and detects that the touchpad has SMBus support. A new service (ApplePS2SMBusDevice) is added to prevent other PS/2 drivers attaching and using the PS/2 port on these touchpads.

The case without VoodooSMBus should still work, as VoodooPS2 checks IOResources before attempting to use SMBus for the Synaptic touchpad. The only downside is that there is no way to recover from VoodooRMI failing to start. I originally had the call to create the SMBus companion device in probe instead of start, but other PS/2 drivers probing would break VoodooRMI due to both drivers trying to use the touchpad at the same time.

This does work (unlike my other attempts), just need some time to do cleanup and to test.

Replaces #59
Companion PRs:
VoodooSMBus: 1Revenger1/VoodooSMBus#4
VoodooRMI: VoodooSMBus/VoodooRMI#183

@1Revenger1 1Revenger1 marked this pull request as ready for review September 30, 2024 15:58
@1Revenger1
Copy link
Contributor Author

Good to go, this has been more reliable on my end compared to the old system.

@1Revenger1 1Revenger1 merged commit 4750716 into acidanthera:master Oct 4, 2024
3 checks passed
@1Revenger1 1Revenger1 deleted the smbus-cntrl branch October 4, 2024 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant