musb driver doesn't attach on omap3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Medium
|
Paolo Pisati | ||
Natty |
Fix Released
|
Medium
|
Paolo Pisati |
Bug Description
the musb device is not added to the platform bus, and thus the driver cannot attach to a non-existent device:
[flag@newluxor canonical]$ grep musb dmesg-2.6.38.txt
[ 0.332000] bus_add_driver::636 bus: 'platform': add driver musb-tusb
[ 0.382751] musb_init::2434
[ 0.382751] musb-hdrc: version 6.0, tusb-omap-dma, otg (peripheral+host), debug=0
[ 0.382781] bus_add_driver::636 bus: 'platform': add driver musb-hdrc
[ 0.382934] musb_init::2463 ret: -19
#define ENODEV 19 /* No such device */
flag@omap:~$ ls -la /sys/devices/
ls: cannot access /sys/devices/
Previously it was working fine:
[flag@newluxor canonical]$ grep musb dmesg-2.6.37.txt
[ 0.000000] bus_add_device::457 bus: 'platform': add device musb_hdrc
[ 0.048736] musb_init::2488
[ 0.048767] musb_hdrc: version 6.0, musb-dma, otg (peripheral+host), debug=0
[ 0.048797] bus_add_driver::637 bus: 'platform': add driver musb_hdrc
[ 0.048919] musb_hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
[ 0.048919] musb_hdrc: MHDRC RTL version 1.800
[ 0.048950] musb_hdrc: setup fifo_mode 4
[ 0.048950] musb_hdrc: 28/31 max ep, 16384/16384 memory
[ 0.049133] musb_hdrc musb_hdrc: USB OTG mode controller at fa0ab000 using DMA, IRQ 92
[ 0.049224] musb_init::2517 ret: 0
flag@omap:~$ ls -la /sys/devices/
total 0
drwxr-xr-x 4 root root 0 2011-04-14 12:28 .
drwxr-xr-x 40 root root 0 2011-04-14 12:28 ..
lrwxrwxrwx 1 root root 0 2011-04-14 12:29 driver -> ../../.
drwxr-xr-x 3 root root 0 2011-04-14 12:29 gadget
-r--r--r-- 1 root root 4096 2011-04-14 12:29 modalias
-rw-r--r-- 1 root root 4096 2011-04-14 12:29 mode
drwxr-xr-x 2 root root 0 2011-04-14 12:29 power
-rw-r--r-- 1 root root 4096 2011-04-14 12:29 srp
lrwxrwxrwx 1 root root 0 2011-04-14 12:28 subsystem -> ../../.
-rw-r--r-- 1 root root 4096 2011-04-14 12:28 uevent
-rw-r--r-- 1 root root 4096 2011-04-14 12:29 vbus
it's simply a config difference introduced in 5bfc8061 (while rebasing on 2.6.38-rc1), when USB_MUSB_TUSB6010 was picked instead of USB_MUSB_OMAP2PLUS.
With the attached patch we get musb back on omap3:
flag@omap:~$ uname -a
Linux omap 2.6.38-8-omap #42 Thu Apr 14 12:39:06 CEST 2011 armv7l GNU/Linux
flag@omap:~$ dmesg | grep musb
[ 0.360717] musb-hdrc: version 6.0, musb-dma, otg (peripheral+host), debug=0
[ 0.360870] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
[ 0.360870] musb-hdrc: MHDRC RTL version 1.800
[ 0.360900] musb-hdrc: setup fifo_mode 4
[ 0.360900] musb-hdrc: 28/31 max ep, 16384/16384 memory
[ 0.361083] musb-hdrc musb-hdrc: USB OTG mode controller at fa0ab000 using DMA, IRQ 92
flag@omap:~$ ls -la /sys/devices/
total 0
drwxr-xr-x 4 root root 0 2011-04-14 13:03 .
drwxr-xr-x 37 root root 0 2011-04-14 13:03 ..
lrwxrwxrwx 1 root root 0 2011-04-14 13:05 driver -> ../../.
-r--r--r-- 1 root root 4096 2011-04-14 13:05 modalias
drwxr-xr-x 4 root root 0 2011-04-14 13:03 musb-hdrc
drwxr-xr-x 2 root root 0 2011-04-14 13:05 power
lrwxrwxrwx 1 root root 0 2011-04-14 13:03 subsystem -> ../../.
-rw-r--r-- 1 root root 4096 2011-04-14 13:03 uevent
CVE References
description: | updated |
Changed in linux (Ubuntu Natty): | |
importance: | Undecided → Medium |
Changed in linux (Ubuntu Natty): | |
status: | In Progress → Fix Committed |
tags: | added: verification-needed-natty |
tags: |
added: verification-done removed: verification-needed-natty |
This bug was fixed in the package linux - 2.6.39-0.5
---------------
linux (2.6.39-0.5) oneiric; urgency=low
[ Herton Ronaldo Krzesinski ]
* SAUCE: Revert "x86, hibernate: Initialize mmu_cr4_features during boot"
- LP: #764758
[ Leann Ogasawara ]
* rebase to v2.6.39-rc5
* [Config] updateconfigs following rebase to v2.6.39-rc5
[ Paolo Pisati ]
* [Config] s/USB_MUSB_ TUSB6010/ USB_MUSB_ OMAP2PLUS/ on omap3 to get musb
- LP: #759913
[ Stefan Bader ]
* Include nls_iso8859-1 for virtual images
- LP: #732046
[ Major Kernel Changes ]
* rebase from v2.6.39-rc4 to v2.6.39-rc5
-- Leann Ogasawara <email address hidden> Wed, 27 Apr 2011 06:39:42 -0700