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


Groups > linux.kernel > #1305242

Nokia N900: musb is in wrong state after boot

From Pali Rohár <pali.rohar@gmail.com>
Newsgroups linux.kernel
Subject Nokia N900: musb is in wrong state after boot
Date 2016-01-09 16:20 +0100
Message-ID <qP3t7-7kY-9@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


[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

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web