From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rene Herman Subject: Re: [PATCH] cs4231-lib: improved waiting after mce_down (2nd rev) Date: Tue, 11 Sep 2007 02:40:34 +0200 Message-ID: <46E5E402.40906@gmail.com> References: <20070909221131.06372eb2.krzysztof.h1@gmail.com> <20070911004010.b9114b3e.krzysztof.h1@gmail.com> <46E5C89E.4010607@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from smtpq1.tilbu1.nb.home.nl (smtpq1.tilbu1.nb.home.nl [213.51.146.200]) by alsa0.perex.cz (Postfix) with ESMTP id C9F9F243A6 for ; Tue, 11 Sep 2007 02:40:38 +0200 (CEST) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Takashi Iwai Cc: Krzysztof Helt , Alsa-devel List-Id: alsa-devel@alsa-project.org On 09/11/2007 01:17 AM, Takashi Iwai wrote: >> Actually, the code with msleep() was basically OK. If more finer >> check is needed, it can simply use msleep(1). The point is to use >> timer_after_eq() instead of loop count for the precise timeouts. > > Could you check whether the below patch works? Works for me on ISA CS4231 (behind an AZT1605). Earlier Krzysztof suggested that 2 ms may be optimum, but I'll leave that upto him. Acked-by: Rene Herman Zzz, Rene