linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: Pavel Machek <pavel@ucw.cz>
Cc: "Pali Rohár" <pali.rohar@gmail.com>,
	sre@debian.org, sre@ring0.de,
	"kernel list" <linux-kernel@vger.kernel.org>,
	balbi@ti.com, linux-arm-kernel@lists.infradead.org,
	linux-omap@vger.kernel.org, kishon@ti.com,
	s.nawrocki@samsung.com
Subject: Re: USB Ethernet gadget on Nokia n900
Date: Mon, 20 Oct 2014 15:29:43 -0700	[thread overview]
Message-ID: <20141020222942.GA2560@atomide.com> (raw)
In-Reply-To: <20141020220338.GA19314@amd>

* Pavel Machek <pavel@ucw.cz> [141020 15:04]:
> On Mon 2014-10-20 09:45:42, Tony Lindgren wrote:
> > * Pavel Machek <pavel@ucw.cz> [141020 06:10]:
> > > Hi!
> > > 
> > > > My N900 can boot kernel from v3.12-rc5-n900 branch compiled with 
> > > > arch/arm/configs/rx51_defconfig. Also it can boot full Maemo5 
> > > > system (with CSSU and some minor system changes) and usb network 
> > > > via g_nokia.ko gadget working fine...
> > > > 
> > > > So if it does not working for you then kernel usb subsystem could 
> > > > have problems with using gadgets directly from zimage.
> > > 
> > > After some hand-bisecting and real-bisecting, I found two commits that
> > > cause problems for 3.13: With these reverted, I get usb networking
> > > back in 3.13 on nokia n900.
> > > 
> > > (Pali, if you revert these, you should get working usb networking in
> > > your 3.13 branch, too.)
> > > 
> > > Any ideas?
> > 
> > Hmm maybe check if current stable kernels work for you without
> > reverting anything ? Few weeks ago I did the the following two fixes
> > with cc stable v3.13+:
> > 
> > 96be39ab34b7 usb: phy: twl4030-usb: Fix regressions to runtime PM on omaps
> > 85601b8d81e2 usb: phy: twl4030-usb: Fix lost interrupts after ID pin goes down
> 
> I tried these on top of 3.14 (where my revert fixes stuff) and no, it
> does not seem to help. (Trying stable would be a bit more work).
> 
> Do you want me to try on 3.13, too?

Sounds like there's something else missing too then. Maybe give
v3.18-rc1 and device tree based boot a try?

FYI, there's some PM support there too since v3.16-rc7, so using
anything pre v3.17 is probably not fun on the battery. Well it works
with omap2plus_defconfig long as serial port timeouts are configured,
no USB cable is connected and and the screen is blanked. When it works,
both keyboard debug LEDs will go off during idle, which really should
be most of the time if you plan to use it as a phone. The left debug
LED goes off for retention idle, when both go off it's hitting
off-idle.

I'm using the following test script here, if it does not idle for
you, there are probably some other drivers loaded that currently
block deeper idle states.

Regards,

Tony

8< ---------------
#!/bin/bash

uarts=$(find /sys/class/tty/ttyO*/device/power/ -type d)
for uart in $uarts; do
        echo 3000 > $uart/autosuspend_delay_ms
        #echo -1 > $uart/autosuspend_delay_ms
done

uarts=$(find /sys/class/tty/ttyO*/power/ -type d)
for uart in $uarts; do
        echo enabled > $uart/wakeup
        echo auto > $uart/control
done

echo 255 > /sys/devices/68000000.ocp/48098000.spi/spi_master/spi1/spi1.2/backlight/acx565akm/brightness
echo 1 > /sys/devices/platform/omapfb/graphics/fb0/blank

echo 1 > /sys/kernel/debug/pm_debug/enable_off_mode

  reply	other threads:[~2014-10-20 22:31 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-19  9:01 USB Ethernet gadget on Nokia n900 Pavel Machek
2014-10-19 10:07 ` Pavel Machek
2014-10-19 14:58   ` Pali Rohár
2014-10-19 20:50     ` Pavel Machek
2014-10-19 21:00       ` Pali Rohár
2014-10-19 22:30         ` Pavel Machek
2014-10-20 13:08         ` Pavel Machek
2014-10-20 16:45           ` Tony Lindgren
2014-10-20 22:03             ` Pavel Machek
2014-10-20 22:29               ` Tony Lindgren [this message]
2014-10-21 21:52                 ` Pavel Machek
2014-10-19 15:24   ` Felipe Balbi
2014-10-19 19:19     ` Pavel Machek
2014-10-19 19:29       ` Pavel Machek
2014-10-20 21:35       ` Aaro Koskinen
2014-10-20 21:37         ` Aaro Koskinen
2014-10-20 22:42         ` Pavel Machek
2014-10-26 11:08         ` Pavel Machek
2014-10-26 11:12           ` Pali Rohár
2014-10-26 12:00             ` Pavel Machek
2014-10-26 21:17             ` Pavel Machek
2014-10-26 21:22               ` Pali Rohár
2014-10-26 21:55                 ` Pavel Machek
2014-10-26 22:23                   ` Pali Rohár
2014-10-27 19:52                     ` Tony Lindgren
2014-10-27 22:31                       ` Tony Lindgren
2014-10-28 22:04                         ` Pavel Machek
2014-10-28 22:11                           ` Tony Lindgren
2014-10-29  8:46                             ` Nokia n900 problems in 3.18-rc1 (was Re: USB Ethernet gadget on Nokia n900) Pavel Machek
2014-10-29 14:09                               ` Tony Lindgren
2014-10-29 14:18                                 ` Tomi Valkeinen
2014-10-29 21:34                                   ` Pavel Machek
2014-10-31 20:03                                 ` Pavel Machek
2014-10-31 20:30                                   ` Pali Rohár
2014-10-28 22:21                           ` USB Ethernet gadget on Nokia n900 Pavel Machek
2014-10-28 22:26                             ` Tony Lindgren
2015-07-06 13:24                               ` Pali Rohár
2015-07-06 13:53                                 ` Tony Lindgren
2015-07-07  7:46                                   ` Pali Rohár
2015-07-07 11:46                                     ` Tony Lindgren
2016-01-19 20:58                                       ` Pali Rohár
2016-02-11 14:43                                         ` Pali Rohár
2016-02-11 14:50                                           ` Pali Rohár

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=20141020222942.GA2560@atomide.com \
    --to=tony@atomide.com \
    --cc=balbi@ti.com \
    --cc=kishon@ti.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=pali.rohar@gmail.com \
    --cc=pavel@ucw.cz \
    --cc=s.nawrocki@samsung.com \
    --cc=sre@debian.org \
    --cc=sre@ring0.de \
    /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).