usb: gadget: configfs: Add max_speed setting
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Thu, 9 Jan 2020 02:38:10 +0000 (18:38 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Jan 2020 09:39:21 +0000 (10:39 +0100)
commita02497033e8e04c30501abb78c92d862982b9912
treefcb36d985899b7d66cff66ada15a1530d1d7492b
parent1d039a80613dd8b8d95e181f918db5004bd5cc48
usb: gadget: configfs: Add max_speed setting

Some functions support speeds other than SuperSpeed. Add max_speed
attribute to configfs gadget allowing user to specify the maximum speed
the composite driver supports. The valid input speed names are
super-speed-plus, super-speed, high-speed, full-speed, and low-speed.

Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/configfs-usb-gadget
drivers/usb/gadget/configfs.c