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


Groups > linux.kernel > #1305242 > unrolled thread

Nokia N900: musb is in wrong state after boot

Started byPali Rohár <pali.rohar@gmail.com>
First post2016-01-09 16:20 +0100
Last post2016-01-09 16:20 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  Nokia N900: musb is in wrong state after boot Pali Rohár <pali.rohar@gmail.com> - 2016-01-09 16:20 +0100

#1305242 — Nokia N900: musb is in wrong state after boot

FromPali Rohár <pali.rohar@gmail.com>
Date2016-01-09 16:20 +0100
SubjectNokia N900: musb is in wrong state after boot
Message-ID<qP3t7-7kY-9@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

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.

So it looks like musb is in some wrong state after boot if above command 
is not called.

Any idea where is problem? In attachment is output from more musb sysfs 
entries (before and after calling that command) which I think could be 
useful. If you want to see more logs, let me know what.

Note that host mode on Nokia N900 does not work because of HW design. 
For 2.6.28 Nokia's kernel there are special and ugly (!) patches which 
enable host mode together with userspace interaction. So it does not 
make sense to have other than peripheral mode enabled by default on 
Nokia N900...

-- 
Pali Rohár
pali.rohar@gmail.com

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web