summaryrefslogtreecommitdiff
path: root/target/linux/lantiq/patches-4.1/0040-USB-DWC2-enable-usb-power-gpio.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-01-18 15:54:23 +0000
committerFelix Fietkau <nbd@openwrt.org>2016-01-18 15:54:23 +0000
commite7846156f23b109fd8789d60a4827171b06553a7 (patch)
treef0bddd8d50cf4209c70dcd43e564be8706ae51ce /target/linux/lantiq/patches-4.1/0040-USB-DWC2-enable-usb-power-gpio.patch
parent9b4b2b4e17f10492798b14f7bb7e943ad86b4515 (diff)
downloadmtk-20170518-e7846156f23b109fd8789d60a4827171b06553a7.zip
mtk-20170518-e7846156f23b109fd8789d60a4827171b06553a7.tar.gz
mtk-20170518-e7846156f23b109fd8789d60a4827171b06553a7.tar.bz2
lantiq: drop linux 4.1 support
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48323
Diffstat (limited to 'target/linux/lantiq/patches-4.1/0040-USB-DWC2-enable-usb-power-gpio.patch')
-rw-r--r--target/linux/lantiq/patches-4.1/0040-USB-DWC2-enable-usb-power-gpio.patch35
1 files changed, 0 insertions, 35 deletions
diff --git a/target/linux/lantiq/patches-4.1/0040-USB-DWC2-enable-usb-power-gpio.patch b/target/linux/lantiq/patches-4.1/0040-USB-DWC2-enable-usb-power-gpio.patch
deleted file mode 100644
index 9c6f11c..0000000
--- a/target/linux/lantiq/patches-4.1/0040-USB-DWC2-enable-usb-power-gpio.patch
+++ /dev/null
@@ -1,35 +0,0 @@
---- a/drivers/usb/dwc2/platform.c
-+++ b/drivers/usb/dwc2/platform.c
-@@ -41,6 +41,7 @@
- #include <linux/dma-mapping.h>
- #include <linux/of_device.h>
- #include <linux/mutex.h>
-+#include <linux/of_gpio.h>
- #include <linux/platform_device.h>
-
- #include <linux/usb/of.h>
-@@ -161,6 +162,7 @@ static int dwc2_driver_probe(struct plat
- struct usb_phy *uphy;
- int retval;
- int irq;
-+ int gpio_count;
-
- match = of_match_device(dwc2_of_match_table, &dev->dev);
- if (match && match->data) {
-@@ -177,6 +179,16 @@ static int dwc2_driver_probe(struct plat
- defparams.dma_desc_enable = 0;
- }
-
-+ gpio_count = of_gpio_count(dev->dev.of_node);
-+ while (gpio_count > 0) {
-+ enum of_gpio_flags flags;
-+ int gpio = of_get_gpio_flags(dev->dev.of_node, --gpio_count, &flags);
-+ if (gpio_request(gpio, "usb"))
-+ continue;
-+ dev_info(&dev->dev, "requested GPIO %d\n", gpio);
-+ gpio_direction_output(gpio, (flags & OF_GPIO_ACTIVE_LOW) ? (0) : (1));
-+ }
-+
- hsotg = devm_kzalloc(&dev->dev, sizeof(*hsotg), GFP_KERNEL);
- if (!hsotg)
- return -ENOMEM;