From: Michał Mirosław Date: Thu, 2 Apr 2020 12:55:18 +0000 (+0200) Subject: Bluetooth: hci_bcm: respect IRQ polarity from DT X-Git-Tag: v5.8-rc1~165^2~503^2~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b25e4df4a83e516efbdeeefb5b2d3e259639a56e;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Marcel Holtmann --- diff --git a/drivers/bluetooth/hci_bcm.c b/drivers/bluetooth/hci_bcm.c index b236cb11c0dcc..36b7f0d00c4b5 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; }