public inbox for linux-tegra@vger.kernel.org
 help / color / mirror / Atom feed
From: Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
To: Marc Dietrich <marvin24-Mmb7MZpHnFY@public.gmane.org>
Cc: "linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Venu Byravarasu
	<vbyravarasu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
Subject: Re: unhandled interrupt from otg port
Date: Tue, 19 Feb 2013 15:24:44 -0700	[thread overview]
Message-ID: <5123FBAC.6010302@wwwdotorg.org> (raw)
In-Reply-To: <4469776.MJZ64uWU3E@ax5200p>

On 02/19/2013 03:17 PM, Marc Dietrich wrote:
> On Tuesday 19 February 2013 23:12:53 Marc Dietrich wrote:
>> Stephen,
>>
>> On Tuesday 19 February 2013 10:03:47 Stephen Warren wrote:
>>> On 02/17/2013 04:48 AM, Marc Dietrich wrote:
>>>> Hi,
>>>>
>>>> I sometimes see unhandled irq from the otg port on my AC100 (kernel 3.8.0-rc7).
>>>> This happens randomly when the a cable is pluged into the mini usb port. Seems
>>>> the port generates an interrupt on probe which isn't handled.
>>>
>>> Perhaps Venu can explain this; he is our USB expert.
>>>
>>>> Any ideas?
>>>
>>> I'm slightly confused by your description though; I assume this problem
>>> happens when you boot with a USB cable already plugged in, not when you
>>> first boot the system, then plug in a cable? Is the cable connected to a
>>> host PC, or to a device?
>>
>> the cable is connected to a host PC. It is not shown when connecting after the
>> system has booted. Unfortunately, I cannot generate the error reproducible, e.g.
>> I just tried 10 times and nothing was shown. Maybe just forget it for now if
>> no one has an obvious idea. I'll try to find some reproducable situation and will
>> report back.
> 
> arr, just found it: it happens when you load an uboot image via tegrarcm first - so this
> could be a kernel or uboot problem.

Ah, so that means that the Tegra boot ROM already initialized the USB
port in device mode to receive U-Boot. I assume you're not touching USB
in U-Boot at all, but loading the kernel/... from SD/eMMC. Then, the
kernel initializes/uses USB in host mode (since that's all we support so
far), and then you see the issue.

I reproduced this on Harmony. I'll file a bug and assign it to Venu.

  reply	other threads:[~2013-02-19 22:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-17 11:48 unhandled interrupt from otg port Marc Dietrich
2013-02-19 17:03 ` Stephen Warren
     [not found]   ` <5123B073.7060005-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-02-19 22:12     ` Marc Dietrich
2013-02-19 22:17       ` Marc Dietrich
2013-02-19 22:24         ` Stephen Warren [this message]
     [not found]           ` <5123FBAC.6010302-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-02-20  8:50             ` Marc Dietrich
     [not found]               ` <2407399.sDvuQ1S2GC-D3pzGp0ZKuDWZbiwp4sFPyrtisivX6KghOMvlBiLbJSELgA04lAiVw@public.gmane.org>
2013-02-20  8:59                 ` Venu Byravarasu
2013-02-28  6:47               ` Venu Byravarasu

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=5123FBAC.6010302@wwwdotorg.org \
    --to=swarren-3lzwwm7+weoh9zmkesr00q@public.gmane.org \
    --cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=marvin24-Mmb7MZpHnFY@public.gmane.org \
    --cc=vbyravarasu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox