Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1312489

Re: Nokia N900: musb is in wrong state after boot

From Tony Lindgren <tony@atomide.com>
Newsgroups linux.kernel
Subject Re: Nokia N900: musb is in wrong state after boot
Date 2016-01-19 21:40 +0100
Message-ID <qSLei-4ue-3@gated-at.bofh.it> (permalink)
References <qP3t7-7kY-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,

* Pali Rohár <pali.rohar@gmail.com> [160109 07:16]:
> Hello,
> 
> when I boot 4.4.0-rc7+ kernel compiled with g_nokia into zImage on Nokia 
> N900 into userspace then usb gadget (g_nokia) does not work. Notebook, 
> connected on other side does not see any usb device... Connecting and 
> disconnecting cable does not change anything, still not work.
> 
> But if I run this command
> $ echo peripheral > /sys/bus/platform/devices/musb-hdrc.0.auto/mode 


> 
> then gadget starts working. Other side see usb device and can use it. 
> Also connecting and disconnecting usb cable working fine. After 
> connecting it again, usb device OK.

N900 had the PHY interrupt wired to the bq chip instead of twl4030, right?

You can fix this issue similar to phy-twl4030-usb.c. In function
twl4030_phy_power_on() we call schedule_delayed_work() that checks
the state of the ID pin on boot up.

I think that's only needed for the i2c based PHY's with MUSB, with
the others the USB driver has a better idea of the current state.

Regards,

Tony

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: Nokia N900: musb is in wrong state after boot Tony Lindgren <tony@atomide.com> - 2016-01-19 21:40 +0100
  Re: Nokia N900: musb is in wrong state after boot Pali Rohár <pali.rohar@gmail.com> - 2016-01-21 09:50 +0100
    Re: Nokia N900: musb is in wrong state after boot Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> - 2016-01-21 11:00 +0100
      Re: Nokia N900: musb is in wrong state after boot Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> - 2016-01-21 11:30 +0100
      Re: Nokia N900: musb is in wrong state after boot Pali Rohár <pali.rohar@gmail.com> - 2016-01-21 11:30 +0100
    Re: Nokia N900: musb is in wrong state after boot joerg Reisenweber <joerg@openmoko.org> - 2016-01-21 12:00 +0100
      Re: Nokia N900: musb is in wrong state after boot Tony Lindgren <tony@atomide.com> - 2016-01-21 18:50 +0100
        Re: Nokia N900: musb is in wrong state after boot joerg Reisenweber <joerg@openmoko.org> - 2016-01-21 19:50 +0100
          Re: Nokia N900: musb is in wrong state after boot Tony Lindgren <tony@atomide.com> - 2016-01-21 20:30 +0100
            Re: Nokia N900: musb is in wrong state after boot joerg Reisenweber <joerg@openmoko.org> - 2016-01-21 20:40 +0100
              Re: Nokia N900: musb is in wrong state after boot Tony Lindgren <tony@atomide.com> - 2016-01-21 21:40 +0100
                Re: Nokia N900: musb is in wrong state after boot Pali Rohár <pali.rohar@gmail.com> - 2016-01-26 15:40 +0100
                Re: Nokia N900: musb is in wrong state after boot Tony Lindgren <tony@atomide.com> - 2016-01-26 18:30 +0100
            Re: Nokia N900: musb is in wrong state after boot Pali Rohár <pali.rohar@gmail.com> - 2016-01-23 14:00 +0100

csiph-web