From: "Daniel Glöckner" <dg@emlix.com>
To: Bin Liu <b-liu@ti.com>
Cc: linux-usb@vger.kernel.org,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Subject: musb: fix remote wakeup racing with suspend
Date: Thu, 3 May 2018 16:42:34 +0200 [thread overview]
Message-ID: <4b2e8e01-a104-94cf-b2e8-c8cc125e84ec@emlix.com> (raw)
Hi,
Am 05/02/18 um 14:40 schrieb Bin Liu:
> On Wed, May 02, 2018 at 03:12:16AM +0200, Daniel Glöckner wrote:
>> On Tue, May 01, 2018 at 08:48:11AM -0500, Bin Liu wrote:
>>> On Fri, Apr 27, 2018 at 03:00:05PM +0200, Daniel Glöckner wrote:
>>>> This commit returns -EBUSY when musb_bus_suspend is called while remote
>>>> wakeup is signalled and thus avoids to reset the RESUME bit. Remember that
>>>> resume can be signalled only when the bus was already suspended, so it is
>>>> safe to skip the following steps even when musb_hub_control ignores the
>>>
>>> what do you mean by "skip the following steps"?
>>
>> Setting USB_PORT_STAT_SUSPEND in musb->port1_status, changing
>> musb->xceiv->otg->state, setting musb->is_active, etc.
>
> Okay, but I am not sure how "even musb_hub_control ignores the error..."
> is relevant in this statement. The steps are safely skipped in
> musb_port_suspend() when MUSB_POWER_RESUME bit is set, no matter how
> musb_hub_control() to deal with the return code from
> musb_port_suspend(). Did I misunderstand anything?
No, I just wanted to point out that musb_hub_control does not need
to clean up after the error.
>> I'll test without that part and make a v2 patch if it works.
It works without changing that line. v2 follows.
Best regards,
Daniel
next reply other threads:[~2018-05-03 14:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-03 14:42 Daniel Glöckner [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-05-02 12:40 musb: fix remote wakeup racing with suspend Bin Liu
2018-05-02 1:12 Daniel Glöckner
2018-05-01 13:48 Bin Liu
2018-04-27 13:00 Daniel Glöckner
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=4b2e8e01-a104-94cf-b2e8-c8cc125e84ec@emlix.com \
--to=dg@emlix.com \
--cc=b-liu@ti.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-usb@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.