Re: Linux USB file storage gadget with new UDC

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

 



Hi,

>> >> In the log file, is there any invalid request received on endpoint 0?
>> >
>> > In the usbmon file there is.  It is this line:
>> >
>> >> f4ae6f40 1217192721 S Co:2:018:0 s 21 ff 0000 0000 0000 0
>>
>> ok, i will add code to UDC to instruct hardware to send NAK upon
>> receiving invalid request on endpoint 0. Does it mean that UDC driver
>> has to check for invalid request on endpoint 0?
>
> No.  The UDC driver has no way to know whether a request is valid or
> not.  Read the description of the "setup" member of the
> usb_gadget_driver structure in the header file.
>

I read that. The "setup" member of the usb_gadget_driver structure is
pointing to fsg_setup, in file_storage.c. The fsg_setup() function
handles the request on endpoint 0. So how could UDC driver know when
to send NAK?

Thanks,
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