Hi, On 14-03-18 14:54, Hans de Goede wrote:
Hi All, While working on a patch to add the BCM2E84 ACPI HID to the hci_bcm code, to fix BT the Lenovo Yoga2: https://bugzilla.redhat.com/show_bug.cgi?id=1554835 I realized that I was basing wether to use the acpi_bcm_int_first_gpios or the acpi_bcm_int_last_gpios mapping on the order of resources in the ACPI device's resource table, which is something which we might as well do in the code directly. I've not done much testing with this change yet, because I hit a snag. While working on this the reporter of the Yoga2 problem got back to me that things work, but that his bluetooth keyboard cannot wakeup the HCI from runtime-suspend. I've yet to debug this but I think this might be caused by the device-wakeup and shutdown GPIOs being swapped. Which would mean we have a 3th possible order... Assuming we have the 3th possible order, it might be best to forget about this patch and just keep defining hardcoded orders for each ACPI HID until we hit a case where we actually need 2 different orders for a single HID and then maybe dust of this patch.
Thinking more about this, I believe it is more likely that the problem is the IRQ polarity being wrong...
But I wrote this patch now so I wanted to share it and see what others think because I personally still like the idea of figuring things out automatically.
Which means (once confirmed) that we could move forward with this patch, so some initial review / remarks would be appreciated. Regards, Hans -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html