On Wed, 30 Jul 2008 01:16:16 -0700 Andrew Morton wrote: > On Mon, 28 Jul 2008 13:33:21 +0200 Roberto Oppedisano wrote: > > Let's cc linux-usb, as that appears to be the subsystem which triggered > this: > > int device_pm_add(struct device *dev) > { > int error; > > pr_debug("PM: Adding info for %s:%s\n", > dev->bus ? dev->bus->name : "No Bus", > kobject_name(&dev->kobj)); > mutex_lock(&dpm_list_mtx); > if (dev->parent) { > if (dev->parent->power.status >= DPM_SUSPENDING) { > dev_warn(dev, "parent %s is sleeping, will not add\n", > dev->parent->bus_id); > WARN_ON(true); > } > > WARN_ON. > > Also, I assume that your kernel did print that "parent %s is sleeping" > message, but you trimmed it off. That would probably be useful > information. > yep, here it is; Jul 28 13:18:59 poppero1 kernel: [29429.039959] usb_endpoint usbdev4.2_ep03: parent 4-2:1.1 is sleeping, will not add BTW, looking at the syslog I realize that 5 traces were connected to the same event, so I'm going to attach them all, in case they're useful. Thanks, R. > Thanks. > > >> [29429.039959] ------------[ cut here ]------------ >> [29429.039959] WARNING: at drivers/base/power/main.c:82 >> device_pm_add+0x4d/0xb1() >> [29429.039959] Modules linked in: tun radeon drm rfcomm l2cap usblp ipv6 >> cpufreq_ondemand cpufreq_stats cpufreq_userspace cpufreq_powersave >> ipt_recent xt_tcpudp nf_conntrack_ipv4 xt_state nf_conntrack >> iptable_filter ip_tables x_tables vfat fat fuse acpi_cpufreq freq_table >> usbserial microcode snd_intel8x0m pcmcia snd_intel8x0 snd_ac97_codec >> ac97_bus snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_oss snd_seq_midi >> snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device snd >> soundcore snd_page_alloc yenta_socket rsrc_nonstatic ipw2200 pcmcia_core >> hci_usb i2c_i801 bluetooth video output battery ac button evdev usbhid >> ohci1394 8139cp uhci_hcd ehci_hcd ieee1394 usbcore sg sr_mod cdrom >> thermal processor fan >> [29429.039959] Pid: 10544, comm: s2ram Tainted: G W >> 2.6.26-00000-g8be1a6d #1 >> [29429.039959] [] warn_on_slowpath+0x40/0x63 >> [29429.039959] [] sprintf+0x1d/0x20 >> [29429.039959] [] vprintk+0x1cd/0x274 >> [29429.039959] [] try_acquire_console_sem+0xa/0x2a >> [29429.039959] [] sysfs_find_dirent+0x13/0x23 >> [29429.039959] [] sysfs_add_file_mode+0x4c/0x6a >> [29429.039959] [] internal_create_group+0xda/0x139 >> [29429.039959] [] printk+0x14/0x18 >> [29429.039959] [] device_pm_add+0x4d/0xb1 >> [29429.039959] [] device_add+0x340/0x4ad >> [29429.039959] [] usb_create_ep_files+0x1ed/0x26b [usbcore] >> [29429.039959] [] sysfs_hash_and_remove+0x44/0x50 >> [29429.039959] [] usb_create_sysfs_intf_files+0x5a/0x72 >> [usbcore] >> [29429.039959] [] usb_set_interface+0x137/0x140 [usbcore] >> [29429.039959] [] usb_disable_interface+0x1e/0x2f [usbcore] >> [29429.039959] [] usb_unbind_interface+0x46/0x62 [usbcore] >> [29429.039959] [] __device_release_driver+0x58/0x76 >> [29429.039959] [] device_release_driver+0x18/0x21 >> [29429.039959] [] usb_driver_release_interface+0x3c/0x76 >> [usbcore] >> [29429.039959] [] hci_usb_disconnect+0x35/0x62 [hci_usb] >> [29429.039959] [] usb_unbind_interface+0x36/0x62 [usbcore] >> [29429.039959] [] __device_release_driver+0x58/0x76 >> [29429.039959] [] device_release_driver+0x18/0x21 >> [29429.039959] [] usb_driver_release_interface+0x3c/0x76 >> [usbcore] >> [29429.039959] [] usb_rebind_intf+0x19/0x4e [usbcore] >> [29429.039959] [] do_unbind_rebind+0x4d/0x5a [usbcore] >> [29429.039959] [] usb_external_resume_device+0xf0/0xf6 >> [usbcore] >> [29429.039959] [] device_resume+0x85/0x2f4 >> [29429.039959] [] suspend_devices_and_enter+0xd5/0x10d >> [29429.039959] [] enter_state+0xcf/0x11c >> [29429.039959] [] state_store+0x8d/0xa1 >> [29429.039959] [] state_store+0x0/0xa1 >> [29429.039959] [] kobj_attr_store+0x18/0x1c >> [29429.039959] [] sysfs_write_file+0xa4/0xd8 >> [29429.039959] [] sysfs_write_file+0x0/0xd8 >> [29429.039959] [] vfs_write+0x83/0xf6 >> [29429.039959] [] sys_write+0x3c/0x63 >> [29429.039959] [] syscall_call+0x7/0xb >> [29429.039959] ======================= >> [29429.039959] ---[ end trace fa351609edb352dc ]--- >> > > -- Roberto Oppedisano [RO2480-RIPE] Infracom Network Application OSS and LIR Services Tel. +39 045 8271518 Fax +39 045 8271499 Cell. +39 348 7419534