staging: dwc2: don't issue traffic to LS devices in FS mode
authorNick Hudson <skrll@netbsd.org>
Fri, 6 Dec 2013 22:01:44 +0000 (14:01 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Dec 2013 01:25:14 +0000 (17:25 -0800)
commit9f8144c6ed8f04984ee372a060ad75d228d2b9f0
treee8670a5824dd2e024cc964a0c92fa0f555e31636
parent9aaf880ed4ee3c3cb1aa628e76c177035ce000ae
staging: dwc2: don't issue traffic to LS devices in FS mode

I fell over the problem reported in
https://github.com/raspberrypi/linux/pull/390:

"Issuing low-speed packets when the root port is in full-speed mode
 causes the root port to stop responding. Explicitly fail when
 enqueuing URBs to a LS endpoint on a FS bus."

with my dwc2 testing in NetBSD, so I adapted the change to dwc2.

Signed-off-by: Nick Hudson <skrll@netbsd.org>
[paulz: fixed up the patch to compile under Linux, and tested it]
Signed-off-by: Paul Zimmerman <paulz@synopsys.com>
Tested-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dwc2/hcd.c