Hello,
I am working on HID gadget driver. I want to stop enumeration process when i connect the embedded board with host PC. For that i am using usb_function_deactivate() API in fuction hidg_bind_config() , after adding function to configuration. e.g
int __init hidg_bind_config(struct usb_configuration *c,
struct hidg_func_descriptor *fdesc, int index)
{ ...........................
............................
status = usb_add_function(c, &hidg->func);
if (status)
kfree(hidg);
if ((usb_function_deactivate(&hidg->func)) == 0)
printk("----------something--------------\n");
return status;
}
Even though the API is executed successfully, when i connect the board to host PC , the enumeration is getting started. So am i doing this in wrong way or something else ? I am using DM8148 with RDK 4.1.
Thanks.