Re: GadgetFS ep0 OUT transactions immediately following SETUP transactions

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

 



On Wed, Aug 02, 2023 at 04:43:53PM -0700, Ron wrote:
> Hello everyone,
> 
> Thank you all for the help!
> 
> I'm trying to modify the GadgetFS kernel driver to be able to handle
> Vendor Specific Out requests to ep0. All of these transactions are
> occuring on ep0. Right now the host is sending the SETUP transaction,
> then an OUT transaction with vendor specific data, which is followed
> by the device sending an IN transaction to acknowledge the whole
> request. When polling the ep0 file descriptor in userspace, I can
> receive the Vendor Specific SETUP transaction and the respective
> bRequest, wValue, etc values from the SETUP transaction. However, I
> can't figure out how to also get the data from the OUT transaction
> into userspace.

You just read that data from the ep0 file descriptor, same as you read 
the SETUP information (except that this data won't be encapsulated in 
a usb_gadgetfs_event structure).

>  I have tried modifying inode.c for gadgetFS but am not
> sure where to begin to do this.

No modifications should be needed.

Alan Stern



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

  Powered by Linux