All of lore.kernel.org
 help / color / mirror / Atom feed
From: Larry Finger <Larry.Finger@lwfinger.net>
To: Andy Spencer <andy753421@ucla.edu>, linux-wireless@vger.kernel.org
Subject: Re: [PATCH] RTL8192CU: Increase max APFM_ONMAC polling count
Date: Tue, 06 May 2014 09:18:20 -0500	[thread overview]
Message-ID: <5368EF2C.3060000@lwfinger.net> (raw)
In-Reply-To: <20140502064813.GA30179@pileus.org>

On 05/02/2014 01:48 AM, Andy Spencer wrote:
> With certain hardware combinations the poll interval is exceeded before
> initialization completes.
>
> Tested on a MacBookPro10,1 using a Sabrent USB-A11N USB adapter.
>
> Signed-off-by: Andy Spencer <andy753421@ucla.edu>
> ---
> I was unable to reproduce this issue using other hardware combinations.
> I thought it might be a USB3 issue but another laptop with USB3 worked
> without the patch.
>
> With my hardware the polling count reaches around 230 before
> initialization completes.

Acked-by: Larry Finger <Larry.Finger@lwfinger.net>

If the adapter initializes quickly, this change causes no problem. I have not 
seen this kind of problem, but some hardware is obviously different.

Larry

>
>   drivers/net/wireless/rtlwifi/rtl8192cu/hw.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- a/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c
> +++ b/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c
> @@ -511,7 +511,7 @@ static int _rtl92cu_init_power_on(struct ieee80211_hw *hw)
>   			pr_info("MAC auto ON okay!\n");
>   			break;
>   		}
> -		if (pollingCount++ > 100) {
> +		if (pollingCount++ > 1000) {
>   			RT_TRACE(rtlpriv, COMP_INIT, DBG_EMERG,
>   				 "Failed to polling REG_APS_FSMCO[APFM_ONMAC] done!\n");
>   			return -ENODEV;
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>


      reply	other threads:[~2014-05-06 14:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-02  6:48 [PATCH] RTL8192CU: Increase max APFM_ONMAC polling count Andy Spencer
2014-05-06 14:18 ` Larry Finger [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5368EF2C.3060000@lwfinger.net \
    --to=larry.finger@lwfinger.net \
    --cc=andy753421@ucla.edu \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.