From patchwork Tue Jul 30 04:27:57 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kim Kukjin X-Patchwork-Id: 2835224 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BF5949F9C8 for ; Tue, 30 Jul 2013 04:28:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B4B522016A for ; Tue, 30 Jul 2013 04:28:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C37B9201B6 for ; Tue, 30 Jul 2013 04:28:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753004Ab3G3E2A (ORCPT ); Tue, 30 Jul 2013 00:28:00 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:52169 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752515Ab3G3E17 (ORCPT ); Tue, 30 Jul 2013 00:27:59 -0400 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MQQ0059IF2FUVF0@mailout3.samsung.com> for linux-samsung-soc@vger.kernel.org; Tue, 30 Jul 2013 13:27:57 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.47]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 35.06.03969.DC047F15; Tue, 30 Jul 2013 13:27:57 +0900 (KST) X-AuditID: cbfee68f-b7f436d000000f81-0f-51f740cdc48a Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 47.E2.31505.DC047F15; Tue, 30 Jul 2013 13:27:57 +0900 (KST) Received: from DOKGENEKIM03 ([12.23.120.199]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MQQ00B16F2LG550@mmp2.samsung.com>; Tue, 30 Jul 2013 13:27:57 +0900 (KST) From: Kukjin Kim To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Cc: 'Kukjin Kim' , 'Kukjin Kim' Subject: [PATCH] ARM: SAMSUNG: fix to support for missing cpu specific map_io Date: Tue, 30 Jul 2013 13:27:57 +0900 Message-id: <190501ce8cdd$2abd6780$80383680$%kim@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: Ac6M3Sqkpgll/EkYTXSbWnfm8+Zhhg== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrCIsWRmVeSWpSXmKPExsVy+t8zfd2zDt8DDX69l7boXXCVzaL/8Wtm i02Pr7FazDi/j8mBxWPTqk42j81L6j36tqxi9Pi8SS6AJYrLJiU1J7MstUjfLoEro+XMfpaC n+wVjR83MTcwHmDrYuTkkBAwkVj+6Q87hC0mceHeeqA4F4eQwDJGia871rHDFK3cfogJIjGd UWLX3C1Qzl9Gie0dm5lAqtgENCQOv38G1MHBISLgLbH8miJImFnAU+LG7SNgJcICvhLnFjQy g9gsAqoS22fNBrN5BWwl1r/YxghhC0r8mHyPBaJXS2L9zuNMELa8xOY1b5lBxksIqEs8+qsL EhYR0JM4+HgrI0SJiMS+F+8YQU6TENjELtH5/CYjxC4BiW+TD7FA9MpKbDrADPGXpMTBFTdY JjCKzUKyeRaSzbOQbJ6FZMUCRpZVjKKpBckFxUnpRcZ6xYm5xaV56XrJ+bmbGCEx1r+D8e4B 60OMyUDrJzJLiSbnA2M0ryTe0NjMyMLUxNTYyNzS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2zgMXmjYuDRcVz5C+Ha+nMDMxJlu8d40B/79PPD/iHvwLzD6hxFKc kWioxVxUnAgAS3bxqiQDAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-8.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Since commit 7ed76e08 (ARM: EXYNOS: Fix low level debug support) map_io() is not needed for exynos5440 so need to fix to lookup cpu which using map_io(). Without this, kernel boot log complains 'CPU EXYNOS5440 support not enabled' on exynos5440 and panic(). Signed-off-by: Kukjin Kim --- arch/arm/plat-samsung/init.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/plat-samsung/init.c b/arch/arm/plat-samsung/init.c index 3e5c461..50a3ea0 100644 --- a/arch/arm/plat-samsung/init.c +++ b/arch/arm/plat-samsung/init.c @@ -55,12 +55,13 @@ void __init s3c_init_cpu(unsigned long idcode, printk("CPU %s (id 0x%08lx)\n", cpu->name, idcode); - if (cpu->map_io == NULL || cpu->init == NULL) { + if (cpu->init == NULL) { printk(KERN_ERR "CPU %s support not enabled\n", cpu->name); panic("Unsupported Samsung CPU"); } - cpu->map_io(); + if (cpu->map_io) + cpu->map_io(); } /* s3c24xx_init_clocks