All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jes Sorensen <Jes.Sorensen@redhat.com>
To: Daniel Lenski <dlenski@gmail.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCH] rtl8xxxu: increase polling timeout for firmware startup
Date: Tue, 31 May 2016 14:24:00 -0400	[thread overview]
Message-ID: <wrfjinxudr27.fsf@redhat.com> (raw)
In-Reply-To: <CAOw_LSEHTM47ro=W_DBWSpX1SJ9YR+EvJQ+6qja-XvHH1JToiQ@mail.gmail.com> (Daniel Lenski's message of "Tue, 31 May 2016 10:59:27 -0700")

Daniel Lenski <dlenski@gmail.com> writes:
> On Tue, May 31, 2016 at 8:04 AM, Jes Sorensen <Jes.Sorensen@redhat.com> wrote:
>> Given your follow-on discoveries, do you still want me to apply the poll
>> timeout patch, or should we wait until we nail down the reset code issue
>> first?
>
> No, I don't think the timeout patch is worth appying. I believe it
> was just dumb luck that it worked when I initially tested it,
> because I did not understand how to reproducibly generate the
> incomplete-reset condition then.
>
> One the other hand, the power-cycle-and-retry approach has been 100%
> reliable for me. It has never failed to bring up the device in the
> last 8-10 days and probably a few dozen reboots.
>
> The patch for this could be applied as-is and I expect it will fix the
> issue for other users who've reported it, though I understand that
> you're interested in identifying the root cause issue with the reset
> sequence as well.

Thanks for the update!

I would like if you could try to break down the power_off sequence of
code to try to figure out exactly what part of it does the trick.

Maybe try if this sequence does the trick first:

        /* Reset MCU IO Wrapper */
        val8 = rtl8xxxu_read8(priv, REG_RSV_CTRL + 1);
        val8 &= ~BIT(0);
        rtl8xxxu_write8(priv, REG_RSV_CTRL + 1, val8);

        val8 = rtl8xxxu_read8(priv, REG_RSV_CTRL + 1);
        val8 |= BIT(0);
        rtl8xxxu_write8(priv, REG_RSV_CTRL + 1, val8);

        /* RSV_CTRL 0x1C[7:0] = 0x0e  lock ISO/CLK/Power control register */
        rtl8xxxu_write8(priv, REG_RSV_CTRL, 0x0e);

If that doesn't do it, try to call rtl8xxxu_emu_to_disabled() instead;

Cheers,
Jes

      reply	other threads:[~2016-05-31 18:24 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-18 17:57 [PATCH] rtl8xxxu: increase polling timeout for firmware startup Dan Lenski
2016-05-18 17:57 ` [PATCH] rtl8xxxu: Increase default " Dan Lenski
2016-05-19  2:08 ` [PATCH] rtl8xxxu: increase " Jes Sorensen
2016-05-20  4:51   ` Daniel Lenski
2016-05-20 14:08     ` Jes Sorensen
2016-05-20 20:50       ` Daniel Lenski
2016-05-20 20:54         ` Daniel Lenski
2016-05-21  3:13           ` Jes Sorensen
2016-05-21  2:40       ` Daniel Lenski
2016-05-22 23:02         ` Dan Lenski
2016-05-23 19:24         ` Jes Sorensen
2016-05-23 21:47           ` Daniel Lenski
2016-05-31 15:04   ` Jes Sorensen
2016-05-31 17:59     ` Daniel Lenski
2016-05-31 18:24       ` Jes Sorensen [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=wrfjinxudr27.fsf@redhat.com \
    --to=jes.sorensen@redhat.com \
    --cc=dlenski@gmail.com \
    --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.