Return-path: Received: from mail-qy0-f174.google.com ([209.85.216.174]:54215 "EHLO mail-qy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752705Ab0KEJwl convert rfc822-to-8bit (ORCPT ); Fri, 5 Nov 2010 05:52:41 -0400 Received: by qyk12 with SMTP id 12so2486963qyk.19 for ; Fri, 05 Nov 2010 02:52:41 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <201011051044.37167.helmut.schaa@googlemail.com> References: <201011042037.00178.IvDoorn@gmail.com> <201011042037.23442.IvDoorn@gmail.com> <201011042037.47939.IvDoorn@gmail.com> <201011051044.37167.helmut.schaa@googlemail.com> Date: Fri, 5 Nov 2010 10:52:40 +0100 Message-ID: Subject: Re: [PATCH 03/13] rt2x00: Wait up to one second on rt2800 for WPDMA to be ready From: Ivo Van Doorn To: Helmut Schaa Cc: linux-wireless@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-wireless-owner@vger.kernel.org List-ID: Hi, On Fri, Nov 5, 2010 at 10:44 AM, Helmut Schaa wrote: > Hi, > > Am Donnerstag 04 November 2010 schrieb Ivo van Doorn: >> From: Helmut Schaa >> >> At least some devices need such a long time to inititalize WPDMA. This >> only increases the maximum wait time and shouldn't affect devices that >> have been working before. >> >> Reported-by: Joshua Smith >> Signed-off-by: Helmut Schaa >> Signed-off-by: Ivo van Doorn >> --- > > Ivo, the patch context looks different then in the version I've send to you. > > The > ? ? ? ?for (i = 0; i < REGISTER_BUSY_COUNT; i++) { > should be > ? ? ? ?for (i = 0; i < 100; i++) { > > Otherwise we don't wait up to one second as in the comment but just 50ms :P > > However, that change was part of a previous patch that was already merged into > the rt2x00 git tree. Seems like that change got lost during the merge ... I'll try to find the patch which changed the REGISTER_BUSY_COUNT behavior. I'm almost worried that more patches have somehow gotten lost (I already noticed that there were a bunch of patches which were send upstream had disappeared from rt2x00.git, but those fortunately reappeared during the last update from wireless-testing). Ivo Ivo