diff options
author | 2017-10-04 20:43:36 +0200 | |
---|---|---|
committer | 2017-10-06 20:35:48 +0200 | |
commit | 227630cccdbb8f8a1b24ac26517b75079c9a69c9 (patch) | |
tree | 0c9f68737524fbbb281c12652f9b97e6951a6da0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Bluetooth: hci_uart_set_flow_control: Fix NULL deref when using serdev (diff) | |
download | linux-dev-227630cccdbb8f8a1b24ac26517b75079c9a69c9.tar.xz linux-dev-227630cccdbb8f8a1b24ac26517b75079c9a69c9.zip |
Bluetooth: hci_bcm: Fix setting of irq trigger type
This commit fixes 2 issues with host-wake irq trigger type handling
in hci_bcm:
1) bcm_setup_sleep sets sleep_params.host_wake_active based on
bcm_device.irq_polarity, but bcm_request_irq was always requesting
IRQF_TRIGGER_RISING as trigger type independent of irq_polarity.
This was a problem when the irq is described as a GpioInt rather then
an Interrupt in the DSDT as for GpioInt-s the value passed to request_irq
is honored. This commit fixes this by requesting the correct trigger
type depending on bcm_device.irq_polarity.
2) bcm_device.irq_polarity was used to directly store an ACPI polarity
value (ACPI_ACTIVE_*). This is undesirable because hci_bcm is also
used with device-tree and checking for something like ACPI_ACTIVE_LOW
in a non ACPI specific function like bcm_request_irq feels wrong.
This commit fixes this by renaming irq_polarity to irq_active_low
and changing its type to a bool.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions