ar71xx: fix IRQ number for the AR7240 OHCI controller
authorGabor Juhos <juhosg@openwrt.org>
Tue, 20 Mar 2012 15:02:48 +0000 (15:02 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Tue, 20 Mar 2012 15:02:48 +0000 (15:02 +0000)
SVN-Revision: 31044

target/linux/ar71xx/patches-3.2/214-MIPS-ath79-fix-IRQ-number-for-AR7240-OHCI.patch [new file with mode: 0644]
target/linux/ar71xx/patches-3.2/700-ar934x_fix_usb_reset.patch
target/linux/ar71xx/patches-3.3/214-MIPS-ath79-fix-IRQ-number-for-AR7240-OHCI.patch [new file with mode: 0644]
target/linux/ar71xx/patches-3.3/700-ar934x_fix_usb_reset.patch

diff --git a/target/linux/ar71xx/patches-3.2/214-MIPS-ath79-fix-IRQ-number-for-AR7240-OHCI.patch b/target/linux/ar71xx/patches-3.2/214-MIPS-ath79-fix-IRQ-number-for-AR7240-OHCI.patch
new file mode 100644 (file)
index 0000000..0be5aa8
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/arch/mips/ath79/dev-usb.c
++++ b/arch/mips/ath79/dev-usb.c
+@@ -126,6 +126,8 @@ static void __init ar7240_usb_setup(void
+       ath79_ohci_resources[0].start = AR7240_OHCI_BASE;
+       ath79_ohci_resources[0].end = AR7240_OHCI_BASE + AR7240_OHCI_SIZE - 1;
++      ath79_ohci_resources[1].start = ATH79_CPU_IRQ_USB;
++      ath79_ohci_resources[1].end = ATH79_CPU_IRQ_USB;
+       platform_device_register(&ath79_ohci_device);
+ }
index 2981350719c3563ef76b5f550e5393cbd6520a81..e92353bdf2e7a5ff6f6faa3eb340f267bb3454c3 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/ath79/dev-usb.c
 +++ b/arch/mips/ath79/dev-usb.c
-@@ -188,16 +188,16 @@ static void __init ar934x_usb_setup(void
+@@ -190,16 +190,16 @@ static void __init ar934x_usb_setup(void
        if (bootstrap & AR934X_BOOTSTRAP_USB_MODE_DEVICE)
                return;
  
diff --git a/target/linux/ar71xx/patches-3.3/214-MIPS-ath79-fix-IRQ-number-for-AR7240-OHCI.patch b/target/linux/ar71xx/patches-3.3/214-MIPS-ath79-fix-IRQ-number-for-AR7240-OHCI.patch
new file mode 100644 (file)
index 0000000..0be5aa8
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/arch/mips/ath79/dev-usb.c
++++ b/arch/mips/ath79/dev-usb.c
+@@ -126,6 +126,8 @@ static void __init ar7240_usb_setup(void
+       ath79_ohci_resources[0].start = AR7240_OHCI_BASE;
+       ath79_ohci_resources[0].end = AR7240_OHCI_BASE + AR7240_OHCI_SIZE - 1;
++      ath79_ohci_resources[1].start = ATH79_CPU_IRQ_USB;
++      ath79_ohci_resources[1].end = ATH79_CPU_IRQ_USB;
+       platform_device_register(&ath79_ohci_device);
+ }
index 2981350719c3563ef76b5f550e5393cbd6520a81..e92353bdf2e7a5ff6f6faa3eb340f267bb3454c3 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/ath79/dev-usb.c
 +++ b/arch/mips/ath79/dev-usb.c
-@@ -188,16 +188,16 @@ static void __init ar934x_usb_setup(void
+@@ -190,16 +190,16 @@ static void __init ar934x_usb_setup(void
        if (bootstrap & AR934X_BOOTSTRAP_USB_MODE_DEVICE)
                return;