Re: Linux USB file storage gadget with new UDC

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

 



Hi,

>> I have a serial console to access the platform. Today i use Linux as
>> USB host. The log of the usb gadget is attached (gadget-log.txt).
>>
>> The Linux usbmon log file is also attached (usbmon-log.txt). Hopefully
>> the log data will be useful.
>
> It looks like you cut out a lot of information from the gadget log.
> Please don't do that.
>
> The logs show that your driver still has several bugs.  For example,
> the start of the gadget log shows that the driver thinks it received a
> bunch of packets on the bulk-out endpoint, but the usbmon log shows
> that the host never sent these packets.
>
> Your driver does not set the Halt feature for the bulk-in endpoint when
> it is supposed to.  It doesn't even respond with NAK when it receives
> an invalid request on endpoint 0.
>
> When asked to transmit 4096 bytes of data, your driver sent a packet
> containing more than 512 bytes.
>

I do not know when to set the Halt feature for the bulk-in endpoint. I
see gadget code have this line printed out:
g_file_storage gadget: bulk-in set halt

In the log file, is there any invalid request received on endpoint 0?

Regards,
victor
--
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