usb resume errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

1) I use 2.6.29 Kernel.
2) I use a SMSC 3320 PHY to which a hub is connected. I have 2 devices
on the hub. My host is omap ehci.
3) When i  suspend-resume the usb device i get the error "I get an
error "PM: Device 1-2.2 failed to resume: error -19"
4) I am not really sure why i get this - After resume, Both the
devices get re-enumerates and i can access them.
5) To get it working on this PHY what i do i resume path is i reset
the PHY and then the HUB and i have disabled
    CONFIG_USB_SUSPEND.
6) I have done phy and hub reset both in resume path of the ehci
resume of ehci-omap.c. Is there a better place to do hub reset in
   suspend-resume?
7) Also, I have applied a patch found at
  http://e2e.ti.com/support/arm174_microprocessors/omap_applications_processors/f/42/p/29363/102101.aspx#102101


However whats bothering me are the messages during suspend-resume.
Not sure why usb_dev_resume return -19.

Messages i get are:
pm_op(): usb_dev_resume+0x0/0x18 returns -19
PM: Device 1-2.1 failed to resume: error -19
pm_op(): usb_dev_resume+0x0/0x18 returns -19
PM: Device 1-2.2 failed to resume: error -19
Restarting tasks ... <7>hub 1-0:1.0: state 7 ports 3 chg 0004 evt 0000
usb 1-2.1: USB disconnect, address 16


Let me know if i am missing something.

Thank you,


Regards,
sriram


root@omap3:/sys# echo mem > /sys/power/state
PM: Syncing filesystems ... done.
Freezing user space processes ... (elapsed 0.00 seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
Suspending console(s) (use no_console_suspend to debug)
Powerdomain (iva2_pwrdm) didn't enter target state 1
Could not enter target state in pm_suspend
usb 1-2: reset high speed USB device using ehci-omap and address 2
pm_op(): usb_dev_resume+0x0/0x18 returns -19
PM: Device 1-2.1 failed to resume: error -19
pm_op(): usb_dev_resume+0x0/0x18 returns -19
PM: Device 1-2.2 failed to resume: error -19
Restarting tasks ... <7>hub 1-0:1.0: state 7 ports 3 chg 0004 evt 0000
usb 1-2.1: USB disconnect, address 16
done.
root@omap3:/sys# usb 1-2.1: new full speed USB device using ehci-omap
and address 18
usb 1-2.1: new high speed USB device using ehci-omap and address 19
usb 1-2.1: config 1 interface 0 altsetting 0 bulk endpoint 0x81 has
invalid maxpacket 64
usb 1-2.1: config 1 interface 1 altsetting 0 bulk endpoint 0x82 has
invalid maxpacket 64
usb 1-2.1: config 1 interface 4 altsetting 0 bulk endpoint 0x86 has
invalid maxpacket 64
usb 1-2.1: New USB device found, idVendor=0af0, idProduct=d035
usb 1-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-2.1: Product: Option GlobeTrotter
usb 1-2.1: Manufacturer: Option Wireless Technology
usb 1-2.1: configuration #1 chosen from 1 choice
hso0 (hso): not using net_device_ops yet
usb 1-2.2: USB disconnect, address 17
usb 1-2.2: new high speed USB device using ehci-omap and address 20
usb 1-2.2: New USB device found, idVendor=1307, idProduct=0165
usb 1-2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-2.2: Product: USB Mass Storage Device
usb 1-2.2: Manufacturer: USBest Technology
usb 1-2.2: SerialNumber: 00000000001F14
usb 1-2.2: configuration #1 chosen from 1 choice
scsi5 : SCSI emulation for USB Mass Storage devices

root@omap3:/sys# scsi 5:0:0:0: Direct-Access     Ut165    USB2FlashStorag
e 0.00 PQ: 0 ANSI: 2
sd 5:0:0:0: [sda] 7716864 512-byte hardware sectors: (3.95 GB/3.67 GiB)
sd 5:0:0:0: [sda] Write Protect is off
sd 5:0:0:0: [sda] Assuming drive cache: write through
sd 5:0:0:0: [sda] 7716864 512-byte hardware sectors: (3.95 GB/3.67 GiB)
sd 5:0:0:0: [sda] Write Protect is off
sd 5:0:0:0: [sda] Assuming drive cache: write through
sda:<7>usb-storage: queuecommand called

sd 5:0:0:0: [sda] Attached SCSI removable disk

root@omap3:/sys#
--
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

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux