From: Andreas Naumann <dev@andin.de>
To: Grazvydas Ignotas <notasas@gmail.com>, Felipe Balbi <balbi@ti.com>
Cc: anaumann@ultratronik.de,
Linux USB Mailing List <linux-usb@vger.kernel.org>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [PATCH V3] usb: musb: Fix unstable init of OTG_INTERFSEL.
Date: Thu, 19 Dec 2013 15:06:55 +0100 [thread overview]
Message-ID: <52B2FD7F.2070604@andin.de> (raw)
In-Reply-To: <CANOLnOOP8bh2OuajnCE7P-VpSvH_u7-wk5bHuWEfXhALHCBk4w@mail.gmail.com>
Am 19.12.2013 00:40, schrieb Grazvydas Ignotas:
> On Wed, Dec 18, 2013 at 5:35 PM, Felipe Balbi <balbi@ti.com> wrote:
>> Hi,
>>
>> On Tue, Dec 17, 2013 at 05:48:33PM +0100, anaumann@ultratronik.de wrote:
>>> From: Andreas Naumann <anaumann@ultratronik.de>
>>>
>>> This is a hard to reproduce problem which leads to non-functional
>>> USB-OTG port in 0.1%-1% of all boots. Tracked it down to commit
>>> e25bec160158abe86c276d7d206264afc3646281, which introduces save/restore
>>> of OTG_INTERFSEL over suspend.
>>> Since the resume function is also called early in driver init, it uses a
>>> non-initialized value (which is 0 and a non-supported setting in DM37xx
>>> for INTERFSEL). Shortly after the correct value is set. Apparently this
>>> works most time, but not always.
>>
>> yeah, but the problem is not on the glue layer. The bug is omap_device
>> and pm_runtime not agreeing on device's state. I suppose there was a fix
>> for that recently in linux-omap@vger mailing list.
>
> You mean this: http://marc.info/?t=138444882600003&r=1&w=2 ?
>
> This looks like a different issue during suspend, this problem is at
> startup. Both musb_core and omap2430.c expect hardware to be disabled
> on startup, and that works as expected. The problem is on first
> pm_runtime_get_sync(), which results in first runtime_resume() call,
> musb_core checks for first resume and doesn't load yet-unset context
> in that case, however glue does and breaks things. We have this
> problem since 3.2.
I'm a bit short on time at the moment, but shall I have a go on another
version of the patch with the init-variable as atomic_t?
Andreas
>
> Gražvydas
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2013-12-19 14:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-17 16:48 [PATCH V3] usb: musb: Fix unstable init of OTG_INTERFSEL anaumann-ZKHRqZ6+gQUX0D0ZMPkEVw
2013-12-17 17:22 ` David Cohen
2013-12-18 7:41 ` Andreas Naumann
2013-12-18 11:28 ` Grazvydas Ignotas
2013-12-18 15:35 ` Felipe Balbi
[not found] ` <20131218153545.GA1593-HgARHv6XitL9zxVx7UNMDg@public.gmane.org>
2013-12-18 23:40 ` Grazvydas Ignotas
2013-12-19 14:06 ` Andreas Naumann [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=52B2FD7F.2070604@andin.de \
--to=dev@andin.de \
--cc=anaumann@ultratronik.de \
--cc=balbi@ti.com \
--cc=linux-omap@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=notasas@gmail.com \
/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.