From: peter.chen@freescale.com (Peter Chen)
To: linux-arm-kernel@lists.infradead.org
Subject: Regression: USB OTG port breaks after a few hours in host mode on iMX6
Date: Fri, 9 Oct 2015 10:08:50 +0800 [thread overview]
Message-ID: <20151009020849.GD21057@shlinux2> (raw)
In-Reply-To: <20151008161605.GH32532@n2100.arm.linux.org.uk>
On Thu, Oct 08, 2015 at 05:16:06PM +0100, Russell King - ARM Linux wrote:
> On Thu, Oct 08, 2015 at 09:52:52AM +0000, Peter Chen wrote:
> > I can't reproduce it for 5 hours, and will change pinmux (do the same
> > thing with your platform), and do the overnight test.
>
I still not reproduce it.
> There's definitely something weird going on. Over night last night,
> I left the Logitech universal receiver in the port, and this morning
> it was indicating in /proc/interrupts:
>
> 283: 50 0 0 0 GPC 43 Edge 2184000.usb
>
> I removed it, and now I have:
>
> 283: 50 0 1716 0 GPC 43 Edge 2184000.usb
>
> which is increasing at a rate of 90 per minute.
It is strange your interrupt occurs at cpu2 at that time, and
so many interrupts during the removal. In order to avoid other
interrupts occurring during the removal, would you please change
your dts like below:
&usbotg {
vbus-supply = <®_usb_otg_vbus>;
dr_mode = "host";
disable-over-current;
status = "okay";
};
>
> Nothing in the kernel message log indicating why this may be. It looks
> like runtime PM doesn't work on this port:
>
> /sys/bus/platform/devices/2184000.usb/power/runtime_active_time:109850496
> /sys/bus/platform/devices/2184000.usb/power/runtime_status:active
> /sys/bus/platform/devices/2184000.usb/power/runtime_suspended_time:0
>
This may be correct, assume your usb receiver does not support runtime
pm, so the controller is active when it is on the port, when the
removal, the interrupt occurs so frequently, it has no chance to enter
suspend status.
> whereas the other port (which has zero interrupts) it does:
>
> /sys/bus/platform/devices/2184200.usb/power/runtime_active_time:16924
> /sys/bus/platform/devices/2184200.usb/power/runtime_status:suspended
> /sys/bus/platform/devices/2184200.usb/power/runtime_suspended_time:109861760
>
> --
> FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
> according to speedtest.net.
--
Best Regards,
Peter Chen
prev parent reply other threads:[~2015-10-09 2:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-07 8:22 Regression: USB OTG port breaks after a few hours in host mode on iMX6 Russell King - ARM Linux
2015-10-08 4:44 ` Peter Chen
2015-10-08 9:52 ` Peter Chen
2015-10-08 16:16 ` Russell King - ARM Linux
2015-10-09 2:08 ` Peter Chen [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=20151009020849.GD21057@shlinux2 \
--to=peter.chen@freescale.com \
--cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).