From patchwork Wed Apr 30 09:26:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naveen Krishna Chatradhi X-Patchwork-Id: 4092051 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 09C6B9F169 for ; Wed, 30 Apr 2014 09:29:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3BD24201F4 for ; Wed, 30 Apr 2014 09:29:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5236120211 for ; Wed, 30 Apr 2014 09:29:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933160AbaD3J27 (ORCPT ); Wed, 30 Apr 2014 05:28:59 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:19826 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933147AbaD3J2y (ORCPT ); Wed, 30 Apr 2014 05:28:54 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N4U00C967O5Z840@mailout1.samsung.com>; Wed, 30 Apr 2014 18:28:53 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.122]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 79.B0.14563.552C0635; Wed, 30 Apr 2014 18:28:53 +0900 (KST) X-AuditID: cbfee68e-b7fd86d0000038e3-c2-5360c255b1c7 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 9D.41.25708.552C0635; Wed, 30 Apr 2014 18:28:53 +0900 (KST) Received: from chnaveen-ubuntu.sisodomain.com ([107.108.83.161]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N4U005CT7NRFK70@mmp2.samsung.com>; Wed, 30 Apr 2014 18:28:53 +0900 (KST) From: Naveen Krishna Chatradhi To: linux-iio@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, dianders@chromium.org, gregkh@linuxfoundation.org, naveenkrishna.ch@gmail.com, lars@metafoo.de, cpgs@samsung.com, grundler@chromium.org, t.figa@samsung.com Subject: [PATCH 5/5 v3] iio: exynos_adc: do a reinit_completion before the conversion Date: Wed, 30 Apr 2014 14:56:55 +0530 Message-id: <1398850015-17761-6-git-send-email-ch.naveen@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1398850015-17761-1-git-send-email-ch.naveen@samsung.com> References: <1398850015-17761-1-git-send-email-ch.naveen@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpjkeLIzCtJLcpLzFFi42JZI2JSpRt6KCHY4OBMbYuXhzQtzi47yGbR vHg9m8WrIz+YLJZMns9qMe/IOxaLy7vmsFnMOL+PyWLRtv/MFutnvGZx4PKY3XCRxWPnrLvs HvvnrmH3WPLmEKtH35ZVjB6fN8kFsEVx2aSk5mSWpRbp2yVwZWx++ZS14CdbxbmFzcwNjC9Z uxg5OSQETCQ2rZrBBmGLSVy4tx7MFhJYyijx420aTM2Ztk3MXYxcQPHpjBKb/35mgijqZ5Lo PRIFYrMJmEkcXLSavYuRg0NEQFZiZrceSD2zwBOgOVteM4PEhQXCJVYsTAIpZxFQldi84CML iM0r4Cqx4f0ZRpASCQEFiTmTbEDCnAJuEs1HF7JAbHKVaDp7mAlkpITAIXaJO+1b2CDmCEh8 m3yIBaJXVmLTAWaIkyUlDq64wTKBUXgBI8MqRtHUguSC4qT0IiO94s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/K+eUOk+g9Zoa0FW86vtTIHX3/eHWx0IydqZKGLGeWcSUFRwue+27kON3v0tPJwW8E zsp7n2647FoS+1zd/mr5OqWp05YlPXWVquz9o7FNWJTNecUxI6upbXpZP7O//WrY3dUr6pI+ o//6t0Nb05YosRRnJBpqMRcVJwIAkLfHk/cCAAA= 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=-7.5 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 Add reinit_completion() before the wait_for_completion_timeout in raw_read() call. Signed-off-by: Naveen Krishna Chatradhi Reviewed-by: Doug Anderson --- Changes since v2: None Changes since v1: None v0: This change is a part of the patch reviewed at https://lkml.org/lkml/2013/11/5/92 drivers/iio/adc/exynos_adc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iio/adc/exynos_adc.c b/drivers/iio/adc/exynos_adc.c index eddc58e..010578f 100644 --- a/drivers/iio/adc/exynos_adc.c +++ b/drivers/iio/adc/exynos_adc.c @@ -151,6 +151,7 @@ static int exynos_read_raw(struct iio_dev *indio_dev, return -EINVAL; mutex_lock(&indio_dev->mlock); + reinit_completion(&info->completion); /* Select the channel to be used and Trigger conversion */ if (info->version == ADC_V2) {