ar71xx: add preliminary support for Mikrotik RB2011L
[openwrt/svn-archive/archive.git] / target / linux / ar71xx / patches-3.3 / 132-MIPS-ath79-use-correct-IRQ-number-for-the-OHCI-contr.patch
1 From fe0cc1327ddfb69b171102019a8148a9c8b352b8 Mon Sep 17 00:00:00 2001
2 From: Gabor Juhos <juhosg@openwrt.org>
3 Date: Wed, 28 Mar 2012 11:00:19 +0200
4 Subject: [PATCH 37/47] MIPS: ath79: use correct IRQ number for the OHCI controller on AR7240
5
6 The currently assigned IRQ number to the OHCI
7 controller is incorrect for the AR7240 SoC, and
8 that leads to the following error message from
9 the OHCI driver:
10
11 ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
12 ath79-ohci ath79-ohci: Atheros built-in OHCI controller
13 ath79-ohci ath79-ohci: new USB bus registered, assigned bus number 1
14 ath79-ohci ath79-ohci: irq 14, io mem 0x1b000000
15 hub 1-0:1.0: USB hub found
16 hub 1-0:1.0: 1 port detected
17 usb 1-1: new full-speed USB device number 2 using ath79-ohci
18 ath79-ohci ath79-ohci: Unlink after no-IRQ? Controller is probably using the wrong IRQ.
19
20 Fix this by using the correct IRQ number.
21
22 Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
23 ---
24 arch/mips/ath79/dev-usb.c | 2 ++
25 1 files changed, 2 insertions(+), 0 deletions(-)
26
27 --- a/arch/mips/ath79/dev-usb.c
28 +++ b/arch/mips/ath79/dev-usb.c
29 @@ -145,6 +145,8 @@ static void __init ar7240_usb_setup(void
30
31 ath79_ohci_resources[0].start = AR7240_OHCI_BASE;
32 ath79_ohci_resources[0].end = AR7240_OHCI_BASE + AR7240_OHCI_SIZE - 1;
33 + ath79_ohci_resources[1].start = ATH79_CPU_IRQ_USB;
34 + ath79_ohci_resources[1].end = ATH79_CPU_IRQ_USB;
35 platform_device_register(&ath79_ohci_device);
36 }
37