diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h index d82d0068872b238b6cf6d5b8dbaa32e37b20a43f..d6a1bdaf11c1c7cb31fc996130a5964b2aa8cf35 100644 --- a/include/linux/usb/gadget.h +++ b/include/linux/usb/gadget.h @@ -728,6 +728,16 @@ static inline int gadget_is_superspeed(struct usb_gadget *g) return g->max_speed >= USB_SPEED_SUPER; } +/** + * gadget_is_superspeed_plus() - return true if the hardware handles + * superspeed plus + * @g: controller that might support superspeed plus + */ +static inline int gadget_is_superspeed_plus(struct usb_gadget *g) +{ + return g->max_speed >= USB_SPEED_SUPER_PLUS; +} + /** * gadget_is_otg - return true iff the hardware is OTG-ready * @g: controller that might have a Mini-AB connector