summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/function/f_fs.c
diff options
context:
space:
mode:
authorRoger Quadros <rogerq@ti.com>2017-10-31 15:56:29 +0200
committerFelipe Balbi <felipe.balbi@linux.intel.com>2017-11-28 13:05:31 +0200
commita4f0927ef588cf62bb864707261482c874352942 (patch)
tree2bc9d7f51dadd89a053a99223bc5fa74c5b7c200 /drivers/usb/gadget/function/f_fs.c
parent7a9618a22aadffb55027d665491adf466bced61a (diff)
downloadlinux-a4f0927ef588cf62bb864707261482c874352942.tar.bz2
usb: gadget: core: Fix ->udc_set_speed() speed handling
Currently UDC core calls ->udc_set_speed() with the speed parameter containing the maximum speed supported by the gadget function driver. This might very well be more than that supported by the UDC controller driver. Select the lesser of the 2 speeds so both UDC and gadget function driver are operating within limits. This fixes PHY Erratic errors and 2 second enumeration delay on TI's AM437x platforms. Fixes: 6099eca796ae ("usb: gadget: core: introduce ->udc_set_speed() method") Cc: <stable@vger.kernel.org> # v4.13+ Reported-by: Dylan Howey <Dylan.Howey@tennantco.com> Signed-off-by: Roger Quadros <rogerq@ti.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/gadget/function/f_fs.c')
0 files changed, 0 insertions, 0 deletions