All of lore.kernel.org
 help / color / mirror / Atom feed
* How to register a new "function" in configfs?
@ 2021-09-11  5:43 Ajay Garg
  2021-09-11 14:31 ` Michael Sweet
  0 siblings, 1 reply; 7+ messages in thread
From: Ajay Garg @ 2021-09-11  5:43 UTC (permalink / raw)
  To: linux-usb

Hi All.

As a first step, I have been able to load a gadget on configfs, which
binds to the function "gser" (thus loading up the usb_f_serial module
when the gadget mounts). Things work well till here.

Now, I have written a brand-new gadget-side device-driver, trying to
create a new function "gusb", via DECLARE_USB_FUNCTION_INIT.
However, now when I try to load the gadget for binding to "gusb", I
get the error that the function cannot be found.

Seems that firing up a new gadget-side driver, that registers a new
function via DECLARE_USB_FUNCTION_INIT, is not enough to make the new
function visible across the kernel.

Kindly let know what I am missing.
Will be grateful for pointers.


Thanks and Regards,
Ajay

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-09-18  7:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-11  5:43 How to register a new "function" in configfs? Ajay Garg
2021-09-11 14:31 ` Michael Sweet
2021-09-11 14:58   ` Ajay Garg
2021-09-15 14:54     ` Ajay Garg
     [not found]     ` <CAHP4M8W-z_L3r0kDbW943A6hm9y3gXzYJd=ZOpi+w9okS1zaaQ@mail.gmail.com>
2021-09-17 14:17       ` Michael Sweet
2021-09-17 15:25         ` Ajay Garg
2021-09-18  7:30           ` Ajay Garg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.