All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Chen <peter.chen@nxp.com>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Paul Zimmerman <pauldzim@gmail.com>,
	USB list <linux-usb@vger.kernel.org>
Subject: Re: No disconnection event for suspended device at v5.6
Date: Fri, 17 Apr 2020 02:42:42 +0000	[thread overview]
Message-ID: <20200417024302.GA24426@b29397-desktop> (raw)
In-Reply-To: <Pine.LNX.4.44L0.2004161619300.20822-100000@netrider.rowland.org>

On 20-04-16 16:20:21, Alan Stern wrote:
> On Thu, 16 Apr 2020, Paul Zimmerman wrote:
> 
> > On 4/16/20 7:34 AM, Alan Stern wrote:
> > > On Wed, 15 Apr 2020, Paul Zimmerman wrote:
> > > 
> > >> Hi Alan,
> > >>
> > >> On Wed, 15 Apr 2020 15:40:31 -0400 (EDT) Alan Stern <stern@rowland.harvard.edu> wrote:
> > > 
> > >>> Paul, I trust this new patch won't mess up your Bluetooth adapter.  It
> > >>> should still clear the hub->change_bits entry before the hub workqueue
> > >>> thread wakes up.
> > >>>
> > >>> Alan Stern
> > > 
> > >> Unfortunately, my testing on this is somewhat inconclusive. I updated
> > >> to the latest Linus kernel, then did about a half-dozen suspend/resume
> > >> cycles to verify it was still working. Then I applied the patch and
> > >> rebooted into the new kernel. At first I thought it was OK, but after
> > >> about 5 or 6 suspend/resume cycles, the bluetooth stopped working (the
> > >> desktop bluetooth manager in Linux Mint froze when I opened it). Another
> > >> suspend/resume cycle brought it back to life, but after a couple more
> > >> cycles it froze again.
> > > 
> > > That sounds different from your original bug report.  Didn't the
> > > adapter fail in a significantly larger fraction of suspends?
> > 
> > Yes it did.
> > 
> > >> But looking at the dmesg log, there were no errors concerning the
> > >> bluetooth adapter. With the original failure, it would show errors
> > >> before or during the firmware update of the bluetooth adapter, but
> > >> now, the firmware update seemed to complete OK. And to top it off,
> > >> after a reboot, I am no longer able to make it fail. I did more than
> > >> a dozen suspend/resume cycles and have not seen any further failures.
> > >>
> > >> So, make of that what you will :)
> > > 
> > > Overall, I guess we can call it a success.  Do you want to collect a
> > > usbmon trace to verify that the patch behaves as expected, or are you
> > > happy with the testing so far?
> > 
> > I doubt a usbmon trace would show us anything unless I could get the
> > bluetooth to fail again. And since I was the only one who saw the
> > original problem anyway, I think it's fine to proceed with this patch
> > as-is.
> 
> Okay, then I'll add your Tested-by if you don't mind.
> 
> Peter, have you tested the patch?
> 

I tested the reported issue and reset-resume case, both are OK.

Tested-by: Peter Chen <peter.chen@nxp.com>

-- 

Thanks,
Peter Chen

  reply	other threads:[~2020-04-17  2:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-15 10:32 No disconnection event for suspended device at v5.6 Peter Chen
2020-04-15 19:40 ` Alan Stern
2020-04-15 23:22   ` Paul Zimmerman
2020-04-16 14:34     ` Alan Stern
2020-04-16 19:46       ` Paul Zimmerman
2020-04-16 20:20         ` Alan Stern
2020-04-17  2:42           ` Peter Chen [this message]
2020-04-16  1:18   ` Peter Chen

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=20200417024302.GA24426@b29397-desktop \
    --to=peter.chen@nxp.com \
    --cc=linux-usb@vger.kernel.org \
    --cc=pauldzim@gmail.com \
    --cc=stern@rowland.harvard.edu \
    /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.