diff options
author | Roger Quadros <rogerq@ti.com> | 2017-09-19 10:46:16 +0200 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2017-09-20 13:57:13 +0200 |
commit | 97e133d54c1ca8948b191e5721a145a76c4db33d (patch) | |
tree | 832774d985d8e4e48d2ae79422e86827d751be9e /security/security.c | |
parent | usb: dwc3: ep0: fix DMA starvation by assigning req->trb on ep0 (diff) | |
download | linux-97e133d54c1ca8948b191e5721a145a76c4db33d.tar.xz linux-97e133d54c1ca8948b191e5721a145a76c4db33d.zip |
usb: gadget: core: fix ->udc_set_speed() logic
Consider the following case: udc controller supports SuperSpeed. If we
first load a HighSpeed gadget followed by a SuperSpeed gadget, the
SuperSpeed gadget will be limited to HighSpeed as UDC core driver
doesn't call ->udc_set_speed() in the second case.
Call ->udc_set_speed() unconditionally to fix this issue.
This will also fix the case for dwc3 controller driver when SuperSpeed
gadget is loaded first and works in HighSpeed only as udc_set_speed()
was never being called.
Fixes: 6099eca796ae ("usb: gadget: core: introduce ->udc_set_speed() method")
Cc: <stable@vger.kernel.org> [v4.13+]
Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'security/security.c')
0 files changed, 0 insertions, 0 deletions