linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Unable to set "iInterface" in usb gadget via configfs
@ 2020-01-14 23:58 Andrew P. Lentvorski
  2020-01-15 15:14 ` Alan Stern
  0 siblings, 1 reply; 8+ messages in thread
From: Andrew P. Lentvorski @ 2020-01-14 23:58 UTC (permalink / raw)
  To: linux-usb

I've been trying to report what I think is a bug, but I can't seem to
get through to the mailing list.  If these are coming through
duplicated, please let me know so I can quit sending them.

Thanks,
-a


> I've been trying to set "iInterface" in my usb gadget to a specific string, but I simply can't find a way to make configfs accept this.
> 
> When I set my gadget up on my Beaglebone Black (uname -a: Linux beaglebone 4.14.108-ti-r113 #1 SMP PREEMPT Wed Jul 31 00:01:10 UTC 2019 armv7l GNU/Linux).
> 
> I get (output from lsusb):
> 
> iInterface 5 HID Interface
> 
> 
> But I want it to be something like:
> 
> iInterface 4 LPC-LINK2 CMSIS-DAP V5.224
> 
> 
> This seems to be wired up as a fixed value in f_hid.c and doesn't seem to have a corresponding way to actually change it via configfs.
> 
> 
> #define CT_FUNC_HID_IDX 0
> 
> static struct usb_string ct_func_string_defs[] = {
>         [CT_FUNC_HID_IDX].s     = "HID Interface",
>         {},                     /* end of list */
> };
>  
> 
> Thanks,
> 
> -a
> 


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

end of thread, other threads:[~2020-01-19 16:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-14 23:58 Unable to set "iInterface" in usb gadget via configfs Andrew P. Lentvorski
2020-01-15 15:14 ` Alan Stern
2020-01-16  2:23   ` Andrew P. Lentvorski
2020-01-16 13:02     ` Felipe Balbi
2020-01-17  0:39       ` Andrew P. Lentvorski
2020-01-17  9:25         ` Felipe Balbi
2020-01-18  0:58           ` Andrew P. Lentvorski
2020-01-19 16:45             ` Felipe Balbi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).