Skip to content

Commit 9e483bc

Browse files
jwrdegoedegregkh
authored andcommitted
Bluetooth: hci_bcm: Treat Interrupt ACPI resources as always being active-low
commit bb5208b upstream. Older devices with a serdev attached bcm bt hci, use an Interrupt ACPI resource to describe the IRQ (rather then a GpioInt resource). These device seem to all claim the IRQ is active-high and seem to all need a DMI quirk to treat it as active-low. Instead simply always assume that Interrupt resource specified IRQs are always active-low. This fixes the bt device not being able to wake the host from runtime- suspend on the: Asus T100TAM, Asus T200TA, Lenovo Yoga2 and the Toshiba Encore, without the need to add 4 new DMI quirks for these models. This also allows us to remove 2 DMI quirks for the Asus T100TA and Asus T100CHI series. Likely the 2 remaining quirks can also be removed but I could not find a DSDT of these devices to verify this. Cc: stable@vger.kernel.org Buglink: https://bugzilla.kernel.org/show_bug.cgi?id=198953 Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1554835 Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent f58ef38 commit 9e483bc

1 file changed

Lines changed: 3 additions & 17 deletions

File tree

‎drivers/bluetooth/hci_bcm.c‎

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -694,22 +694,6 @@ static const struct acpi_gpio_mapping acpi_bcm_int_first_gpios[] = {
694694
#ifdef CONFIG_ACPI
695695
/* IRQ polarity of some chipsets are not defined correctly in ACPI table. */
696696
static const struct dmi_system_id bcm_active_low_irq_dmi_table[] = {
697-
{
698-
.ident = "Asus T100TA",
699-
.matches = {
700-
DMI_EXACT_MATCH(DMI_SYS_VENDOR,
701-
"ASUSTeK COMPUTER INC."),
702-
DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T100TA"),
703-
},
704-
},
705-
{
706-
.ident = "Asus T100CHI",
707-
.matches = {
708-
DMI_EXACT_MATCH(DMI_SYS_VENDOR,
709-
"ASUSTeK COMPUTER INC."),
710-
DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T100CHI"),
711-
},
712-
},
713697
{ /* Handle ThinkPad 8 tablets with BCM2E55 chipset ACPI ID */
714698
.ident = "Lenovo ThinkPad 8",
715699
.matches = {
@@ -730,7 +714,9 @@ static int bcm_resource(struct acpi_resource *ares, void *data)
730714
switch (ares->type) {
731715
case ACPI_RESOURCE_TYPE_EXTENDED_IRQ:
732716
irq = &ares->data.extended_irq;
733-
dev->irq_active_low = irq->polarity == ACPI_ACTIVE_LOW;
717+
if (irq->polarity != ACPI_ACTIVE_LOW)
718+
dev_info(&dev->pdev->dev, "ACPI Interrupt resource is active-high, this is usually wrong, treating the IRQ as active-low\n");
719+
dev->irq_active_low = true;
734720
break;
735721

736722
case ACPI_RESOURCE_TYPE_GPIO:

0 commit comments

Comments
 (0)