usb: dwc3: gadget: Fix full speed mode
authorRoger Quadros <rogerq@ti.com>
Tue, 3 Jan 2017 12:32:09 +0000 (14:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2017 10:39:18 +0000 (11:39 +0100)
commit5e3c2920e9f2f21d132df92318c5df2751da0b1f
treec20ab43d4a821407cbd23596ab5b6ce52e2f95e8
parent81f1f24d1873f56c6810fcc1ca5d2ae965c01dfc
usb: dwc3: gadget: Fix full speed mode

commit 9418ee15f718939aa7e650fd586d73765eb21f20 upstream.

DCFG.DEVSPD == 0x3 is not valid and we need to set
DCFG.DEVSPD to 0x1 for full speed mode. Same goes for
DSTS.CONNECTSPD.

Old databooks had 0x3 for full speed in 48MHz mode for
USB1.1 transceivers which was never supported. Newer databooks
don't mention 0x3 at all.

Cc: John Youn <John.Youn@synopsys.com>
Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/core.h
drivers/usb/dwc3/gadget.c