summaryrefslogtreecommitdiff
path: root/target/linux/sunxi/patches-3.13/178-sunxi-ehci-fix-resource-check.patch
diff options
context:
space:
mode:
authorZoltan Herpai <wigyori@uid0.hu>2014-02-05 08:42:28 +0000
committerZoltan Herpai <wigyori@uid0.hu>2014-02-05 08:42:28 +0000
commitc957af0a0f6a2c45b9b3c84f45f4a3aa44d293c6 (patch)
treef8e3bda571dab7f80fdd240541ed8bd1d39b179e /target/linux/sunxi/patches-3.13/178-sunxi-ehci-fix-resource-check.patch
parent66543935db1d7eab23fc43b381e56dbd4424b499 (diff)
downloadmtk-20170518-c957af0a0f6a2c45b9b3c84f45f4a3aa44d293c6.zip
mtk-20170518-c957af0a0f6a2c45b9b3c84f45f4a3aa44d293c6.tar.gz
mtk-20170518-c957af0a0f6a2c45b9b3c84f45f4a3aa44d293c6.tar.bz2
sunxi: initial 3.13 support
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> SVN-Revision: 39471
Diffstat (limited to 'target/linux/sunxi/patches-3.13/178-sunxi-ehci-fix-resource-check.patch')
-rw-r--r--target/linux/sunxi/patches-3.13/178-sunxi-ehci-fix-resource-check.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/target/linux/sunxi/patches-3.13/178-sunxi-ehci-fix-resource-check.patch b/target/linux/sunxi/patches-3.13/178-sunxi-ehci-fix-resource-check.patch
new file mode 100644
index 0000000..0f472b3
--- /dev/null
+++ b/target/linux/sunxi/patches-3.13/178-sunxi-ehci-fix-resource-check.patch
@@ -0,0 +1,27 @@
+From e772c9c2f552740ae735328cbd06b1d7f8e9d885 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
+