From patchwork Wed Mar 18 13:09:53 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 6038891 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 403479F399 for ; Wed, 18 Mar 2015 13:11:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5509D204FB for ; Wed, 18 Mar 2015 13:11:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 72EF520429 for ; Wed, 18 Mar 2015 13:11:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756400AbbCRNLE (ORCPT ); Wed, 18 Mar 2015 09:11:04 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:25900 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756375AbbCRNLA (ORCPT ); Wed, 18 Mar 2015 09:11:00 -0400 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NLE00BJMSMBX190@mailout1.samsung.com>; Wed, 18 Mar 2015 22:10:59 +0900 (KST) X-AuditID: cbfee61a-f79c06d000004e71-7f-55097963eb1d Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id A2.1D.20081.36979055; Wed, 18 Mar 2015 22:10:59 +0900 (KST) Received: from mcdsrvbld02.digital.local ([106.116.37.23]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NLE009WHSKWBE50@mmp1.samsung.com>; Wed, 18 Mar 2015 22:10:59 +0900 (KST) From: Bartlomiej Zolnierkiewicz To: Kukjin Kim Cc: Kukjin Kim , Daniel Lezcano , Tomasz Figa , Colin Cross , Krzysztof Kozlowski , Kyungmin Park , Marek Szyprowski , linux-samsung-soc@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, b.zolnierkie@samsung.com Subject: [PATCH v2 1/5] ARM: EXYNOS: fix exynos_boot_secondary() return value on timeout Date: Wed, 18 Mar 2015 14:09:53 +0100 Message-id: <1426684197-22281-2-git-send-email-b.zolnierkie@samsung.com> X-Mailer: git-send-email 1.7.10.4 In-reply-to: <1426684197-22281-1-git-send-email-b.zolnierkie@samsung.com> References: <1426684197-22281-1-git-send-email-b.zolnierkie@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrPLMWRmVeSWpSXmKPExsVy+t9jAd3kSs5Qg+mfJC02zljParFgRjuz xbzPshavXxha9C64ymbR//g1s8XZpjfsFpd3zWGz+Nx7hNFixvl9TBZrj9xlt1i16w+jA4/H zll32T0WbCr12LSqk83jzrU9bB59W1YxenzeJBfAFsVlk5Kak1mWWqRvl8CVceTaDeaC92wV LScnsjYwXmXtYuTkkBAwkZj87iQLhC0mceHeerYuRi4OIYFFjBILzh9khHC6mCSu/NzMDFLF JmAlMbF9FSOILSKgJtGzeCtYEbPAbGaJy8d3sYMkhAWiJE5sbQVbwSKgKvH400WwBl4BD4kZ t+ewQaxTlOh+NgHM5hTwlJi75D3QGRxA2zwkNjUyTmDkXcDIsIpRNLUguaA4KT3XUK84Mbe4 NC9dLzk/dxMjOBifSe1gXNlgcYhRgINRiYdX4ipHqBBrYllxZe4hRgkOZiURXu4szlAh3pTE yqrUovz4otKc1OJDjNIcLErivEr2bSFCAumJJanZqakFqUUwWSYOTqkGxlkZGycq9yzav5Kz IyhL63bj9RqlrTcZ/TpMPrCdF4n1F1m5vT/77Xa7xENHP2ndPrpQw+CRVaaNNestvf+utpPD GpfOyuUyPpqx7a0Nu9Ci/l8nb0WFV7xN/nnhvKLVmc2i8gF5zm8uxnwNufl1+2afmQ1a52V3 lG8xf7SkeU7cZ/PLD/dyuymxFGckGmoxFxUnAgAlxko0QgIAAA== 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=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 exynos_boot_secondary() can erroneously return 0 or -ENOSYS even when waiting on pen_release being set to -1 timeouts. Fix it by adjusting ret variable value to -ETIMEDOUT when necessary. Cc: Daniel Lezcano Signed-off-by: Bartlomiej Zolnierkiewicz --- arch/arm/mach-exynos/platsmp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-exynos/platsmp.c b/arch/arm/mach-exynos/platsmp.c index a825bca..48f950d 100644 --- a/arch/arm/mach-exynos/platsmp.c +++ b/arch/arm/mach-exynos/platsmp.c @@ -337,6 +337,9 @@ static int exynos_boot_secondary(unsigned int cpu, struct task_struct *idle) udelay(10); } + if (pen_release != -1) + ret = -ETIMEDOUT; + /* * now the secondary core is starting up let it run its * calibrations, then wait for it to finish