From 5d4ad610921028034e26d4b871085391e3334ec5 Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk <48863253+khronokernel@users.noreply.github.com> Date: Thu, 9 Jul 2020 13:36:24 -0600 Subject: [PATCH] Add missing STA method --- extra-files/compiled/SSDT-RHUB.aml | Bin 292 -> 316 bytes extra-files/decompiled/SSDT-RHUB-prebuilt.dsl | 54 +++++++++++------- 2 files changed, 33 insertions(+), 21 deletions(-) diff --git a/extra-files/compiled/SSDT-RHUB.aml b/extra-files/compiled/SSDT-RHUB.aml index 666730532e7ec6e731b039eafdd4dff1aa0b9cd5..a6c36ce5a6d1bf781df781983d6630676582f1f5 100644 GIT binary patch literal 316 zcmWFzb_uazWME)g4mbTEw;k%$itab#G)AMYRR$?K9>RGyi~ du!LbDBNkJ@wxXK?79_Z%EBNTqt6l_>=Ym1 z>}e3;;T#|25$eQ-F6xO@)DR-Nz&2V4iy;gGs+cA(;E(qY_T+U*EGo~;V_3qlkP%Zi V*fMn8U_oMZgB^vg8!U*a8vqx*O#uJ^ diff --git a/extra-files/decompiled/SSDT-RHUB-prebuilt.dsl b/extra-files/decompiled/SSDT-RHUB-prebuilt.dsl index 597e469..c2a7c4d 100644 --- a/extra-files/decompiled/SSDT-RHUB-prebuilt.dsl +++ b/extra-files/decompiled/SSDT-RHUB-prebuilt.dsl @@ -15,13 +15,17 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "RhubOff", 0x00001000) { Scope (_SB.PCI0.XHC_.RHUB) { - If (_OSI ("Darwin")) - { - Return (Zero) - } - Else - { - } + + Method (_STA, 0, NotSerialized) + { + If (_OSI ("Darwin")) + { + Return (Zero) // This disables the device only in macOS + } + Else + { + } + } } } @@ -29,13 +33,17 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "RhubOff", 0x00001000) { Scope (_SB.PCI0.XHCI.RHUB) { - If (_OSI ("Darwin")) - { - Return (Zero) - } - Else - { - } + + Method (_STA, 0, NotSerialized) + { + If (_OSI ("Darwin")) + { + Return (Zero) // This disables the device only in macOS + } + Else + { + } + } } } @@ -43,13 +51,17 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "RhubOff", 0x00001000) { Scope (_SB.PCI0.XHC1.RHUB) { - If (_OSI ("Darwin")) - { - Return (Zero) - } - Else - { - } + + Method (_STA, 0, NotSerialized) + { + If (_OSI ("Darwin")) + { + Return (Zero) // This disables the device only in macOS + } + Else + { + } + } } }