summaryrefslogtreecommitdiff
path: root/target/linux/lantiq/patches-3.18/0040-USB-DWC2-enable-usb-power-gpio.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-12-05 09:51:25 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-12-05 09:51:25 +0000
commitfff859a1f6a7a319053e4efce787b88bc76985ab (patch)
tree6ca955ea78af5b99d8ac17e57747b6a1e69027d5 /target/linux/lantiq/patches-3.18/0040-USB-DWC2-enable-usb-power-gpio.patch
parentba0ba1e1f5b403e83a8cbdd90ba065e626318e30 (diff)
downloadmtk-20170518-fff859a1f6a7a319053e4efce787b88bc76985ab.zip
mtk-20170518-fff859a1f6a7a319053e4efce787b88bc76985ab.tar.gz
mtk-20170518-fff859a1f6a7a319053e4efce787b88bc76985ab.tar.bz2
lantiq: remove 3.18 support
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47774
Diffstat (limited to 'target/linux/lantiq/patches-3.18/0040-USB-DWC2-enable-usb-power-gpio.patch')
-rw-r--r--target/linux/lantiq/patches-3.18/0040-USB-DWC2-enable-usb-power-gpio.patch35
1 files changed, 0 insertions, 35 deletions
diff --git a/target/linux/lantiq/patches-3.18/0040-USB-DWC2-enable-usb-power-gpio.patch b/target/linux/lantiq/patches-3.18/0040-USB-DWC2-enable-usb-power-gpio.patch
deleted file mode 100644
index 76fbb7b..0000000
--- a/target/linux/lantiq/patches-3.18/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
-@@ -40,6 +40,7 @@
- #include <linux/device.h>
- #include <linux/dma-mapping.h>
- #include <linux/of_device.h>
-+#include <linux/of_gpio.h>
- #include <linux/platform_device.h>
-
- #include <linux/usb/of.h>
-@@ -154,6 +155,7 @@ static int dwc2_driver_probe(struct plat
- struct resource *res;
- int retval;
- int irq;
-+ int gpio_count;
-
- if (usb_disabled())
- return -ENODEV;
-@@ -173,6 +175,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;