Re: Callback not called on bulk out transfer with usbfs

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

 



On Tue, Jun 12, 2012 at 7:01 AM, Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> wrote:
> If you enable CONFIG_USB_DEBUG, you can go into the appropriate
> subdirectory of /sys/kernel/debug/usb/ehci and see what the various
> files there contain.
>

Good to know, thanks!  I'm now reading up on what the data from the
async file means.

$ cat /sys/kernel/debug/usb/ehci/0000\:00\:1a.7/async
qh/ffff88047452a700 dev8 hs ep2 42002208 40000000 (80008c00  data1 nak4)
	ffff880037801180 out len=0 80008c00 urb ffff880596b06600
$ cat /sys/kernel/debug/usb/ehci/0000\:00\:1a.7/lpm
$ cat /sys/kernel/debug/usb/ehci/0000\:00\:1a.7/periodic
size = 1024
$ cat /sys/kernel/debug/usb/ehci/0000\:00\:1a.7/registers
bus pci, device 0000:00:1a.7
EHCI Host Controller
EHCI 1.00, hcd state 1
ownership 00000001
SMI sts/enable 0xc0080000
structural params 0x00103206
capability params 0x00016871
status 8008 Async FLR
command 0010021 (park)=0 ithresh=1 Async period=1024 RUN
intrenable 37 IAA FATAL PCD ERR INT
uframe 3f17
port:1 status 001000 0  ACK POWER sig=se0
port:2 status 001000 0  ACK POWER sig=se0
port:3 status 003000 0  ACK POWER OWNER sig=se0
port:4 status 001005 0  ACK POWER sig=se0 PE CONNECT
port:5 status 001000 0  ACK POWER sig=se0
port:6 status 001000 0  ACK POWER sig=se0
irq normal 43424 err 0 reclaim 6314 (lost 21)
complete 43440 unlink 3819

> Does the same thing happen if you run the program on a different
> computer?

I just ran the code on a laptop as well as my desktop, and got the
same result.  For the OUT txn, I see an OUT packet, DATA1 packet, and
then an ACK packet.  I don't have CONFIG_USB_DEBUG built into the
laptop's kernel, so I couldn't see anything more than usbmon.  Which
reported the same problem as before.

Assuming that I have found the correct USB pci device, the desktop has a

00:1a.7 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB2
EHCI Controller #2

and the laptop has a

00:1a.0 USB Controller: Intel Corporation Cougar Point USB Enhanced
Host Controller #2 (rev 04)

Austin Schuh
--
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