Re: Linux USB file storage gadget with new UDC

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

 



On Mon, 22 Apr 2013, victor yeo wrote:

> Here is a full log from the beginning which shows another problem.
> When the SCSI_READ_10 command below is received, there is a disconnect
> or port reset which causes the (-32) broken pipe problem.

You really need to fix the old problems before worrying about new 
problems.  The set_halt still isn't working, and the UDC continues to 
continues to call bulk_out_complete multiple times without receiving 
any packets.

> g_file_storage gadget: bulk-out, length 31:
> 00000000: 55 53 42 43 0c 00 00 00 00 10 00 00 80 00 0a 28
> 00000010: 00 00 00 00 00 00 00 08 00 00 00 00 f8 9e 33
> 
> I think the UDC driver detects reset interrupt and inform gadget
> driver about the disconnect. The USB link is not stable. How can UDC
> driver maintain a stable USB link with the USB host?

It would be easier to maintain a stable link if the UDC connected at 
high speed in the first place.  The usbmon log shows that the 
connection was at full speed (12 Mb/s), not high speed (480 Mb/s) -- 
which means that this line:

> g_file_storage gadget: high-speed config #1

in the gadget log indicates another bug in the UDC driver.  It told the
gadget driver that the connection was high speed, but the connection
really was full speed.

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




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

  Powered by Linux