Return-path: Received: from mail-wm0-f46.google.com ([74.125.82.46]:35935 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750961AbcETUyv (ORCPT ); Fri, 20 May 2016 16:54:51 -0400 Received: by mail-wm0-f46.google.com with SMTP id n129so18431wmn.1 for ; Fri, 20 May 2016 13:54:51 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <1463594249-19524-1-git-send-email-dlenski@gmail.com> From: Daniel Lenski Date: Fri, 20 May 2016 13:54:10 -0700 Message-ID: (sfid-20160520_225455_634337_45A1287C) Subject: Re: [PATCH] rtl8xxxu: increase polling timeout for firmware startup To: Jes Sorensen Cc: linux-wireless@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Fri, May 20, 2016 at 1:50 PM, Daniel Lenski wrote: > Am I understanding your idea correctly? To put a loop around the 8051 > reset and the firmware polling loop, with a delay between failure and retry? That was some sloppy pseudo-code by me... here's what I think you're suggesting: for (retry=1; retry<=5; retry++) { /* Reset the 8051 */ priv->fops->reset_8051(priv); /* Wait for firmware to become ready */ for (i=0; i