On Wed, 17 Jun 2015, Stefan Koch wrote: > Interfaces are allowed per default. > This can disabled or enabled (again) by writing 0 or 1 to > /sys/bus/usb/devices/usb*/interface_authorized_default > > Signed-off-by: Stefan Koch <skoch@xxxxxxx> > --- a/include/linux/usb/hcd.h > +++ b/include/linux/usb/hcd.h > @@ -142,6 +142,7 @@ struct usb_hcd { > unsigned uses_new_polling:1; > unsigned wireless:1; /* Wireless USB HCD */ > unsigned authorized_default:1; > + unsigned interface_authorized_default:1; This is the wrong place to put your new flag. This section is for flags that get set only during HCD registration or removal (see the comment on line 134). > unsigned has_tt:1; /* Integrated TT in root hub */ > unsigned amd_resume_bug:1; /* AMD remote wakeup quirk */ > unsigned can_do_streams:1; /* HC supports streams */ Alan Stern -- 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