[Bug 983532] New: The system does not connect the phone as a USB flash drive
http://bugzilla.opensuse.org/show_bug.cgi?id=983532 Bug ID: 983532 Summary: The system does not connect the phone as a USB flash drive Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.1 Hardware: x86-64 OS: openSUSE 42.1 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: yarra@mail.ru QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 Build Identifier: When i connect my android phone (Huawei Honor 7) in mode "USB flash drive" my system doesn't connect it. udevadm monitor messages: Connect: KERNEL[36570.323173]add /devices/pci0000:00/0000:00:16.0/usb9/9-3 (usb) KERNEL[36570.326766]add /devices/pci0000:00/0000:00:16.0/usb9/9-3/9-3:1.0 (usb) KERNEL[36570.327079]add /devices/pci0000:00/0000:00:16.0/usb9/9-3/9-3:1.0/host8(scsi) KERNEL[36570.327174]add /devices/pci0000:00/0000:00:16.0/usb9/9-3/9-3:1.0/host8/scsi_host/host8(scsi_host) UDEV [36570.334616]add /devices/pci0000:00/0000:00:16.0/usb9/9-3 (usb) KERNEL[36570.885465]remove /devices/pci0000:00/0000:00:16.0/usb9/9-3/9-3:1.0/host8/scsi_host/host8(scsi_host) KERNEL[36570.885531]remove /devices/pci0000:00/0000:00:16.0/usb9/9-3/9-3:1.0/host8(scsi) UDEV [36591.033437]add /devices/pci0000:00/0000:00:16.0/usb9/9-3/9-3:1.0 (usb) UDEV [36591.034755]add /devices/pci0000:00/0000:00:16.0/usb9/9-3/9-3:1.0/host8(scsi) UDEV [36591.035811]add /devices/pci0000:00/0000:00:16.0/usb9/9-3/9-3:1.0/host8/scsi_host/host8(scsi_host) UDEV [36591.036477]remove /devices/pci0000:00/0000:00:16.0/usb9/9-3/9-3:1.0/host8/scsi_host/host8(scsi_host) UDEV [36591.036977]remove /devices/pci0000:00/0000:00:16.0/usb9/9-3/9-3:1.0/host8(scsi) Disconnect: KERNEL[36755.830161]remove /devices/pci0000:00/0000:00:16.0/usb9/9-3/9-3:1.0 (usb) KERNEL[36755.830401]remove /devices/pci0000:00/0000:00:16.0/usb9/9-3 (usb) UDEV [36755.832185]remove /devices/pci0000:00/0000:00:16.0/usb9/9-3/9-3:1.0 (usb) UDEV [36755.833071]remove /devices/pci0000:00/0000:00:16.0/usb9/9-3 (usb) Connect: KERNEL[36791.626867]add /devices/pci0000:00/0000:00:16.0/usb9/9-3 (usb) KERNEL[36791.630533]add /devices/pci0000:00/0000:00:16.0/usb9/9-3/9-3:1.0 (usb) KERNEL[36791.630936]add /devices/pci0000:00/0000:00:16.0/usb9/9-3/9-3:1.0/host9(scsi) KERNEL[36791.631049]add /devices/pci0000:00/0000:00:16.0/usb9/9-3/9-3:1.0/host9/scsi_host/host9(scsi_host) UDEV [36791.638332]add /devices/pci0000:00/0000:00:16.0/usb9/9-3 (usb) KERNEL[36792.186201]remove /devices/pci0000:00/0000:00:16.0/usb9/9-3/9-3:1.0/host9/scsi_host/host9(scsi_host) KERNEL[36792.186259]remove /devices/pci0000:00/0000:00:16.0/usb9/9-3/9-3:1.0/host9(scsi) UDEV [36812.327007]add /devices/pci0000:00/0000:00:16.0/usb9/9-3/9-3:1.0 (usb) UDEV [36812.332149]add /devices/pci0000:00/0000:00:16.0/usb9/9-3/9-3:1.0/host9(scsi) UDEV [36812.332866]add /devices/pci0000:00/0000:00:16.0/usb9/9-3/9-3:1.0/host9/scsi_host/host9(scsi_host) UDEV [36812.333211]remove /devices/pci0000:00/0000:00:16.0/usb9/9-3/9-3:1.0/host9/scsi_host/host9(scsi_host) UDEV [36812.333612]remove /devices/pci0000:00/0000:00:16.0/usb9/9-3/9-3:1.0/host9(scsi) dmesg | tail: [36719.794525] usb9-3: USB disconnect, device number 7[36755.385500] usb9-3: new full-speed USB device number 8 using ohci-pci [36755.543693] usb9-3: not running at top speed; connect to a high speed hub [36755.555726] usb9-3: New USB device found, idVendor=12d1, idProduct=1037 [36755.555737] usb9-3: New USB device strings: Mfr=2, Product=3, SerialNumber=4 [36755.555744] usb9-3: Product: PLK-L01 [36755.555750] usb9-3: Manufacturer: HUAWEI [36755.555756] usb9-3: SerialNumber: H8WDU15A16002075 [36755.559817]usb-storage 9-3:1.0: USB Mass Storage device detected [36755.560112] scsihost9: usb-storage 9-3:1.0 At mtp-mode system connect the phone, but it's not useful for me. This problem is only in openSuse. Not hardware (on this computer under Gentoo i connect phone good and it's connecting as flash drive under CentOs). I have this bug on my laptop (openSuse 42.1) and my desktop (openSuse 42.1). Reproducible: Always Steps to Reproduce: 1. Take Honor 7 2. plug to computer under openSuse 42.1 as USB flash drive 3. nothing else -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=983532
Ale Use
http://bugzilla.opensuse.org/show_bug.cgi?id=983532
http://bugzilla.opensuse.org/show_bug.cgi?id=983532#c2
--- Comment #2 from Ale Use
http://bugzilla.opensuse.org/show_bug.cgi?id=983532
http://bugzilla.opensuse.org/show_bug.cgi?id=983532#c3
--- Comment #3 from Ale Use
http://bugzilla.opensuse.org/show_bug.cgi?id=983532
http://bugzilla.opensuse.org/show_bug.cgi?id=983532#c4
--- Comment #4 from Oliver Neukum
http://bugzilla.opensuse.org/show_bug.cgi?id=983532
http://bugzilla.opensuse.org/show_bug.cgi?id=983532#c5
--- Comment #5 from Ale Use
http://bugzilla.opensuse.org/show_bug.cgi?id=983532
http://bugzilla.opensuse.org/show_bug.cgi?id=983532#c6
--- Comment #6 from Oliver Neukum
http://bugzilla.opensuse.org/show_bug.cgi?id=983532
http://bugzilla.opensuse.org/show_bug.cgi?id=983532#c7
--- Comment #7 from Ale Use
echo "module usb_storage +p" > /sys/kernel/debug/dynamic_debug/control
[238841.756111] usb 5-3: new high-speed USB device number 14 using ehci-pci [238841.888990] usb 5-3: New USB device found, idVendor=12d1, idProduct=1037 [238841.888994] usb 5-3: New USB device strings: Mfr=2, Product=3, SerialNumber=4 [238841.888996] usb 5-3: Product: PLK-L01 [238841.888998] usb 5-3: Manufacturer: HUAWEI [238841.888999] usb 5-3: SerialNumber: H8WDU15A16002075 [238841.889648] usb-storage 5-3:1.0: USB Mass Storage device detected [238841.889808] scsi host17: usb-storage 5-3:1.0 [238841.889880] usb-storage 5-3:1.0: waiting for device to settle before scanning -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=983532
http://bugzilla.opensuse.org/show_bug.cgi?id=983532#c8
--- Comment #8 from Oliver Neukum
[238841.889880] usb-storage 5-3:1.0: waiting for device to settle before scanning
Please check that you have CONFIG_USB_STORAGE_DEBUG set in /proc/config.gz and retry your test with usb_storage.delay_use=0 as a module parameter. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=983532
http://bugzilla.opensuse.org/show_bug.cgi?id=983532#c9
--- Comment #9 from Ale Use
http://bugzilla.opensuse.org/show_bug.cgi?id=983532
http://bugzilla.opensuse.org/show_bug.cgi?id=983532#c10
--- Comment #10 from Ale Use
(In reply to Ale Use from comment #7)
[238841.889880] usb-storage 5-3:1.0: waiting for device to settle before scanning
Please check that you have CONFIG_USB_STORAGE_DEBUG set in /proc/config.gz and retry your test with usb_storage.delay_use=0 as a module parameter.
[ 443.286831] usb 5-3: USB disconnect, device number 5 [ 515.892251] usb 5-3: new high-speed USB device number 6 using ehci-pci [ 516.025158] usb 5-3: New USB device found, idVendor=12d1, idProduct=1037 [ 516.025169] usb 5-3: New USB device strings: Mfr=2, Product=3, SerialNumber=4 [ 516.025176] usb 5-3: Product: PLK-L01 [ 516.025182] usb 5-3: Manufacturer: HUAWEI [ 516.025186] usb 5-3: SerialNumber: H8WDU15A16002075 [ 516.026905] usb-storage 5-3:1.0: USB Mass Storage device detected [ 516.027112] Vendor: 0x12d1, Product: 0x1037, Revision: 0x0299 [ 516.027118] Interface Subclass: 0x06, Protocol: 0x50 [ 516.027126] Transport: Bulk [ 516.027130] Protocol: Transparent SCSI [ 516.027187] scsi host9: usb-storage 5-3:1.0 [ 516.027192] *** thread sleeping [ 516.027417] usb-storage 5-3:1.0: waiting for device to settle before scanning [ 516.585725] -- sending exit command to thread [ 516.585766] *** thread awakened [ 516.585778] -- exiting As i understand it's without usb_storage.delay_use=0 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=983532
http://bugzilla.opensuse.org/show_bug.cgi?id=983532#c12
--- Comment #12 from Ale Use
Please confirm that CONFIG_USB_STORAGE_DEBUG is set.
confirm: https://bpaste.net/show/698de764c483 dmesg: https://paste.opensuse.org/64251001 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=983532
http://bugzilla.opensuse.org/show_bug.cgi?id=983532#c13
--- Comment #13 from Oliver Neukum
(In reply to Oliver Neukum from comment #11)
Please confirm that CONFIG_USB_STORAGE_DEBUG is set.
confirm: https://bpaste.net/show/698de764c483 dmesg: https://paste.opensuse.org/64251001
Please add logs to bugzilla, so we have a full record. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=983532
http://bugzilla.opensuse.org/show_bug.cgi?id=983532#c14
--- Comment #14 from Ale Use
http://bugzilla.opensuse.org/show_bug.cgi?id=983532
http://bugzilla.opensuse.org/show_bug.cgi?id=983532#c15
--- Comment #15 from Ale Use
http://bugzilla.opensuse.org/show_bug.cgi?id=983532
http://bugzilla.opensuse.org/show_bug.cgi?id=983532#c16
--- Comment #16 from Ale Use
http://bugzilla.opensuse.org/show_bug.cgi?id=983532
http://bugzilla.opensuse.org/show_bug.cgi?id=983532#c17
--- Comment #17 from Ale Use
(In reply to Ale Use from comment #12)
(In reply to Oliver Neukum from comment #11)
Please confirm that CONFIG_USB_STORAGE_DEBUG is set.
confirm: https://bpaste.net/show/698de764c483 dmesg: https://paste.opensuse.org/64251001
Please add logs to bugzilla, so we have a full record.
I attached all logs to bugzilla -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=983532
http://bugzilla.opensuse.org/show_bug.cgi?id=983532#c18
Oliver Neukum
http://bugzilla.opensuse.org/show_bug.cgi?id=983532
http://bugzilla.opensuse.org/show_bug.cgi?id=983532#c20
Johannes Thumshirn
Johannes, could you have a look at this? The SD driver seems to have a problem with a device returning ASC 0x29. I could work around this in the storage driver, but I think the device, although unusual, acts correctly. Power on had indeed occurred. So this should be handled at a generic level.
Why does it? In drivers/scsi/sd.c sd_spinup_disk() sends TEST_UNIT_READY CDBs until it has 1) reached the max level of retries (3) or 2) the SCSI SAM status is in the know "good" list or 3) we get a valid UNIT_ATTENTION back. It doesn't care about ASC 0x29, ASCQ 0x0 or any other ASC. I'm failing to see where the problem is. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=983532
http://bugzilla.opensuse.org/show_bug.cgi?id=983532#c21
Oliver Neukum
participants (1)
-
bugzilla_noreply@novell.com