File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
drivers/usb/gadget/function Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -892,6 +892,12 @@ static void ecm_resume(struct usb_function *f)
892
892
gether_resume (& ecm -> port );
893
893
}
894
894
895
+ static int ecm_get_status (struct usb_function * f )
896
+ {
897
+ return (f -> func_wakeup_armed ? USB_INTRF_STAT_FUNC_RW : 0 ) |
898
+ USB_INTRF_STAT_FUNC_RW_CAP ;
899
+ }
900
+
895
901
static void ecm_free (struct usb_function * f )
896
902
{
897
903
struct f_ecm * ecm ;
@@ -960,6 +966,7 @@ static struct usb_function *ecm_alloc(struct usb_function_instance *fi)
960
966
ecm -> port .func .disable = ecm_disable ;
961
967
ecm -> port .func .free_func = ecm_free ;
962
968
ecm -> port .func .suspend = ecm_suspend ;
969
+ ecm -> port .func .get_status = ecm_get_status ;
963
970
ecm -> port .func .resume = ecm_resume ;
964
971
965
972
return & ecm -> port .func ;
You can’t perform that action at this time.
0 commit comments