From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753247AbbCIO1l (ORCPT ); Mon, 9 Mar 2015 10:27:41 -0400 Received: from opensource.wolfsonmicro.com ([80.75.67.52]:37441 "EHLO opensource.wolfsonmicro.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752901AbbCIO1j (ORCPT ); Mon, 9 Mar 2015 10:27:39 -0400 Date: Mon, 9 Mar 2015 14:27:37 +0000 From: Charles Keepax To: Nicholas Mc Guire Cc: Liam Girdwood , Mark Brown , patches@opensource.wolfsonmicro.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] ASoC: wm8996: ensure lower bounds of 1 for timeout Message-ID: <20150309142737.GC26692@opensource.wolfsonmicro.com> References: <1425808958-17104-1-git-send-email-hofrat@osadl.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1425808958-17104-1-git-send-email-hofrat@osadl.org> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 08, 2015 at 06:02:38AM -0400, Nicholas Mc Guire wrote: > wait_for_completion_timeout can be called with timeout == 0 due to > msecs_to_jiffies(2) == 1 for HZ < 1000 and usecs_to_jiffies(300) == 1 > for all reasonable values of HZ, thus the following timeout /= 2; sets > timeout to 0. This patch simply adds a lower-bounds of 1. > > Signed-off-by: Nicholas Mc Guire > --- Acked-by: Charles Keepax Thanks, Charles