Message ID | 1399287439-31376-2-git-send-email-b.zolnierkie@samsung.com |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDMLN5HOIYIPTXM5TMCRUBBETMSSO@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f72.google.com (mail-yh0-f72.google.com [209.85.213.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1291A202E6 for <linaro@patches.linaro.org>; Mon, 5 May 2014 10:59:06 +0000 (UTC) Received: by mail-yh0-f72.google.com with SMTP id f10sf11676980yha.7 for <linaro@patches.linaro.org>; Mon, 05 May 2014 03:59:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=j2fe+zas4TAsEKKPCs+vpv1KIwA64SX/7gHxVaoUjAI=; b=Ee6qT5JZjfGwFFgw2KBJarq0dkuD23ORywTVtu5vPhRkDnASZKGip7WdzQ83N9jQNC bP0LosLdyVKi8zO2NgcafyvdKfP49B3LHpdcXy6O3RVOGpR82c6ESOouOyUn8UB3/qoE nFeM3ZoKf47ivkTv0YfbsD3thJsEuqwpNMxRMOSHtV3DzXJUGC3rDwhDPTtlLvL5pQaC lvldOp4r6pyPW9hOIPyrnowMmgleYSeNJ6ObtFHKk3r+hThT5Kk8v+mJ8DDCZZcB5TPx Vk0GP5vbRMgUbfOAHP4v2h2UXl9u1euMH6NdJmBGfdX0ufVenL/7zOqbDJUMg4TOtTcv +f3Q== X-Gm-Message-State: ALoCoQkQk1odNoUdCOkaMORxBLZyij32EVEVf0NNdcBDM4om9LaS3CrNw4Kyys/Boacr7QJUe1fO X-Received: by 10.58.188.4 with SMTP id fw4mr18353255vec.9.1399287545835; Mon, 05 May 2014 03:59:05 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.109.200 with SMTP id l66ls2362325qgf.33.gmail; Mon, 05 May 2014 03:59:05 -0700 (PDT) X-Received: by 10.220.105.4 with SMTP id r4mr1464958vco.27.1399287545696; Mon, 05 May 2014 03:59:05 -0700 (PDT) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by mx.google.com with ESMTPS id gx4si1465287vcb.109.2014.05.05.03.59.05 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 05 May 2014 03:59:05 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.220.179; Received: by mail-vc0-f179.google.com with SMTP id il7so2997993vcb.24 for <patchwork-forward@linaro.org>; Mon, 05 May 2014 03:59:05 -0700 (PDT) X-Received: by 10.58.123.71 with SMTP id ly7mr27792117veb.11.1399287545598; Mon, 05 May 2014 03:59:05 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp130160vcb; Mon, 5 May 2014 03:59:05 -0700 (PDT) X-Received: by 10.67.2.34 with SMTP id bl2mr69985618pad.58.1399287544698; Mon, 05 May 2014 03:59:04 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xx4si8137848pac.273.2014.05.05.03.59.04; Mon, 05 May 2014 03:59:04 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756220AbaEEK6w (ORCPT <rfc822;sandeep.tripathy@linaro.org> + 27 others); Mon, 5 May 2014 06:58:52 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:58092 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753389AbaEEK6u (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 5 May 2014 06:58:50 -0400 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N5300L9WL61K000@mailout4.samsung.com>; Mon, 05 May 2014 19:58:49 +0900 (KST) X-AuditID: cbfee61a-b7f2b6d000006c4d-a1-53676ee8b980 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 30.6D.27725.8EE67635; Mon, 05 May 2014 19:58:49 +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 <0N5300CW5L3PC1B0@mmp1.samsung.com>; Mon, 05 May 2014 19:58:48 +0900 (KST) From: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> To: Kukjin Kim <kgene.kim@samsung.com> Cc: Daniel Lezcano <daniel.lezcano@linaro.org>, Tomasz Figa <t.figa@samsung.com>, Sachin Kamat <sachin.kamat@linaro.org>, Viresh Kumar <viresh.kumar@linaro.org>, "Rafael J. Wysocki" <rjw@rjwysocki.net>, Kyungmin Park <kyungmin.park@samsung.com>, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linaro-kernel@lists.linaro.org, b.zolnierkie@samsung.com Subject: [PATCH 1/7] arm: firmware: Check firmware is running or not Date: Mon, 05 May 2014 12:57:13 +0200 Message-id: <1399287439-31376-2-git-send-email-b.zolnierkie@samsung.com> X-Mailer: git-send-email 1.7.10.4 In-reply-to: <1399287439-31376-1-git-send-email-b.zolnierkie@samsung.com> References: <1399287439-31376-1-git-send-email-b.zolnierkie@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrKLMWRmVeSWpSXmKPExsVy+t9jAd2XeenBBh37mS02zljPajHvs6xF 74KrbBZnm96wW7w/9IzZYtPja6wWl3fNYbP43HuE0WLG+X1MFmdOX2K1OPmnl9Fi/YzXLBYb v3o48HrcubaHzWPzknqP2/8eM3tsudrO4tG3ZRWjx+dNcgFsUVw2Kak5mWWpRfp2CVwZa2Ys Ziro4ql4dusqUwPjPc4uRk4OCQETiRtNyxkhbDGJC/fWs3UxcnEICSxilJhzbCELhNPFJHHk yHV2kCo2ASuJie2rwDpEBNQkehZvZQQpYhbYyyyxtHsTWJGwgItE7825YEUsAqoSz9tnsYLY vAIeEp86TrBBrFOU6H42AczmFPCUWLr5MTOILQRUs+FtO9sERt4FjAyrGEVTC5ILipPScw31 ihNzi0vz0vWS83M3MYID85nUDsaVDRaHGAU4GJV4eBOY04OFWBPLiitzDzFKcDArifBmJwKF eFMSK6tSi/Lji0pzUosPMUpzsCiJ8x5otQ4UEkhPLEnNTk0tSC2CyTJxcEo1MEr8+XRR4BWT tAD7sY1vJql8vr1XND3kgcaPbbJ83p9X954731Jx61v9qdAut6/7LSPOu7yZWXey79BxtfY/ TToBt0qeF7yRW/nH58e/W6W5nhVivhNm8nilKZbJWdk+efz+PZ9TlPetA4zpTT//v96WOpnn /TH73pL2jEmufUbX1xVFHe5e9FqJpTgj0VCLuag4EQDu36U5SAIAAA== Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: b.zolnierkie@samsung.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> |
diff --git a/arch/arm/common/firmware.c b/arch/arm/common/firmware.c index 27ddccb..e9d9ee5 100644 --- a/arch/arm/common/firmware.c +++ b/arch/arm/common/firmware.c @@ -16,3 +16,8 @@ static const struct firmware_ops default_firmware_ops; const struct firmware_ops *firmware_ops = &default_firmware_ops; + +int firmware_run(void) +{ + return firmware_ops != &default_firmware_ops; +} diff --git a/arch/arm/include/asm/firmware.h b/arch/arm/include/asm/firmware.h index 2c9f10d..c72ec47 100644 --- a/arch/arm/include/asm/firmware.h +++ b/arch/arm/include/asm/firmware.h @@ -46,6 +46,9 @@ struct firmware_ops { /* Global pointer for current firmware_ops structure, can't be NULL. */ extern const struct firmware_ops *firmware_ops; +/* Check firmware is running */ +extern int firmware_run(void); + /* * call_firmware_op(op, ...) *