[maemo-developers] Unable to get device detected with usb host mode on N800

From: Vasudevan Srinivasan vazudevan at gmail.com
Date: Thu Jun 14 10:54:07 EEST 2007
Hi,

I was busy and did not get time to work on this, Today I tried your
suggestion, and it did not work.  I am wondering if this problem is
particular to the device I am having, or it is common to others too?

I noticed that on a boot the device detected the usb drive for me and
I was also able to mount, but only for a minute or so, and later
started out with babble errors.
I assume it may be something to do with temperature or alike I may be
completely wrong on this.

The above test was done without the charger plugged in.  Everything
works fine with the charger.

Here is the dmesg for your reference
<snip>[   32.265319] SCSI device sdb: 2880 512-byte hdwr sectors (1 MB)
[   32.268005] sdb: Write Protect is off
[   32.268066] sdb: Mode Sense: 03 94 00 00
[   32.268096] sdb: assuming drive cache: write through
[   32.289825] SCSI device sdb: 2880 512-byte hdwr sectors (1 MB)
[   32.292602] sdb: Write Protect is off
[   32.292663] sdb: Mode Sense: 03 94 00 00
[   32.292663] sdb: assuming drive cache: write through
[   32.292724]  sdb: unknown partition table
[   32.297943] sd 0:0:0:1: Attached scsi removable disk sdb
[   32.298339] sd 0:0:0:1: Attached scsi generic sg1 type 0
[   32.314331] usb-storage: device scan complete
[   33.653442] Scan complete, scanned 13 channels
[   33.671447] cx3110x: PSM full
[   34.330596] cx3110x: PSM disabled
[   36.594909] Unhandled trap: 0x18000010
[   36.864898] EAC mode: play enabled, rec enabled
[   37.743682] Division by zero in kernel.
[   37.743743] [<c002a4c0>] (dump_stack+0x0/0x14) from [<c002af34>]
(__div0+0x18                                /0x20)
[   37.743865] [<c002af1c>] (__div0+0x0/0x20) from [<c013083c>] (Ldiv0+0x8/0x10)
[   37.743957] [<bf01cf34>] (pdlp_lmac_second_callback+0x0/0xe8
[umac]) from [<b                                f00219c>]
(fw_ctrl_accept+0x60/0xe8 [umac])
[   37.744720]  r8 = C07F5000  r7 = C7E22800  r6 = FFFFFFFF  r5 = C07F5000
[   37.744781]  r4 = C5BF18C0
[   37.744781] [<bf00213c>] (fw_ctrl_accept+0x0/0xe8 [umac]) from
[<bf000908>] (
prism_interconnect_message_handle+0x38/0x1f4 [umac])
[   37.745269]  r6 = C58B4E7C  r5 = C58B4E60  r4 = C58B4E7C
[   37.745300] [<bf0008d0>]
(prism_interconnect_message_handle+0x0/0x1f4 [umac])
              from [<bf0441b4>] (sm_drv_spi_wq+0x374/0x568 [cx3110x])
[   37.745697]  r8 = 00000000  r7 = C7E22800  r6 = C58B4E7C  r5 = C58B4E60
[   37.745727]  r4 = C04B1EE6
[   37.745758] [<bf043e40>] (sm_drv_spi_wq+0x0/0x568 [cx3110x]) from
[<c00662e8>                                ] (run_workqueue+0xac/0xfc)
[   37.745910] [<c006623c>] (run_workqueue+0x0/0xfc) from [<c0066458>]
(worker_t                                hread+0x120/0x180)
[   37.746002]  r7 = 00000001  r6 = C04B1F80  r5 = C04826A8  r4 = C04826B0
[   37.746063] [<c0066338>] (worker_thread+0x0/0x180) from
[<c0069bdc>] (kthread                                +0xe0/0x114)
[   37.746124] [<c0069afc>] (kthread+0x0/0x114) from [<c0057ac0>]
(do_exit+0x0/0                                x7fc)
[   37.746215] Division by zero in kernel.
[   37.746246] [<c002a4c0>] (dump_stack+0x0/0x14) from [<c002af34>]
(__div0+0x18                                /0x20)
[   37.746337] [<c002af1c>] (__div0+0x0/0x20) from [<c013083c>] (Ldiv0+0x8/0x10)
[   37.746398] [<bf01cf34>] (pdlp_lmac_second_callback+0x0/0xe8
[umac]) from [<b                                f00219c>]
(fw_ctrl_accept+0x60/0xe8 [umac])
[   37.747039]  r8 = C07F5000  r7 = C7E22800  r6 = FFFFFFFF  r5 = C07F5000
[   37.747100]  r4 = C5BF18C0
[   37.747131] [<bf00213c>] (fw_ctrl_accept+0x0/0xe8 [umac]) from
[<bf000908>] (
prism_interconnect_message_handle+0x38/0x1f4 [umac])
[   37.747589]  r6 = C58B4E7C  r5 = C58B4E60  r4 = C58B4E7C
[   37.747650] [<bf0008d0>]
(prism_interconnect_message_handle+0x0/0x1f4 [umac])
              from [<bf0441b4>] (sm_drv_spi_wq+0x374/0x568 [cx3110x])
[   37.748016]  r8 = 00000000  r7 = C7E22800  r6 = C58B4E7C  r5 = C58B4E60
[   37.748077]  r4 = C04B1EE6
[   37.748077] [<bf043e40>] (sm_drv_spi_wq+0x0/0x568 [cx3110x]) from
[<c00662e8>                                ] (run_workqueue+0xac/0xfc)
[   37.748260] [<c006623c>] (run_workqueue+0x0/0xfc) from [<c0066458>]
(worker_t                                hread+0x120/0x180)
[   37.748321]  r7 = 00000001  r6 = C04B1F80  r5 = C04826A8  r4 = C04826B0
[   37.748382] [<c0066338>] (worker_thread+0x0/0x180) from
[<c0069bdc>] (kthread                                +0xe0/0x114)
[   37.748474] [<c0069afc>] (kthread+0x0/0x114) from [<c0057ac0>]
(do_exit+0x0/0                                x7fc)
[   37.748535] ERROR in pdlp_calculate_stats(): o[j-1].timestamp is < 128
[   41.010375] cx3110x: PSM dynamic with 1000 ms CAM timeout
[   44.939331] EAC mode: play disabled, rec disabled
[   53.263977] EAC mode: play enabled, rec enabled
[   53.362640] omapdsp: mmap info: vmadr = 4000c000, padr = 86910000, len = 2000
[   58.503417] EAC mode: play disabled, rec disabled
[  104.832000] omapfb omapfb: s1d1374x: setting update mode to disabled
[  136.837768] musb_stage0_irq 543: Stopping host session because of babble
[  200.422668] musb_h_tx_flush_fifo 126: Could not flush host TX fifo: csr: 2003
[  200.486206] hub 1-0:1.0: port 1 not reset yet, waiting 50ms
[  200.548706] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[  200.759613] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[  200.970550] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[  200.970611] hub 1-0:1.0: port_wait_reset: err = -16
[  200.970642] hub 1-0:1.0: port 1 not enabled, trying reset again...
[  201.181488] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[  201.392425] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[  201.603393] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[  201.603454] hub 1-0:1.0: port_wait_reset: err = -16
[  201.603485] hub 1-0:1.0: port 1 not enabled, trying reset again...
[  201.814392] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[  202.025268] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[  202.235290] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[  202.235321] hub 1-0:1.0: port_wait_reset: err = -16
[  202.235351] hub 1-0:1.0: port 1 not enabled, trying reset again...
[  202.447143] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[  202.656951] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[  202.869110] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[  202.869140] hub 1-0:1.0: port_wait_reset: err = -16
[  202.869201] hub 1-0:1.0: port 1 not enabled, trying reset again...
[  203.079956] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[  203.290863] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[  203.501861] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[  203.501922] hub 1-0:1.0: port_wait_reset: err = -16
[  203.501953] hub 1-0:1.0: port 1 not enabled, trying reset again...
[  203.501983] hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
[  203.564331] hub 1-0:1.0: port 1 not reset yet, waiting 50ms
[  203.626861] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[  203.837799] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[  204.048767] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[  204.048797] hub 1-0:1.0: port_wait_reset: err = -16
[  204.048828] hub 1-0:1.0: port 1 not enabled, trying reset again...
</snip>

On 5/30/07, Ismo.Laitinen at nokia.com <Ismo.Laitinen at nokia.com> wrote:
> >
> >Everything works fine without errors only when the N800
> >charger is plugged in. I get babble errors without that.  This
> >sounds crazy, as we cannot expect to have the n800 powered
> >whenever we want the usb-host mode.
>
> Instead of plugging in the charger, you could try if
> "echo 0 > /sys/power/sleep_while_idle" has any effect.
> It should narrow down the problem.
>
> br, Ismo
>
> >

-- 
regards
Vasudevan Srinivasan

More information about the maemo-developers mailing list