Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754338Ab3DWC7R (ORCPT ); Mon, 22 Apr 2013 22:59:17 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:48585 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753480Ab3DWC7P (ORCPT ); Mon, 22 Apr 2013 22:59:15 -0400 X-AuditID: cbfee68d-b7feb6d000007be8-55-5175f9025f77 From: Jonghwan Choi To: "'Jonghwan Choi'" , linux-kernel@vger.kernel.org Cc: stable@vger.kernel.org, "'Sylwester Nawrocki'" , "'Kukjin Kim'" , "'Tomasz Figa'" References: In-reply-to: Subject: [PATCH 3.8-stable] ARM: S3C24XX: Correct NR_IRQS definition for s3c2440 Date: Tue, 23 Apr 2013 11:59:13 +0900 Message-id: <007101ce3fce$894d9920$9be8cb60$%choi@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac4vhL6OHdYi6A9aR4m9yzeDEXJPogAflJswAu8tBWABA6SbUA== Content-language: ko x-cr-hashedpuzzle: J49w Lwtz NNGT TRp7 ai9C bAXc dtil e85x ovZU zTUt 0r+d 2cDN 9TCR AAXS6g== AA1rPQ== AA/Chg==;6;agBoAGIAaQByAGQALgBjAGgAbwBpAEAAcwBhAG0AcwB1AG4AZwAuAGMAbwBtADsAawBnAGUAbgBlAC4AawBpAG0AQABzAGEAbQBzAHUAbgBnAC4AYwBvAG0AOwBsAGkAbgB1AHgALQBrAGUAcgBuAGUAbABAAHYAZwBlAHIALgBrAGUAcgBuAGUAbAAuAG8AcgBnADsAcwAuAG4AYQB3AHIAbwBjAGsAaQBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA7AHMAdABhAGIAbABlAEAAdgBnAGUAcgAuAGsAZQByAG4AZQBsAC4AbwByAGcAOwB0AG8AbQBhAHMAegAuAGYAaQBnAGEAQABnAG0AYQBpAGwALgBjAG8AbQA=;Sosha1_v1;7;{18B9E403-2F85-4D69-87CF-68894BBB963E};agBoAGIAaQByAGQALgBjAGgAbwBpAEAAcwBhAG0AcwB1AG4AZwAuAGMAbwBtAA==;Tue, 23 Apr 2013 02:59:02 GMT;WwBQAEEAVABDAEgAIAAzAC4AOAAtAHMAdABhAGIAbABlAF0AIABBAFIATQA6ACAAUwAzAEMAMgA0AFgAWAA6ACAAQwBvAHIAcgBlAGMAdAAgAE4AUgBfAEkAUgBRAFMAIABkAGUAZgBpAG4AaQB0AGkAbwBuACAAZgBvAHIAIABzADMAYwAyADQANAAwAA== x-cr-puzzleid: {18B9E403-2F85-4D69-87CF-68894BBB963E} X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrFIsWRmVeSWpSXmKPExsVy+t8zfV2mn6WBBmsOClksaea26F1wlc3i 8q45bBaH37SzWizY+IjRYtWuP4wObB47Z91l9+jbsorR4/MmuQDmKC6blNSczLLUIn27BK6M hsWLmQvm8VWsWXecpYGxj6eLkZNDQsBE4t6Zq6wQtpjEhXvr2boYuTiEBJYxSlya9YMNpmjD uZVQiemMEo+nrgJLCAn8ZZRY3+QMYrMJ6EocW78FbJKIgLfEqSm/mEEamAVmMEoc6noClOAA auCWWN0cBFLDKcAjse5PJzOILSwQIDGv+TETiM0ioCpxcOEURhCbV8BO4sOSf2wQtqDEj8n3 WEBsZgEtifU7jzNB2PISm9e8ZQYZLyGgLvHory7ECU4S61f3Q5WISOx78Y4R5BwJgRNsEscX PYb62FRi1afv7BCJr+wSO96tZYE4QkDi2+RDLBBDZSU2HWCGqJeUOLjiBssERqlZSE6aheSk WUhOmoVk9wJGllWMoqkFyQXFSelFhnrFibnFpXnpesn5uZsYIfHcu4Px9gHrQ4zJQOsnMkuJ JucD00FeSbyhsZmRhamJqbGRuaUZacJK4rxqLdaBQgLpiSWp2ampBalF8UWlOanFhxiZODil Ghh3XjeKWy2Uf3vJt1dv45eeS5yw+9ah7I/3s18Zx/w69m7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znR8zxdgHaU24ZMSS3FGoqEWc1Fx IgAh6tMBWgMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2009 Lines: 63 3.8-stable review patch. If anyone has any objections, please let me know. ------------------ From: "Sylwester Nawrocki " commit b530f742ac27460d41d35b638ad6aad92044a982 upstream. Due to NR_IRQS being incorrectly defined not all IRQ domains can be registered for S3C2440. It causes following errors on a s3c2440 SoC based board: NR_IRQS:89 S3C2440: IRQ Support irq: clearing pending status 00000002 ------------[ cut here ]------------ WARNING: at kernel/irq/irqdomain.c:234 0xc0056ed0() ... irq: could not create irq-domain ... s3c2410-wdt s3c2410-wdt: failed to install irq (-22) s3c2410-wdt: probe of s3c2410-wdt failed with error -22 ... samsung-uart s3c2440-uart.0: cannot get irq 74 Fix this by increasing NR_IRQS to at least (IRQ_S3C2443_AC97 + 1) if CPU_S3C2440 is selected, so the subintc IRQ domain gets properly registered. Signed-off-by: Tomasz Figa Signed-off-by: Sylwester Nawrocki Acked-by: Heiko Stuebner Signed-off-by: Kukjin Kim Signed-off-by: Jonghwan Choi --- arch/arm/mach-s3c24xx/include/mach/irqs.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/arm/mach-s3c24xx/include/mach/irqs.h b/arch/arm/mach-s3c24xx/include/mach/irqs.h index b7a9f4d..1e73f5f 100644 --- a/arch/arm/mach-s3c24xx/include/mach/irqs.h +++ b/arch/arm/mach-s3c24xx/include/mach/irqs.h @@ -188,10 +188,8 @@ #if defined(CONFIG_CPU_S3C2416) #define NR_IRQS (IRQ_S3C2416_I2S1 + 1) -#elif defined(CONFIG_CPU_S3C2443) -#define NR_IRQS (IRQ_S3C2443_AC97+1) #else -#define NR_IRQS (IRQ_S3C2440_AC97+1) +#define NR_IRQS (IRQ_S3C2443_AC97 + 1) #endif /* compatibility define. */ -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/