Sean Rhodes has submitted this change. ( https://review.coreboot.org/c/coreboot/+/86507?usp=email )
(
4 is the latest approved patch-set. No files were changed between the latest approved patch-set and the submitted one. )Change subject: driver/usb/intel_bluetooth: Add PS0 and PS3 methods ......................................................................
driver/usb/intel_bluetooth: Add PS0 and PS3 methods
Add PS0 and PS3 methods that return the Bluetooth power resource. This allows the OS to turn on or off the device.
This fixes and issue where the Bluetooth reported a power failure in device manager.
Change-Id: I0e37fc0369b1dc2b166f851daa183b145a09eb32 Signed-off-by: Sean Rhodes sean@starlabs.systems Reviewed-on: https://review.coreboot.org/c/coreboot/+/86507 Reviewed-by: Matt DeVillier matt.devillier@gmail.com Tested-by: build bot (Jenkins) no-reply@coreboot.org --- M src/drivers/usb/acpi/intel_bluetooth.c 1 file changed, 26 insertions(+), 0 deletions(-)
Approvals: build bot (Jenkins): Verified Matt DeVillier: Looks good to me, approved
diff --git a/src/drivers/usb/acpi/intel_bluetooth.c b/src/drivers/usb/acpi/intel_bluetooth.c index 5ed42c8..97fb481 100644 --- a/src/drivers/usb/acpi/intel_bluetooth.c +++ b/src/drivers/usb/acpi/intel_bluetooth.c @@ -221,6 +221,32 @@ acpigen_pop_len();
/* + * Method (_PS0, 0, NotSerialized) + * { + * _SB.PCI0.SBTE(1) + * } + */ + acpigen_write_method("_PS0", 0); + { + acpigen_emit_namestring("\_SB.PCI0.SBTE"); + acpigen_emit_byte(1); + } + acpigen_pop_len(); + +/* + * Name (_PS3, Package (0x01) + * { + * _SB.PCI0.SBTE(0) + * } + */ + acpigen_write_method("_PS3", 0); + { + acpigen_emit_namestring("\_SB.PCI0.SBTE"); + acpigen_emit_byte(0); + } + acpigen_pop_len(); + +/* * Method (AOLD, 0, NotSerialized) * { * Name (AODS, Package (0x03)