summaryrefslogtreecommitdiff
path: root/target/linux/sunxi/patches-3.12/164-sunxi-ehci-fix-resource-check.patch
diff options
context:
space:
mode:
authorwigyori <wigyori@3c298f89-4303-0410-b956-a3cf2f4a3e73>2014-01-04 09:55:41 +0000
committerwigyori <wigyori@3c298f89-4303-0410-b956-a3cf2f4a3e73>2014-01-04 09:55:41 +0000
commit64d34b8051e17b4c848a966088588dc7bce9fc26 (patch)
tree8a0e731191d44b392dead704f15c142b9ec9ab49 /target/linux/sunxi/patches-3.12/164-sunxi-ehci-fix-resource-check.patch
parentc7031f45445aa639b106646829013376565e37ad (diff)
sunxi: various fixes
- have Kconfig options ordered - add new olinuxino a13-micro board - various fixes for EHCI Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39188 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/sunxi/patches-3.12/164-sunxi-ehci-fix-resource-check.patch')
-rw-r--r--target/linux/sunxi/patches-3.12/164-sunxi-ehci-fix-resource-check.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/target/linux/sunxi/patches-3.12/164-sunxi-ehci-fix-resource-check.patch b/target/linux/sunxi/patches-3.12/164-sunxi-ehci-fix-resource-check.patch
new file mode 100644
index 0000000000..96bfbe2bd1
--- /dev/null
+++ b/target/linux/sunxi/patches-3.12/164-sunxi-ehci-fix-resource-check.patch
@@ -0,0 +1,27 @@
+From e8966070a22744582a2b7b63d8dab82f05499eb2 Mon Sep 17 00:00:00 2001
+From: Hans de Goede <hdegoede@redhat.com>
+Date: Tue, 17 Dec 2013 23:27:03 +0100
+Subject: [PATCH] ARM: sunxi-ehci: Fix resource check
+
+Signed-off-by: Hans de Goede <hdegoede@redhat.com>
+---
+ drivers/usb/host/ehci-sunxi.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/usb/host/ehci-sunxi.c b/drivers/usb/host/ehci-sunxi.c
+index e7e15cc..e050d78 100644
+--- a/drivers/usb/host/ehci-sunxi.c
++++ b/drivers/usb/host/ehci-sunxi.c
+@@ -332,7 +332,8 @@ static int sunxi_ehci_probe(struct platform_device *pdev)
+ if (pdev->resource[0].flags != IORESOURCE_MEM
+ || pdev->resource[1].flags != IORESOURCE_MEM
+ || pdev->resource[2].flags != IORESOURCE_MEM
+- || pdev->resource[3].flags != IORESOURCE_IRQ) {
++ || (pdev->resource[3].flags & IORESOURCE_TYPE_BITS)
++ != IORESOURCE_IRQ) {
+ dev_err(&pdev->dev, "invalid resource type\n");
+ return -ENODEV;
+ }
+--
+1.8.5.1
+