g_ncm.ko: delayed response for lsusb command

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

 



Hello Everyone,

I'm newbie to driver development & have a question on CDC NCM gadget driver.

When I load the module g_ncm.ko on the target board
and execute "lsusb" on host, there is some delay in response.
(about 5-10 seconds)

However, if I trim the string as shown below (in code changes),
"lsusb" responds quickly. I was wondering if anyone could help
me understand the reason for this behavior.

I'm looking at  kernel version 3.0.35.
https://github.com/boundarydevices/linux-imx6/blob/boundary-imx_3.0.35_4.1.0/drivers/usb/gadget/f_ncm.c#L341

Code change:
----------
@@ -339,7 +339,7 @@ static struct usb_descriptor_header
*ncm_hs_function[] __initdata = {
 #define STRING_IAD_IDX 3

 static struct usb_string ncm_string_defs[] = {
-       [STRING_CTRL_IDX].s = "CDC Network Control Model (NCM)",
+       [STRING_CTRL_IDX].s = "CDC Network Control Model",
        [STRING_MAC_IDX].s = NULL /* DYNAMIC */,

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