]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc2: rockchip: Make the max_transfer_size automatic
authorDouglas Anderson <dianders@chromium.org>
Fri, 29 Jan 2016 02:19:52 +0000 (18:19 -0800)
committerFelipe Balbi <balbi@kernel.org>
Fri, 4 Mar 2016 13:14:39 +0000 (15:14 +0200)
commit03514e257fefa1e1828ab3b651aeb77edf23fea3
tree564e30937101f45348b4d77a06306dbc6151ed46
parentb53defad98d617fd00b87df7fc0959d2c294a3d2
usb: dwc2: rockchip: Make the max_transfer_size automatic

Previously we needed to set the max_transfer_size to explicitly be 65535
because the old driver would detect that our hardware could support much
bigger transfers and then would try to do them.  This wouldn't work
since the DMA alignment code couldn't support it.

Later in commit 9fc199484a9d ("usb: dwc2: clip max_transfer_size to
65535") upstream added support for clipping this automatically.  Since
that commit it has been OK to just use "-1" (default), but nobody
bothered to change it.

Let's change it to default now for two reasons:
- It's nice to use autodetected params.
- If we can remove the 65535 limit, we can transfer more!

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Acked-by: John Youn <johnyoun@synopsys.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/dwc2/platform.c