Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add endpoint FIFO ioctls #12

Open
msbroadf opened this issue Jul 10, 2020 · 4 comments
Open

Add endpoint FIFO ioctls #12

msbroadf opened this issue Jul 10, 2020 · 4 comments
Labels
kernel Requires kernel changes raw gadget Requires changes in Raw Gadget

Comments

@msbroadf
Copy link

Is it possible to add an ioctl to get status/clear fifo for an endpoint? Essentially passing these functions through

int usb_ep_fifo_status(struct usb_ep *ep);
void usb_ep_fifo_flush(struct usb_ep *ep);

@xairy
Copy link
Owner

xairy commented Jul 10, 2020

It should be possible. What's the use case for this?

@msbroadf
Copy link
Author

Actually i ended up implementing it quickly myself and just testing to see if it fixed an error i was having, but it didnt resolve it

This call is in gadgetfs and not in raw-gadget so i suspect there will probably be a request sooner or later for it anyway

@xairy
Copy link
Owner

xairy commented Jul 11, 2020

Those ioctls are in GadgetFS, but I'm wondering what's the actual use case for them.

@msbroadf
Copy link
Author

Unfortunately im not exactly sure, im still learning the gadget subystem myself (i usually work on drivers on the other (host) side).

Im using raw-gadget to help passthrough a USB from a remote machine transparently and it was jamming sometimes so i figured this call might be the missing part.

@xairy xairy changed the title Clear EP FIFO Add endpoint FIFO ioctls Aug 22, 2020
@xairy xairy added kernel Requires kernel changes raw gadget Requires changes in Raw Gadget labels Jun 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kernel Requires kernel changes raw gadget Requires changes in Raw Gadget
Projects
None yet
Development

No branches or pull requests

2 participants