Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7039114ybi; Thu, 13 Jun 2019 08:33:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZpB7RjdeDnqw6a3hBHsPfuFBJpUme1T9mDojevUPtKJ8IO4fpESt6ZnwPJiaDCGx2+OEu X-Received: by 2002:a17:90a:3310:: with SMTP id m16mr6111940pjb.7.1560439988133; Thu, 13 Jun 2019 08:33:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560439988; cv=none; d=google.com; s=arc-20160816; b=ZG8ynXo6iCDdqSTTwQlJ4L+f2FgiBXPE/YvOW8SAahUcmXKATqT54Y/SFJo4DqvC/t cmMOs/EvGf3n0t6DKav8ruq7OCIohiYQBwATGDkzOIG3NqhImWcZiR0bbvEsTprKeBRe i5QNZ0/VOY656Q9/LjF39nvBXSmkzn13fyCblKwa5t72hvIm/49FcPTA1ES0hstoJTLo wVwKhZqP2IWdS+VUeSPKwM7IyYqCYlyjJIH75ceOfdcMRH56hkDWXgYQpqxO7jN7zN9s dnC/3t3qpxcTG9GaCK5UzVMPwUFpyXK1S2ZaQFEE2spwkICjrV87B7eVvCSrH77DiKGB /Alg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7ROIHWha16mxUdpiMv2/mFXemJEyVgFC+AHaVeQyQA4=; b=xiY3MSPVrLJvbCIUq9BrGDpD7HRrQ5eirnbkla6VZQUOSDZPbHYvV7zF67UtZDW/1W W3ts1LCaK7rfxHDSFcGg/pjEQX2SMrCm/+X0ishbmUl2ssIzQ4e0KrAHEoFJUvWtrg/r UwkUm03kBh6GkZjQyiDwXUpWLRengpDVmUfW+PlFcMF8pl1V1SpEeZLpev3ilktZh3BS 1ldTHSMgoAJaqvzJ3DSf7jsJ/RdidIB8GVqu1ijpZd3dZ6waU6LPcQjBBkZimyKZcG4M gIUWUuTKidNIcvgEVIdck4A6kH4ytZKcM/tKDwU0jbExpOSa0SvWI0MsZIB7W2DbyTHY JE0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sZ3a2EWN; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3si81449pgv.403.2019.06.13.08.32.52; Thu, 13 Jun 2019 08:33:08 -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=pass header.i=@kernel.org header.s=default header.b=sZ3a2EWN; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728643AbfFMPa3 (ORCPT + 99 others); Thu, 13 Jun 2019 11:30:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:57464 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728798AbfFMLPu (ORCPT ); Thu, 13 Jun 2019 07:15:50 -0400 Received: from localhost (unknown [122.167.115.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4BD3420B7C; Thu, 13 Jun 2019 11:15:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560424549; bh=F0cLZ2BcFWcZKdjgmfySMbp1c9gT1Nhrp8MvVzKxWUk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sZ3a2EWNU/sSbdg5WQqvbu6fzmnt8yR7dcSEirSw7S9qSac2168t4rVEw1DmI6OIU G/c3Q8iQsR9hubusvp9DBZkEQZNVJ4bY7KGbHELbtiL1cRRnJzBgcrDkYZTIQgzjhg zkzcvdEiKeNW0t1no5llp6yJol2OLDriqDJeuFMo= Date: Thu, 13 Jun 2019 16:42:42 +0530 From: Vinod Koul To: Gary R Hook Cc: "Hook, Gary" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] dmaengine: dmatest: timeout value of -1 should specify infinite wait Message-ID: <20190613111242.GE9160@vkoul-mobl.Dlink> References: <155933183362.4916.15727271006977576552.stgit@sosrh3.amd.com> <20190604122356.GY15118@vkoul-mobl> <010db7bb-dee2-4ba8-a085-4154735b98db@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <010db7bb-dee2-4ba8-a085-4154735b98db@amd.com> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04-06-19, 16:47, Gary R Hook wrote: > Well, I was uncomfortable with documentation that didn't match behavior. That is the right way :) > > I see two choices (and I just chose one to start a conversation): > > 1) Accept this patch, with an infinite timeout, or > 2) Leave the data type alone, but change the description to state that > timeout values up to hex 0xFFFFFFFF / decimal 4294967295 can be used, > emulating an "infinite" wait. A very long wait that eventually pops a > timer is probably preferable. I don't think there are any conversion > issues since the jiffy parameter to wait_event_freezable_timeout() is > converted to a long. I could be wrong about that. > > I'm happy to go with option (2). Please suggest a course of action. That looks sensible to me as well Thanks -- ~Vinod