diff options
Diffstat (limited to 'patches/collateral-evolutions/network/0062-acpi-gpio-remove')
-rw-r--r-- | patches/collateral-evolutions/network/0062-acpi-gpio-remove/hci_bcm.patch | 4 | ||||
-rw-r--r-- | patches/collateral-evolutions/network/0062-acpi-gpio-remove/hci_intel.patch | 42 |
2 files changed, 8 insertions, 38 deletions
diff --git a/patches/collateral-evolutions/network/0062-acpi-gpio-remove/hci_bcm.patch b/patches/collateral-evolutions/network/0062-acpi-gpio-remove/hci_bcm.patch index 76e90f08..1d24e478 100644 --- a/patches/collateral-evolutions/network/0062-acpi-gpio-remove/hci_bcm.patch +++ b/patches/collateral-evolutions/network/0062-acpi-gpio-remove/hci_bcm.patch @@ -28,7 +28,7 @@ +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,13,0) gpiod_set_value(bdev->device_wakeup, false); +#endif - bt_dev_dbg(bdev, "suspend, delaying 15 ms"); + BT_DBG("suspend, delaying 15 ms"); mdelay(15); } @@ -376,7 +382,9 @@ static int bcm_resume(struct device *dev @@ -38,7 +38,7 @@ +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,13,0) gpiod_set_value(bdev->device_wakeup, true); +#endif - bt_dev_dbg(bdev, "resume, delaying 15 ms"); + BT_DBG("resume, delaying 15 ms"); mdelay(15); } @@ -395,6 +403,7 @@ unlock: diff --git a/patches/collateral-evolutions/network/0062-acpi-gpio-remove/hci_intel.patch b/patches/collateral-evolutions/network/0062-acpi-gpio-remove/hci_intel.patch index a6a7d0f4..505d1025 100644 --- a/patches/collateral-evolutions/network/0062-acpi-gpio-remove/hci_intel.patch +++ b/patches/collateral-evolutions/network/0062-acpi-gpio-remove/hci_intel.patch @@ -8,19 +8,19 @@ #include <linux/gpio/consumer.h> +#endif #include <linux/acpi.h> - #include <linux/interrupt.h> - #include <linux/pm_runtime.h> -@@ -374,7 +376,9 @@ static int intel_set_power(struct hci_ua + + #include <net/bluetooth/bluetooth.h> +@@ -166,7 +168,9 @@ static int intel_set_power(struct hci_ua BT_INFO("hu %p, Switching compatible pm device (%s) to %u", hu, dev_name(&idev->pdev->dev), powered); +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,13,0) gpiod_set_value(idev->reset, powered); +#endif + } - /* Provide to idev a hu reference which is used to run LPM - * transactions (lpm suspend/resume) from PM callbacks. -@@ -1322,14 +1326,17 @@ static int intel_probe(struct platform_d + spin_unlock(&intel_device_list_lock); +@@ -895,12 +899,14 @@ static int intel_probe(struct platform_d return -ENODEV; } @@ -33,35 +33,5 @@ } +#endif - idev->irq = platform_get_irq(pdev, 0); -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,17,0) - if (idev->irq < 0) { - struct gpio_desc *host_wake; - -@@ -1348,12 +1355,15 @@ static int intel_probe(struct platform_d - goto no_irq; - } - } -+#endif - - /* Only enable wake-up/irq when controller is powered */ - device_set_wakeup_capable(&pdev->dev, true); - device_wakeup_disable(&pdev->dev); - -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,17,0) - no_irq: -+#endif platform_set_drvdata(pdev, idev); - /* Place this instance on the device list */ -@@ -1361,8 +1371,10 @@ no_irq: - list_add_tail(&idev->list, &intel_device_list); - mutex_unlock(&intel_device_list_lock); - -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,13,0) - dev_info(&pdev->dev, "registered, gpio(%d)/irq(%d).\n", - desc_to_gpio(idev->reset), idev->irq); -+#endif - - return 0; - } |