From: Sergei Epiphanov <serpiph@nikiet.ru> To: sisyphus@lists.altlinux.org Subject: [sisyphus] Работа USB-подсистемы Date: Tue, 18 Dec 2012 12:08:17 +0400 Message-ID: <1723253.SyWZz8Bv8F@epiphanov.bkpi82.nikiet.ru> (raw) У меня возник вопрос с подключением устройств к USB-порту. Точнее, есть плеер, который представляется как USB-диск. Но проблема в том, что для такого представления он перед подключением к компьютеру должен быть выключен. Процесс включения и перехода в режим USB-диска небыстрый, из-за чего драйвер USB-порта опрашивает порт, видит устройство, которое сначала откликается, но при загрузке плеер не отвечает. Из-за этого порт выводится из работы, а плеер переходит в режим простой зарядки. При этом винда на том же компьютере нормально связывается с плеером. Можно ли что-то покрутить в хозяйстве USB в ядре (таймауты или иное), чтобы система не отвергала слишком рано плеер? Логи: kernel: [ 341.057334] usb 2-6: new high-speed USB device number 3 using ehci_hcd kernel: [ 341.190040] usb 2-6: New USB device found, idVendor=0755, idProduct=2205 kernel: [ 341.190045] usb 2-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3 kernel: [ 341.190048] usb 2-6: Product: HFPlayer kernel: [ 341.190051] usb 2-6: Manufacturer: Colorfly kernel: [ 341.190054] usb 2-6: SerialNumber: USBV1.00 kernel: [ 341.190732] scsi23 : usb-storage 2-6:1.0 mtp-probe: checking bus 2, device 3: "/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-6" mtp-probe: bus: 2, device: 3 was not an MTP device kernel: [ 341.497075] usb 2-5: reset high-speed USB device number 2 using ehci_hcd kernel: [ 341.912816] usb 2-5: reset high-speed USB device number 2 using ehci_hcd kernel: [ 342.193322] scsi 23:0:0:0: Direct-Access Colorfly PocketHIFI 1.00 PQ: 0 ANSI: 0 kernel: [ 342.195586] scsi 23:0:0:1: Direct-Access Colorfly PocketHIFI Card 1.00 PQ: 0 ANSI: 0 kernel: [ 342.206500] sd 23:0:0:0: [sdf] Attached SCSI removable disk kernel: [ 342.208806] sd 23:0:0:1: [sdg] Attached SCSI removable disk kernel: [ 342.316610] usb 2-5: reset high-speed USB device number 2 using ehci_hcd kernel: [ 342.728298] usb 2-5: reset high-speed USB device number 2 using ehci_hcd kernel: [ 343.140072] usb 2-5: reset high-speed USB device number 2 using ehci_hcd kernel: [ 343.547853] usb 2-5: reset high-speed USB device number 2 using ehci_hcd kernel: [ 343.955517] usb 2-5: reset high-speed USB device number 2 using ehci_hcd kernel: [ 344.363313] usb 2-5: reset high-speed USB device number 2 using ehci_hcd kernel: [ 344.451999] sd 23:0:0:1: [sdg] 62333952 512-byte logical blocks: (31.9 GB/29.7 GiB) kernel: [ 344.452373] sd 23:0:0:0: [sdf] 64819200 512-byte logical blocks: (33.1 GB/30.9 GiB) kernel: [ 344.607171] usb 2-6: reset high-speed USB device number 3 using ehci_hcd kernel: [ 344.855022] usb 2-6: reset high-speed USB device number 3 using ehci_hcd kernel: [ 345.102889] usb 2-6: reset high-speed USB device number 3 using ehci_hcd kernel: [ 345.214815] usb 2-6: USB disconnect, device number 3 kernel: [ 345.218961] scsi 23:0:0:0: rejecting I/O to offline device kernel: [ 345.218967] scsi 23:0:0:0: killing request kernel: [ 345.219003] scsi 23:0:0:0: [sdf] Asking for cache data failed kernel: [ 345.219009] scsi 23:0:0:0: [sdf] Assuming drive cache: write through kernel: [ 345.222793] sd 23:0:0:1: [sdg] Asking for cache data failed kernel: [ 345.222795] sd 23:0:0:1: [sdg] Assuming drive cache: write through kernel: [ 345.222922] sd 23:0:0:1: [sdg] READ CAPACITY failed kernel: [ 345.222925] sd 23:0:0:1: [sdg] kernel: [ 345.222927] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK kernel: [ 345.222928] sd 23:0:0:1: [sdg] Sense not available. kernel: [ 345.222974] sd 23:0:0:1: [sdg] Asking for cache data failed kernel: [ 345.222976] sd 23:0:0:1: [sdg] Assuming drive cache: write through kernel: [ 345.222978] sdg: detected capacity change from 31914983424 to 0 -- С уважением, Епифанов Сергей
next reply other threads:[~2012-12-18 8:08 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-12-18 8:08 Sergei Epiphanov [this message] 2012-12-18 11:28 ` Sergey V Turchin 2012-12-18 19:32 ` Sergey Vlasov 2012-12-19 7:39 ` Sergei Epiphanov 2012-12-19 7:57 ` Sergei Epiphanov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1723253.SyWZz8Bv8F@epiphanov.bkpi82.nikiet.ru \ --to=serpiph@nikiet.ru \ --cc=sisyphus@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git