On Wed, 26 Feb 2014, Arkadiusz Miskiewicz wrote: > > Hi. > > One of my dongles (logitech unifying) disappears sometimes. That results with sysfs warning. > > Shouldn't sysfs part be dealing with such scenario without a warning? No, sysfs is doing the right thing. But the HID subsystem isn't. > [87068.076295] usb 6-1: USB disconnect, device number 5 > [87068.107659] ------------[ cut here ]------------ > [87068.107680] WARNING: CPU: 0 PID: 4246 at fs/sysfs/group.c:214 sysfs_remove_group+0x4e/0xa7() > [87068.107687] sysfs group ffffffff81a510c0 not found for kobject 'hidraw0' > [87068.107691] Modules linked in: dccp_diag dccp tcp_diag udp_diag inet_diag unix_diag xt_tcpudp nf_conntrack_ipv4 nf_defrag_ipv4 iptable_filter xt_conntrack > nf_conntrack ip_tables x_tables sch_sfq ctr ccm joydev ext2 iTCO_wdt mbcache iTCO_vendor_support pcmcia coretemp microcode psmouse sdhci_pci i2c_i801 pcspkr > sr_mod serio_raw yenta_socket arc4 firewire_ohci sdhci cdrom pcmcia_rsrc cdc_ether lpc_ich usbnet firewire_core pcmcia_core mfd_core crc_itu_t mii cdc_wdm m > mc_core iwldvm mac80211 uvcvideo btusb videobuf2_vmalloc videobuf2_memops cdc_acm videobuf2_core iwlwifi usbhid bluetooth videodev crc16 media cfg80211 think > pad_acpi e1000e nvram wmi thermal snd_hda_codec_conexant ptp rfkill ac battery evdev pps_core snd_hda_intel shpchp snd_hda_codec snd_hwdep snd_pcm snd_page_a > lloc snd_timer snd soundcore > [87068.107867] cpufreq_stats acpi_cpufreq processor vhost_net tun vhost macvtap macvlan binfmt_misc kvm_intel tcp_illinois kvm ipv6 autofs4 xfs(F) libcrc32c > (F) crc32c(F) cbc(F) lrw(F) gf128mul(F) glue_helper(F) ablk_helper(F) cryptd(F) aes_x86_64(F) dm_crypt(F) dm_mod(F) sd_mod(F) crc_t10dif(F) crct10dif_generic > (F) crct10dif_common(F) ahci(F) libahci(F) libata(F) scsi_mod(F) hid_logitech_dj(F) hid(F) uhci_hcd(F) ehci_pci(F) ehci_hcd(F) usbcore(F) usb_common(F) > [87068.107957] CPU: 0 PID: 4246 Comm: upowerd Tainted: GF W 3.13.5 #90 > [87068.107963] Hardware name: LENOVO 2764CTO/2764CTO, BIOS 7UET94WW (3.24 ) 10/17/2012 > [87068.107969] 0000000000000000 ffff8800bc68dd40 ffffffff8140701a ffff8800bc68dd88 > [87068.107979] ffff8800bc68dd78 ffffffff81039024 ffffffff8117e882 0000000000000000 > [87068.107989] ffffffff81a510c0 ffff88019040e410 ffff880189b9d480 ffff8800bc68ddd8 > [87068.108053] Call Trace: > [87068.108069] [<ffffffff8140701a>] dump_stack+0x4d/0x6f > [87068.108080] [<ffffffff81039024>] warn_slowpath_common+0x7a/0x93 > [87068.108089] [<ffffffff8117e882>] ? sysfs_remove_group+0x4e/0xa7 > [87068.108098] [<ffffffff81039084>] warn_slowpath_fmt+0x47/0x49 > [87068.108110] [<ffffffff8117da10>] ? sysfs_get_dirent_ns+0x5e/0x66 > [87068.108118] [<ffffffff8117e882>] sysfs_remove_group+0x4e/0xa7 > [87068.108129] [<ffffffff81314c31>] dpm_sysfs_remove+0x37/0x3a > [87068.108139] [<ffffffff8130d1df>] device_del+0x3e/0x173 > [87068.108147] [<ffffffff8130d356>] device_unregister+0x42/0x4d > [87068.108155] [<ffffffff8130d3c1>] device_destroy+0x33/0x37 > [87068.108185] [<ffffffffa0065761>] drop_ref.part.2+0x25/0x69 [hid] > [87068.108209] [<ffffffffa0065b73>] hidraw_release+0x9b/0xae [hid] > [87068.108220] [<ffffffff81121225>] __fput+0xd8/0x1b7 > [87068.108230] [<ffffffff81121330>] ____fput+0x9/0xb > [87068.108241] [<ffffffff81051575>] task_work_run+0x78/0x8e > [87068.108253] [<ffffffff81002619>] do_notify_resume+0x5e/0x6d > [87068.108263] [<ffffffff8140d1ea>] int_signal+0x12/0x17 > [87068.108270] ---[ end trace 74c570b0cc4e40c1 ]--- > [87068.344154] usb 6-1: new full-speed USB device number 6 using uhci_hcd > [87068.524666] usb 6-1: New USB device found, idVendor=046d, idProduct=c52b > [87068.524679] usb 6-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 > [87068.524686] usb 6-1: Product: USB Receiver > [87068.524694] usb 6-1: Manufacturer: Logitech > [87068.542133] logitech-djreceiver 0003:046D:C52B.0013: hiddev0,hidraw0: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:00:1d.0-1/input2 > [87068.555159] input: Logitech Unifying Device. Wireless PID:1028 as /devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.2/0003:046D:C52B.0013/input/input20 > [87068.555466] logitech-djdevice 0003:046D:C52B.0014: input,hidraw1: USB HID v1.11 Mouse [Logitech Unifying Device. Wireless PID:1028] on usb-0000:00:1d.0-1:1 See http://marc.info/?l=linux-usb&m=139340147604136&w=2 Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html