diff options
author | 2020-04-02 14:55:18 +0200 | |
---|---|---|
committer | 2020-04-03 08:39:19 +0200 | |
commit | b25e4df4a83e516efbdeeefb5b2d3e259639a56e (patch) | |
tree | c5ea2c5848aab342e171e0c410c98d95460ec398 /drivers/bluetooth | |
parent | Bluetooth: Always request for user confirmation for Just Works (diff) | |
download | linux-b25e4df4a83e516efbdeeefb5b2d3e259639a56e.tar.gz linux-b25e4df4a83e516efbdeeefb5b2d3e259639a56e.tar.bz2 linux-b25e4df4a83e516efbdeeefb5b2d3e259639a56e.zip |
Bluetooth: hci_bcm: respect IRQ polarity from DT
The IRQ polarity is be configured in bcm_setup_sleep(). Make the
configured value match what is in the DeviceTree.
Cc: stable@vger.kernel.org
Fixes: f25a96c8eb46 ("Bluetooth: hci_bcm: enable IRQ capability from devicetree")
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r-- | drivers/bluetooth/hci_bcm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/bluetooth/hci_bcm.c b/drivers/bluetooth/hci_bcm.c index b236cb11c0dc..36b7f0d00c4b 100644 --- a/drivers/bluetooth/hci_bcm.c +++ b/drivers/bluetooth/hci_bcm.c @@ -1153,7 +1153,8 @@ static int bcm_of_probe(struct bcm_device *bdev) device_property_read_u8_array(bdev->dev, "brcm,bt-pcm-int-params", bdev->pcm_int_params, 5); bdev->irq = of_irq_get_byname(bdev->dev->of_node, "host-wakeup"); - + bdev->irq_active_low = irq_get_trigger_type(bdev->irq) + & (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_LEVEL_LOW); return 0; } |