Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp321962imm; Mon, 9 Jul 2018 02:21:18 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdcFPtYlkNKVevDg9oUW4qJbkWiRoBg3alZ8RM2A4I02BHpzUDvTCZAFVTk0XjuDMvWqeu6 X-Received: by 2002:a63:cb04:: with SMTP id p4-v6mr672056pgg.197.1531128078800; Mon, 09 Jul 2018 02:21:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531128078; cv=none; d=google.com; s=arc-20160816; b=uerEd4QuIMf/s4qnRj51EYy8j6HKj80p5L6Rp3Uv3BbCWNFN1Pc0Xl7i72YRnB74rH 4KTSy8uSLJCaQtNNEudCXgaLSHSNFDP5CPhaiVgeFcMyH6bRa6XYndyLY3jXTHvvyKct TDpwrkaTC0KlonZ/dYmLOfbr96krQ+y3mdvkkKP20spPsOdYoIYBsn5sN2zGLYaUiBrY gc4QSJGhDOrolBI4K/VPjizGkGHNE3zIGTSX17jN3xW8x96YVpQX17gTGCYl7+az/Gj6 HmWCPjjt3YwEEkgJ7FIZ5vNu6ie4NAp5z6Sej/KWOyIc7qMwrFUAL+RcMaAOQB2uqycH fi3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=FvgoinTNFsBCuZcGevw26tNJMVBlXqaXCCdgLC1oJwg=; b=vOlGvWWxfTvqeZKvtaTmn4esWrKSOz1TeLShEgc1Z4Chp1cFU/eK5cesNtRkEBY3Fn jz5rUk6XzzfdIhd7PzglMl2Ol8jkd+ljAt7j9qg67MxT9XQBrCWt6vU2R+dxkgARVF8C 3gOjiMhlSYg0e835exnHwV8cp7DWUQM4x0kMPvW2ZpxOnuMO0E61Tfp9DPDNqe1ErAkW 5FR3PVXD1xS2cGD5+MiF2IawK/ThnZCty4OY1P28r64AL2cHlBL/LZkK4C0aZcWT4UFK lV7cduJevZX80TtG5+niKDd/UkyW5Fqo1eSnr5GFb+OMsGhOuda/BzRXcJzD0RiL30SN KhAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=gK51t1gZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v2-v6si5097367pfv.57.2018.07.09.02.21.03; Mon, 09 Jul 2018 02:21:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=gK51t1gZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932436AbeGIJUW (ORCPT + 99 others); Mon, 9 Jul 2018 05:20:22 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:39208 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754077AbeGIJUT (ORCPT ); Mon, 9 Jul 2018 05:20:19 -0400 Received: by mail-lj1-f195.google.com with SMTP id t7-v6so13543736ljj.6; Mon, 09 Jul 2018 02:20:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=FvgoinTNFsBCuZcGevw26tNJMVBlXqaXCCdgLC1oJwg=; b=gK51t1gZIJrlJe5GsoBtVzoz15ckwrQ6h8JwcoavZYQdR01qPDTVDQiG9H1qJUTX/s yfqN3UXsnSW2TUdUU6uLv01/0mfx8EcDFxRN2OXhaXWGhfryjAb/+jVwdWUxOnJ3RYCT nAaVPccORRiYCK5EXzPv0oNUJ0D09i3+zosVXBXGa1b6yZ5yfkJWiU+j8bv6yV1zOryM eSEq2Vn2qj+KMRke/DDr1tkkSaccDeQp0QMaAf0TSZtTiCZAjZUIyJCDwU4K4YiZT6hy VtM1UxGhkq6EgSu4lOk/rM/6NSD1rDM59rI6H+0pdfcrjGHQXpVRa28HlsYY0LR0xGG3 LkvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=FvgoinTNFsBCuZcGevw26tNJMVBlXqaXCCdgLC1oJwg=; b=G2IILus23+t9u+TrnqkcBpqzdU+2lDqDGb/1kszJ4NzKNi/cs6S1GuGdfdavQ07hxw 4u0uYGRJ/GvI4Jh4lP6l68BF3c4s7FZDUBYY6aw4N7EIf7JM7IahENohMwvVUBj3YtZf QEuBu9HWL9GFeQdQf9B73a2f+0kaoZQwlhNMYcNVl5ojK19IidmVOwrWwfSjvVyvM5ud CqT5WNMMVsRz453zfjS9UpkkDPMdjwlDEou/h8MhN3Q7MOR9C5JuwDDXE2HX049wQFly LHG0/lfNsjpk7Qmjd+JxAgyK8aLPxCXqCNr9u6evMxuRuxdqv4uYYBv4Tn5+KKPNEGHE 5hPw== X-Gm-Message-State: APt69E0hjG2hQVGkgSC/1EqfLwTI4Qsoqfchj2jigZIn26w5D2mfaqMp AhFxszniJAlH25y/uNHodlE= X-Received: by 2002:a2e:9bc9:: with SMTP id w9-v6mr11500432ljj.33.1531128018231; Mon, 09 Jul 2018 02:20:18 -0700 (PDT) Received: from localhost (87-57-30-174-static.dk.customer.tdc.net. [87.57.30.174]) by smtp.gmail.com with ESMTPSA id f2-v6sm3957235lfb.11.2018.07.09.02.20.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Jul 2018 02:20:17 -0700 (PDT) From: Esben Haabendal To: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= Cc: linux-i2c@vger.kernel.org, Wolfram Sang , Phil Reid , Philipp Zabel , Lucas Stach , Clemens Gruber , Michail Georgios Etairidis , linux-kernel@vger.kernel.org, Yuan Yao , linux-imx@nxp.com Subject: Re: [PATCH 1/4] i2c: imx: Fix reinit_completion() use References: <20180523095623.3347-1-esben.haabendal@gmail.com> <20180523095623.3347-2-esben.haabendal@gmail.com> <20180704070342.pgnjjffk34nkloob@pengutronix.de> Date: Mon, 09 Jul 2018 11:20:16 +0200 In-Reply-To: <20180704070342.pgnjjffk34nkloob@pengutronix.de> ("Uwe =?utf-8?Q?Kleine-K=C3=B6nig=22's?= message of "Wed, 4 Jul 2018 09:03:42 +0200") Message-ID: <87y3ekahpr.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Uwe Kleine-K=C3=B6nig writes: > Cc +=3D Yuan Yao who authored DMA support and the NXP team. > > On Wed, May 23, 2018 at 11:56:20AM +0200, Esben Haabendal wrote: >> From: Esben Haabendal >>=20 >> Make sure to call reinit_completion() before dma is started to avoid race >> condition where reinit_compleition() is called after complete() and befo= re > > s/compleition/completion/ Will fix in v2. > >> wait_for_completion_timeout(). > > Is this a theoretical problem, or did it trigger on your side? I thought I did trigger it, but haven't been able to reproduce. So it might or might not be theoretical based on my experiences, but it does look like something that can (and thus should) trigger sometimes. /Esben